Makefile 127 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim i386-android i386-aros m68k-linux m68k-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-darwin aarch64-android wasm-wasm sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override OS_TARGET_DEFAULT=wince
  104. override DEFAULT_FPCDIR=../..
  105. ifndef FPC
  106. ifdef PP
  107. FPC=$(PP)
  108. endif
  109. endif
  110. ifndef FPC
  111. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  112. ifneq ($(FPCPROG),)
  113. FPCPROG:=$(firstword $(FPCPROG))
  114. ifneq ($(CPU_TARGET),)
  115. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  116. else
  117. FPC:=$(shell $(FPCPROG) -PB)
  118. endif
  119. ifneq ($(findstring Error,$(FPC)),)
  120. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  121. else
  122. ifeq ($(strip $(wildcard $(FPC))),)
  123. FPC:=$(firstword $(FPCPROG))
  124. endif
  125. endif
  126. else
  127. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  128. endif
  129. endif
  130. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  131. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  132. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  133. ifeq ($(FOUNDFPC),)
  134. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  135. ifeq ($(FOUNDFPC),)
  136. $(error Compiler $(FPC) not found)
  137. endif
  138. endif
  139. ifndef FPC_COMPILERINFO
  140. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  141. endif
  142. ifndef FPC_VERSION
  143. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  144. endif
  145. export FPC FPC_VERSION FPC_COMPILERINFO
  146. unexport CHECKDEPEND ALLDEPENDENCIES
  147. ifndef CPU_TARGET
  148. ifdef CPU_TARGET_DEFAULT
  149. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  150. endif
  151. endif
  152. ifndef OS_TARGET
  153. ifdef OS_TARGET_DEFAULT
  154. OS_TARGET=$(OS_TARGET_DEFAULT)
  155. endif
  156. endif
  157. ifndef CPU_SOURCE
  158. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  159. endif
  160. ifndef CPU_TARGET
  161. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  162. endif
  163. ifndef OS_SOURCE
  164. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  165. endif
  166. ifndef OS_TARGET
  167. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  168. endif
  169. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  170. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  171. ifeq ($(CPU_TARGET),armeb)
  172. ARCH=arm
  173. override FPCOPT+=-Cb
  174. else
  175. ifeq ($(CPU_TARGET),armel)
  176. ARCH=arm
  177. override FPCOPT+=-CaEABI
  178. else
  179. ARCH=$(CPU_TARGET)
  180. endif
  181. endif
  182. ifeq ($(FULL_TARGET),arm-embedded)
  183. ifeq ($(SUBARCH),)
  184. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  185. endif
  186. override FPCOPT+=-Cp$(SUBARCH)
  187. endif
  188. ifeq ($(FULL_TARGET),avr-embedded)
  189. ifeq ($(SUBARCH),)
  190. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  191. endif
  192. override FPCOPT+=-Cp$(SUBARCH)
  193. endif
  194. ifeq ($(FULL_TARGET),mipsel-embedded)
  195. ifeq ($(SUBARCH),)
  196. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  197. endif
  198. override FPCOPT+=-Cp$(SUBARCH)
  199. endif
  200. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  201. TARGETSUFFIX=$(OS_TARGET)
  202. SOURCESUFFIX=$(OS_SOURCE)
  203. else
  204. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  205. TARGETSUFFIX=$(OS_TARGET)
  206. else
  207. TARGETSUFFIX=$(FULL_TARGET)
  208. endif
  209. SOURCESUFFIX=$(FULL_SOURCE)
  210. endif
  211. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  212. CROSSCOMPILE=1
  213. endif
  214. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  215. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  216. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  217. endif
  218. endif
  219. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  220. BSDhier=1
  221. endif
  222. ifeq ($(OS_TARGET),linux)
  223. linuxHier=1
  224. endif
  225. ifndef CROSSCOMPILE
  226. BUILDFULLNATIVE=1
  227. export BUILDFULLNATIVE
  228. endif
  229. ifdef BUILDFULLNATIVE
  230. BUILDNATIVE=1
  231. export BUILDNATIVE
  232. endif
  233. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  234. ifdef FPCDIR
  235. override FPCDIR:=$(subst \,/,$(FPCDIR))
  236. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  237. override FPCDIR=wrong
  238. endif
  239. else
  240. override FPCDIR=wrong
  241. endif
  242. ifdef DEFAULT_FPCDIR
  243. ifeq ($(FPCDIR),wrong)
  244. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  245. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  246. override FPCDIR=wrong
  247. endif
  248. endif
  249. endif
  250. ifeq ($(FPCDIR),wrong)
  251. ifdef inUnix
  252. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  253. ifeq ($(wildcard $(FPCDIR)/units),)
  254. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  255. endif
  256. else
  257. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  258. override FPCDIR:=$(FPCDIR)/..
  259. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  260. override FPCDIR:=$(FPCDIR)/..
  261. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  262. override FPCDIR:=$(BASEDIR)
  263. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  264. override FPCDIR=c:/pp
  265. endif
  266. endif
  267. endif
  268. endif
  269. endif
  270. ifndef CROSSBINDIR
  271. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  272. endif
  273. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  274. ifeq ($(OS_SOURCE),darwin)
  275. DARWIN2DARWIN=1
  276. endif
  277. endif
  278. ifndef BINUTILSPREFIX
  279. ifndef CROSSBINDIR
  280. ifdef CROSSCOMPILE
  281. ifneq ($(OS_TARGET),msdos)
  282. ifndef DARWIN2DARWIN
  283. ifneq ($(CPU_TARGET),jvm)
  284. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  285. ifeq ($(OS_TARGET),android)
  286. ifeq ($(CPU_TARGET),arm)
  287. BINUTILSPREFIX=arm-linux-androideabi-
  288. else
  289. ifeq ($(CPU_TARGET),i386)
  290. BINUTILSPREFIX=i686-linux-android-
  291. else
  292. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  293. endif
  294. endif
  295. endif
  296. endif
  297. endif
  298. else
  299. BINUTILSPREFIX=$(OS_TARGET)-
  300. endif
  301. endif
  302. endif
  303. endif
  304. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  305. ifeq ($(UNITSDIR),)
  306. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  307. endif
  308. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  309. ifndef FPCFPMAKE
  310. ifdef CROSSCOMPILE
  311. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  312. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  313. ifneq ($(FPCPROG),)
  314. FPCPROG:=$(firstword $(FPCPROG))
  315. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  316. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  317. FPCFPMAKE:=$(firstword $(FPCPROG))
  318. endif
  319. else
  320. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  321. endif
  322. else
  323. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  324. FPMAKE_SKIP_CONFIG=-n
  325. export FPCFPMAKE
  326. export FPMAKE_SKIP_CONFIG
  327. endif
  328. else
  329. FPMAKE_SKIP_CONFIG=-n
  330. FPCFPMAKE=$(FPC)
  331. endif
  332. endif
  333. override PACKAGE_NAME=rtl
  334. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  335. RTL=..
  336. INC=$(RTL)/inc
  337. COMMON=$(RTL)/common
  338. PROCINC=$(RTL)/$(CPU_TARGET)
  339. WININC=./wininc
  340. WINDIR=../win
  341. UNITPREFIX=rtl
  342. SYSTEMUNIT=system
  343. PRT0=wprt0
  344. ifdef RELEASE
  345. override FPCOPT+=-Ur
  346. endif
  347. OBJPASDIR=$(RTL)/objpas
  348. GRAPHDIR=$(INC)/graph
  349. include $(WININC)/makefile.inc
  350. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  351. ifeq ($(FULL_TARGET),i386-linux)
  352. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  353. endif
  354. ifeq ($(FULL_TARGET),i386-go32v2)
  355. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  356. endif
  357. ifeq ($(FULL_TARGET),i386-win32)
  358. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  359. endif
  360. ifeq ($(FULL_TARGET),i386-os2)
  361. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  362. endif
  363. ifeq ($(FULL_TARGET),i386-freebsd)
  364. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  365. endif
  366. ifeq ($(FULL_TARGET),i386-beos)
  367. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  368. endif
  369. ifeq ($(FULL_TARGET),i386-haiku)
  370. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  371. endif
  372. ifeq ($(FULL_TARGET),i386-netbsd)
  373. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  374. endif
  375. ifeq ($(FULL_TARGET),i386-solaris)
  376. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  377. endif
  378. ifeq ($(FULL_TARGET),i386-netware)
  379. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  380. endif
  381. ifeq ($(FULL_TARGET),i386-openbsd)
  382. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  383. endif
  384. ifeq ($(FULL_TARGET),i386-wdosx)
  385. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  386. endif
  387. ifeq ($(FULL_TARGET),i386-darwin)
  388. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  389. endif
  390. ifeq ($(FULL_TARGET),i386-emx)
  391. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  392. endif
  393. ifeq ($(FULL_TARGET),i386-watcom)
  394. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  395. endif
  396. ifeq ($(FULL_TARGET),i386-netwlibc)
  397. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  398. endif
  399. ifeq ($(FULL_TARGET),i386-wince)
  400. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  401. endif
  402. ifeq ($(FULL_TARGET),i386-embedded)
  403. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  404. endif
  405. ifeq ($(FULL_TARGET),i386-symbian)
  406. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  407. endif
  408. ifeq ($(FULL_TARGET),i386-nativent)
  409. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  410. endif
  411. ifeq ($(FULL_TARGET),i386-iphonesim)
  412. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  413. endif
  414. ifeq ($(FULL_TARGET),i386-android)
  415. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  416. endif
  417. ifeq ($(FULL_TARGET),i386-aros)
  418. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  419. endif
  420. ifeq ($(FULL_TARGET),m68k-linux)
  421. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  422. endif
  423. ifeq ($(FULL_TARGET),m68k-netbsd)
  424. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  425. endif
  426. ifeq ($(FULL_TARGET),m68k-amiga)
  427. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  428. endif
  429. ifeq ($(FULL_TARGET),m68k-atari)
  430. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  431. endif
  432. ifeq ($(FULL_TARGET),m68k-palmos)
  433. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  434. endif
  435. ifeq ($(FULL_TARGET),m68k-macos)
  436. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  437. endif
  438. ifeq ($(FULL_TARGET),m68k-embedded)
  439. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  440. endif
  441. ifeq ($(FULL_TARGET),powerpc-linux)
  442. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  443. endif
  444. ifeq ($(FULL_TARGET),powerpc-netbsd)
  445. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  446. endif
  447. ifeq ($(FULL_TARGET),powerpc-amiga)
  448. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  449. endif
  450. ifeq ($(FULL_TARGET),powerpc-macos)
  451. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  452. endif
  453. ifeq ($(FULL_TARGET),powerpc-darwin)
  454. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  455. endif
  456. ifeq ($(FULL_TARGET),powerpc-morphos)
  457. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  458. endif
  459. ifeq ($(FULL_TARGET),powerpc-embedded)
  460. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  461. endif
  462. ifeq ($(FULL_TARGET),powerpc-wii)
  463. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  464. endif
  465. ifeq ($(FULL_TARGET),powerpc-aix)
  466. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  467. endif
  468. ifeq ($(FULL_TARGET),sparc-linux)
  469. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  470. endif
  471. ifeq ($(FULL_TARGET),sparc-netbsd)
  472. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  473. endif
  474. ifeq ($(FULL_TARGET),sparc-solaris)
  475. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  476. endif
  477. ifeq ($(FULL_TARGET),sparc-embedded)
  478. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  479. endif
  480. ifeq ($(FULL_TARGET),x86_64-linux)
  481. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  482. endif
  483. ifeq ($(FULL_TARGET),x86_64-freebsd)
  484. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  485. endif
  486. ifeq ($(FULL_TARGET),x86_64-haiku)
  487. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  488. endif
  489. ifeq ($(FULL_TARGET),x86_64-netbsd)
  490. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  491. endif
  492. ifeq ($(FULL_TARGET),x86_64-solaris)
  493. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  494. endif
  495. ifeq ($(FULL_TARGET),x86_64-openbsd)
  496. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  497. endif
  498. ifeq ($(FULL_TARGET),x86_64-darwin)
  499. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  500. endif
  501. ifeq ($(FULL_TARGET),x86_64-win64)
  502. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  503. endif
  504. ifeq ($(FULL_TARGET),x86_64-embedded)
  505. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  506. endif
  507. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  508. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  509. endif
  510. ifeq ($(FULL_TARGET),x86_64-android)
  511. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  512. endif
  513. ifeq ($(FULL_TARGET),x86_64-aros)
  514. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  515. endif
  516. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  517. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  518. endif
  519. ifeq ($(FULL_TARGET),arm-linux)
  520. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  521. endif
  522. ifeq ($(FULL_TARGET),arm-netbsd)
  523. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  524. endif
  525. ifeq ($(FULL_TARGET),arm-palmos)
  526. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  527. endif
  528. ifeq ($(FULL_TARGET),arm-darwin)
  529. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  530. endif
  531. ifeq ($(FULL_TARGET),arm-wince)
  532. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  533. endif
  534. ifeq ($(FULL_TARGET),arm-gba)
  535. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  536. endif
  537. ifeq ($(FULL_TARGET),arm-nds)
  538. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  539. endif
  540. ifeq ($(FULL_TARGET),arm-embedded)
  541. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  542. endif
  543. ifeq ($(FULL_TARGET),arm-symbian)
  544. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  545. endif
  546. ifeq ($(FULL_TARGET),arm-android)
  547. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  548. endif
  549. ifeq ($(FULL_TARGET),arm-aros)
  550. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  551. endif
  552. ifeq ($(FULL_TARGET),powerpc64-linux)
  553. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  554. endif
  555. ifeq ($(FULL_TARGET),powerpc64-darwin)
  556. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  557. endif
  558. ifeq ($(FULL_TARGET),powerpc64-embedded)
  559. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  560. endif
  561. ifeq ($(FULL_TARGET),powerpc64-aix)
  562. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  563. endif
  564. ifeq ($(FULL_TARGET),avr-embedded)
  565. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  566. endif
  567. ifeq ($(FULL_TARGET),armeb-linux)
  568. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  569. endif
  570. ifeq ($(FULL_TARGET),armeb-embedded)
  571. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  572. endif
  573. ifeq ($(FULL_TARGET),mips-linux)
  574. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  575. endif
  576. ifeq ($(FULL_TARGET),mipsel-linux)
  577. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  578. endif
  579. ifeq ($(FULL_TARGET),mipsel-embedded)
  580. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  581. endif
  582. ifeq ($(FULL_TARGET),mipsel-android)
  583. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  584. endif
  585. ifeq ($(FULL_TARGET),jvm-java)
  586. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  587. endif
  588. ifeq ($(FULL_TARGET),jvm-android)
  589. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  590. endif
  591. ifeq ($(FULL_TARGET),i8086-embedded)
  592. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  593. endif
  594. ifeq ($(FULL_TARGET),i8086-msdos)
  595. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  596. endif
  597. ifeq ($(FULL_TARGET),i8086-win16)
  598. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  599. endif
  600. ifeq ($(FULL_TARGET),aarch64-linux)
  601. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  602. endif
  603. ifeq ($(FULL_TARGET),aarch64-darwin)
  604. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  605. endif
  606. ifeq ($(FULL_TARGET),aarch64-android)
  607. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  608. endif
  609. ifeq ($(FULL_TARGET),wasm-wasm)
  610. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  611. endif
  612. ifeq ($(FULL_TARGET),sparc64-linux)
  613. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  614. endif
  615. ifeq ($(FULL_TARGET),riscv32-linux)
  616. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  617. endif
  618. ifeq ($(FULL_TARGET),riscv32-embedded)
  619. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  620. endif
  621. ifeq ($(FULL_TARGET),riscv64-linux)
  622. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  623. endif
  624. ifeq ($(FULL_TARGET),riscv64-embedded)
  625. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar fpintres ctypes objpas macpas iso7185 extpas strings lineinfo heaptrc windows messages dynlibs dos rtlconsts sysconst sysutils typinfo types sortbase fgl classes math fpwidestring charset cpall getopts unicodedata unicodenumtable character cmem sharemem
  626. endif
  627. ifeq ($(FULL_TARGET),i386-linux)
  628. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  629. endif
  630. ifeq ($(FULL_TARGET),i386-go32v2)
  631. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  632. endif
  633. ifeq ($(FULL_TARGET),i386-win32)
  634. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  635. endif
  636. ifeq ($(FULL_TARGET),i386-os2)
  637. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  638. endif
  639. ifeq ($(FULL_TARGET),i386-freebsd)
  640. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  641. endif
  642. ifeq ($(FULL_TARGET),i386-beos)
  643. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  644. endif
  645. ifeq ($(FULL_TARGET),i386-haiku)
  646. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  647. endif
  648. ifeq ($(FULL_TARGET),i386-netbsd)
  649. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  650. endif
  651. ifeq ($(FULL_TARGET),i386-solaris)
  652. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  653. endif
  654. ifeq ($(FULL_TARGET),i386-netware)
  655. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  656. endif
  657. ifeq ($(FULL_TARGET),i386-openbsd)
  658. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  659. endif
  660. ifeq ($(FULL_TARGET),i386-wdosx)
  661. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  662. endif
  663. ifeq ($(FULL_TARGET),i386-darwin)
  664. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  665. endif
  666. ifeq ($(FULL_TARGET),i386-emx)
  667. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  668. endif
  669. ifeq ($(FULL_TARGET),i386-watcom)
  670. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  671. endif
  672. ifeq ($(FULL_TARGET),i386-netwlibc)
  673. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  674. endif
  675. ifeq ($(FULL_TARGET),i386-wince)
  676. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  677. endif
  678. ifeq ($(FULL_TARGET),i386-embedded)
  679. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  680. endif
  681. ifeq ($(FULL_TARGET),i386-symbian)
  682. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  683. endif
  684. ifeq ($(FULL_TARGET),i386-nativent)
  685. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  686. endif
  687. ifeq ($(FULL_TARGET),i386-iphonesim)
  688. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  689. endif
  690. ifeq ($(FULL_TARGET),i386-android)
  691. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  692. endif
  693. ifeq ($(FULL_TARGET),i386-aros)
  694. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  695. endif
  696. ifeq ($(FULL_TARGET),m68k-linux)
  697. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  698. endif
  699. ifeq ($(FULL_TARGET),m68k-netbsd)
  700. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  701. endif
  702. ifeq ($(FULL_TARGET),m68k-amiga)
  703. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  704. endif
  705. ifeq ($(FULL_TARGET),m68k-atari)
  706. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  707. endif
  708. ifeq ($(FULL_TARGET),m68k-palmos)
  709. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  710. endif
  711. ifeq ($(FULL_TARGET),m68k-macos)
  712. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  713. endif
  714. ifeq ($(FULL_TARGET),m68k-embedded)
  715. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  716. endif
  717. ifeq ($(FULL_TARGET),powerpc-linux)
  718. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  719. endif
  720. ifeq ($(FULL_TARGET),powerpc-netbsd)
  721. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  722. endif
  723. ifeq ($(FULL_TARGET),powerpc-amiga)
  724. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  725. endif
  726. ifeq ($(FULL_TARGET),powerpc-macos)
  727. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  728. endif
  729. ifeq ($(FULL_TARGET),powerpc-darwin)
  730. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  731. endif
  732. ifeq ($(FULL_TARGET),powerpc-morphos)
  733. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  734. endif
  735. ifeq ($(FULL_TARGET),powerpc-embedded)
  736. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  737. endif
  738. ifeq ($(FULL_TARGET),powerpc-wii)
  739. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  740. endif
  741. ifeq ($(FULL_TARGET),powerpc-aix)
  742. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  743. endif
  744. ifeq ($(FULL_TARGET),sparc-linux)
  745. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  746. endif
  747. ifeq ($(FULL_TARGET),sparc-netbsd)
  748. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  749. endif
  750. ifeq ($(FULL_TARGET),sparc-solaris)
  751. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  752. endif
  753. ifeq ($(FULL_TARGET),sparc-embedded)
  754. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  755. endif
  756. ifeq ($(FULL_TARGET),x86_64-linux)
  757. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  758. endif
  759. ifeq ($(FULL_TARGET),x86_64-freebsd)
  760. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  761. endif
  762. ifeq ($(FULL_TARGET),x86_64-haiku)
  763. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  764. endif
  765. ifeq ($(FULL_TARGET),x86_64-netbsd)
  766. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  767. endif
  768. ifeq ($(FULL_TARGET),x86_64-solaris)
  769. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  770. endif
  771. ifeq ($(FULL_TARGET),x86_64-openbsd)
  772. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  773. endif
  774. ifeq ($(FULL_TARGET),x86_64-darwin)
  775. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  776. endif
  777. ifeq ($(FULL_TARGET),x86_64-win64)
  778. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  779. endif
  780. ifeq ($(FULL_TARGET),x86_64-embedded)
  781. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  782. endif
  783. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  784. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  785. endif
  786. ifeq ($(FULL_TARGET),x86_64-android)
  787. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  788. endif
  789. ifeq ($(FULL_TARGET),x86_64-aros)
  790. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  791. endif
  792. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  793. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  794. endif
  795. ifeq ($(FULL_TARGET),arm-linux)
  796. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  797. endif
  798. ifeq ($(FULL_TARGET),arm-netbsd)
  799. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  800. endif
  801. ifeq ($(FULL_TARGET),arm-palmos)
  802. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  803. endif
  804. ifeq ($(FULL_TARGET),arm-darwin)
  805. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  806. endif
  807. ifeq ($(FULL_TARGET),arm-wince)
  808. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  809. endif
  810. ifeq ($(FULL_TARGET),arm-gba)
  811. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  812. endif
  813. ifeq ($(FULL_TARGET),arm-nds)
  814. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  815. endif
  816. ifeq ($(FULL_TARGET),arm-embedded)
  817. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  818. endif
  819. ifeq ($(FULL_TARGET),arm-symbian)
  820. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  821. endif
  822. ifeq ($(FULL_TARGET),arm-android)
  823. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  824. endif
  825. ifeq ($(FULL_TARGET),arm-aros)
  826. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  827. endif
  828. ifeq ($(FULL_TARGET),powerpc64-linux)
  829. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  830. endif
  831. ifeq ($(FULL_TARGET),powerpc64-darwin)
  832. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  833. endif
  834. ifeq ($(FULL_TARGET),powerpc64-embedded)
  835. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  836. endif
  837. ifeq ($(FULL_TARGET),powerpc64-aix)
  838. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  839. endif
  840. ifeq ($(FULL_TARGET),avr-embedded)
  841. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  842. endif
  843. ifeq ($(FULL_TARGET),armeb-linux)
  844. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  845. endif
  846. ifeq ($(FULL_TARGET),armeb-embedded)
  847. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  848. endif
  849. ifeq ($(FULL_TARGET),mips-linux)
  850. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  851. endif
  852. ifeq ($(FULL_TARGET),mipsel-linux)
  853. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  854. endif
  855. ifeq ($(FULL_TARGET),mipsel-embedded)
  856. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  857. endif
  858. ifeq ($(FULL_TARGET),mipsel-android)
  859. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  860. endif
  861. ifeq ($(FULL_TARGET),jvm-java)
  862. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  863. endif
  864. ifeq ($(FULL_TARGET),jvm-android)
  865. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  866. endif
  867. ifeq ($(FULL_TARGET),i8086-embedded)
  868. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  869. endif
  870. ifeq ($(FULL_TARGET),i8086-msdos)
  871. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  872. endif
  873. ifeq ($(FULL_TARGET),i8086-win16)
  874. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  875. endif
  876. ifeq ($(FULL_TARGET),aarch64-linux)
  877. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  878. endif
  879. ifeq ($(FULL_TARGET),aarch64-darwin)
  880. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  881. endif
  882. ifeq ($(FULL_TARGET),aarch64-android)
  883. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  884. endif
  885. ifeq ($(FULL_TARGET),wasm-wasm)
  886. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  887. endif
  888. ifeq ($(FULL_TARGET),sparc64-linux)
  889. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  890. endif
  891. ifeq ($(FULL_TARGET),riscv32-linux)
  892. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  893. endif
  894. ifeq ($(FULL_TARGET),riscv32-embedded)
  895. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  896. endif
  897. ifeq ($(FULL_TARGET),riscv64-linux)
  898. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  899. endif
  900. ifeq ($(FULL_TARGET),riscv64-embedded)
  901. override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  902. endif
  903. override INSTALL_FPCPACKAGE=y
  904. ifeq ($(FULL_TARGET),i386-linux)
  905. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  906. endif
  907. ifeq ($(FULL_TARGET),i386-go32v2)
  908. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  909. endif
  910. ifeq ($(FULL_TARGET),i386-win32)
  911. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  912. endif
  913. ifeq ($(FULL_TARGET),i386-os2)
  914. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  915. endif
  916. ifeq ($(FULL_TARGET),i386-freebsd)
  917. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  918. endif
  919. ifeq ($(FULL_TARGET),i386-beos)
  920. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  921. endif
  922. ifeq ($(FULL_TARGET),i386-haiku)
  923. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  924. endif
  925. ifeq ($(FULL_TARGET),i386-netbsd)
  926. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  927. endif
  928. ifeq ($(FULL_TARGET),i386-solaris)
  929. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  930. endif
  931. ifeq ($(FULL_TARGET),i386-netware)
  932. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  933. endif
  934. ifeq ($(FULL_TARGET),i386-openbsd)
  935. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  936. endif
  937. ifeq ($(FULL_TARGET),i386-wdosx)
  938. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  939. endif
  940. ifeq ($(FULL_TARGET),i386-darwin)
  941. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  942. endif
  943. ifeq ($(FULL_TARGET),i386-emx)
  944. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  945. endif
  946. ifeq ($(FULL_TARGET),i386-watcom)
  947. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  948. endif
  949. ifeq ($(FULL_TARGET),i386-netwlibc)
  950. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  951. endif
  952. ifeq ($(FULL_TARGET),i386-wince)
  953. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  954. endif
  955. ifeq ($(FULL_TARGET),i386-embedded)
  956. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  957. endif
  958. ifeq ($(FULL_TARGET),i386-symbian)
  959. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  960. endif
  961. ifeq ($(FULL_TARGET),i386-nativent)
  962. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  963. endif
  964. ifeq ($(FULL_TARGET),i386-iphonesim)
  965. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  966. endif
  967. ifeq ($(FULL_TARGET),i386-android)
  968. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  969. endif
  970. ifeq ($(FULL_TARGET),i386-aros)
  971. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  972. endif
  973. ifeq ($(FULL_TARGET),m68k-linux)
  974. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  975. endif
  976. ifeq ($(FULL_TARGET),m68k-netbsd)
  977. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  978. endif
  979. ifeq ($(FULL_TARGET),m68k-amiga)
  980. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  981. endif
  982. ifeq ($(FULL_TARGET),m68k-atari)
  983. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  984. endif
  985. ifeq ($(FULL_TARGET),m68k-palmos)
  986. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  987. endif
  988. ifeq ($(FULL_TARGET),m68k-macos)
  989. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  990. endif
  991. ifeq ($(FULL_TARGET),m68k-embedded)
  992. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  993. endif
  994. ifeq ($(FULL_TARGET),powerpc-linux)
  995. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  996. endif
  997. ifeq ($(FULL_TARGET),powerpc-netbsd)
  998. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  999. endif
  1000. ifeq ($(FULL_TARGET),powerpc-amiga)
  1001. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1002. endif
  1003. ifeq ($(FULL_TARGET),powerpc-macos)
  1004. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1005. endif
  1006. ifeq ($(FULL_TARGET),powerpc-darwin)
  1007. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1008. endif
  1009. ifeq ($(FULL_TARGET),powerpc-morphos)
  1010. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1011. endif
  1012. ifeq ($(FULL_TARGET),powerpc-embedded)
  1013. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1014. endif
  1015. ifeq ($(FULL_TARGET),powerpc-wii)
  1016. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1017. endif
  1018. ifeq ($(FULL_TARGET),powerpc-aix)
  1019. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1020. endif
  1021. ifeq ($(FULL_TARGET),sparc-linux)
  1022. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1023. endif
  1024. ifeq ($(FULL_TARGET),sparc-netbsd)
  1025. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1026. endif
  1027. ifeq ($(FULL_TARGET),sparc-solaris)
  1028. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1029. endif
  1030. ifeq ($(FULL_TARGET),sparc-embedded)
  1031. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1032. endif
  1033. ifeq ($(FULL_TARGET),x86_64-linux)
  1034. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1035. endif
  1036. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1037. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1038. endif
  1039. ifeq ($(FULL_TARGET),x86_64-haiku)
  1040. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1041. endif
  1042. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1043. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1044. endif
  1045. ifeq ($(FULL_TARGET),x86_64-solaris)
  1046. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1047. endif
  1048. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1049. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1050. endif
  1051. ifeq ($(FULL_TARGET),x86_64-darwin)
  1052. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1053. endif
  1054. ifeq ($(FULL_TARGET),x86_64-win64)
  1055. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1056. endif
  1057. ifeq ($(FULL_TARGET),x86_64-embedded)
  1058. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1059. endif
  1060. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1061. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1062. endif
  1063. ifeq ($(FULL_TARGET),x86_64-android)
  1064. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1065. endif
  1066. ifeq ($(FULL_TARGET),x86_64-aros)
  1067. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1068. endif
  1069. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1070. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1071. endif
  1072. ifeq ($(FULL_TARGET),arm-linux)
  1073. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1074. endif
  1075. ifeq ($(FULL_TARGET),arm-netbsd)
  1076. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1077. endif
  1078. ifeq ($(FULL_TARGET),arm-palmos)
  1079. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1080. endif
  1081. ifeq ($(FULL_TARGET),arm-darwin)
  1082. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1083. endif
  1084. ifeq ($(FULL_TARGET),arm-wince)
  1085. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1086. endif
  1087. ifeq ($(FULL_TARGET),arm-gba)
  1088. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1089. endif
  1090. ifeq ($(FULL_TARGET),arm-nds)
  1091. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1092. endif
  1093. ifeq ($(FULL_TARGET),arm-embedded)
  1094. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1095. endif
  1096. ifeq ($(FULL_TARGET),arm-symbian)
  1097. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1098. endif
  1099. ifeq ($(FULL_TARGET),arm-android)
  1100. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1101. endif
  1102. ifeq ($(FULL_TARGET),arm-aros)
  1103. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1104. endif
  1105. ifeq ($(FULL_TARGET),powerpc64-linux)
  1106. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1107. endif
  1108. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1109. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1110. endif
  1111. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1112. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1113. endif
  1114. ifeq ($(FULL_TARGET),powerpc64-aix)
  1115. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1116. endif
  1117. ifeq ($(FULL_TARGET),avr-embedded)
  1118. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1119. endif
  1120. ifeq ($(FULL_TARGET),armeb-linux)
  1121. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1122. endif
  1123. ifeq ($(FULL_TARGET),armeb-embedded)
  1124. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1125. endif
  1126. ifeq ($(FULL_TARGET),mips-linux)
  1127. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1128. endif
  1129. ifeq ($(FULL_TARGET),mipsel-linux)
  1130. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1131. endif
  1132. ifeq ($(FULL_TARGET),mipsel-embedded)
  1133. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1134. endif
  1135. ifeq ($(FULL_TARGET),mipsel-android)
  1136. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1137. endif
  1138. ifeq ($(FULL_TARGET),jvm-java)
  1139. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1140. endif
  1141. ifeq ($(FULL_TARGET),jvm-android)
  1142. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1143. endif
  1144. ifeq ($(FULL_TARGET),i8086-embedded)
  1145. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1146. endif
  1147. ifeq ($(FULL_TARGET),i8086-msdos)
  1148. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1149. endif
  1150. ifeq ($(FULL_TARGET),i8086-win16)
  1151. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1152. endif
  1153. ifeq ($(FULL_TARGET),aarch64-linux)
  1154. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1155. endif
  1156. ifeq ($(FULL_TARGET),aarch64-darwin)
  1157. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1158. endif
  1159. ifeq ($(FULL_TARGET),aarch64-android)
  1160. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1161. endif
  1162. ifeq ($(FULL_TARGET),wasm-wasm)
  1163. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1164. endif
  1165. ifeq ($(FULL_TARGET),sparc64-linux)
  1166. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1167. endif
  1168. ifeq ($(FULL_TARGET),riscv32-linux)
  1169. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1170. endif
  1171. ifeq ($(FULL_TARGET),riscv32-embedded)
  1172. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1173. endif
  1174. ifeq ($(FULL_TARGET),riscv64-linux)
  1175. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1176. endif
  1177. ifeq ($(FULL_TARGET),riscv64-embedded)
  1178. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(RTL)/win
  1179. endif
  1180. ifeq ($(FULL_TARGET),i386-linux)
  1181. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1182. endif
  1183. ifeq ($(FULL_TARGET),i386-go32v2)
  1184. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1185. endif
  1186. ifeq ($(FULL_TARGET),i386-win32)
  1187. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1188. endif
  1189. ifeq ($(FULL_TARGET),i386-os2)
  1190. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1191. endif
  1192. ifeq ($(FULL_TARGET),i386-freebsd)
  1193. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1194. endif
  1195. ifeq ($(FULL_TARGET),i386-beos)
  1196. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1197. endif
  1198. ifeq ($(FULL_TARGET),i386-haiku)
  1199. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1200. endif
  1201. ifeq ($(FULL_TARGET),i386-netbsd)
  1202. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1203. endif
  1204. ifeq ($(FULL_TARGET),i386-solaris)
  1205. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1206. endif
  1207. ifeq ($(FULL_TARGET),i386-netware)
  1208. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1209. endif
  1210. ifeq ($(FULL_TARGET),i386-openbsd)
  1211. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1212. endif
  1213. ifeq ($(FULL_TARGET),i386-wdosx)
  1214. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1215. endif
  1216. ifeq ($(FULL_TARGET),i386-darwin)
  1217. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1218. endif
  1219. ifeq ($(FULL_TARGET),i386-emx)
  1220. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1221. endif
  1222. ifeq ($(FULL_TARGET),i386-watcom)
  1223. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1224. endif
  1225. ifeq ($(FULL_TARGET),i386-netwlibc)
  1226. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1227. endif
  1228. ifeq ($(FULL_TARGET),i386-wince)
  1229. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1230. endif
  1231. ifeq ($(FULL_TARGET),i386-embedded)
  1232. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1233. endif
  1234. ifeq ($(FULL_TARGET),i386-symbian)
  1235. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1236. endif
  1237. ifeq ($(FULL_TARGET),i386-nativent)
  1238. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1239. endif
  1240. ifeq ($(FULL_TARGET),i386-iphonesim)
  1241. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1242. endif
  1243. ifeq ($(FULL_TARGET),i386-android)
  1244. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1245. endif
  1246. ifeq ($(FULL_TARGET),i386-aros)
  1247. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1248. endif
  1249. ifeq ($(FULL_TARGET),m68k-linux)
  1250. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1251. endif
  1252. ifeq ($(FULL_TARGET),m68k-netbsd)
  1253. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1254. endif
  1255. ifeq ($(FULL_TARGET),m68k-amiga)
  1256. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1257. endif
  1258. ifeq ($(FULL_TARGET),m68k-atari)
  1259. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1260. endif
  1261. ifeq ($(FULL_TARGET),m68k-palmos)
  1262. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1263. endif
  1264. ifeq ($(FULL_TARGET),m68k-macos)
  1265. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1266. endif
  1267. ifeq ($(FULL_TARGET),m68k-embedded)
  1268. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1269. endif
  1270. ifeq ($(FULL_TARGET),powerpc-linux)
  1271. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1272. endif
  1273. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1274. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1275. endif
  1276. ifeq ($(FULL_TARGET),powerpc-amiga)
  1277. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1278. endif
  1279. ifeq ($(FULL_TARGET),powerpc-macos)
  1280. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1281. endif
  1282. ifeq ($(FULL_TARGET),powerpc-darwin)
  1283. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1284. endif
  1285. ifeq ($(FULL_TARGET),powerpc-morphos)
  1286. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1287. endif
  1288. ifeq ($(FULL_TARGET),powerpc-embedded)
  1289. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1290. endif
  1291. ifeq ($(FULL_TARGET),powerpc-wii)
  1292. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1293. endif
  1294. ifeq ($(FULL_TARGET),powerpc-aix)
  1295. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1296. endif
  1297. ifeq ($(FULL_TARGET),sparc-linux)
  1298. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1299. endif
  1300. ifeq ($(FULL_TARGET),sparc-netbsd)
  1301. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1302. endif
  1303. ifeq ($(FULL_TARGET),sparc-solaris)
  1304. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1305. endif
  1306. ifeq ($(FULL_TARGET),sparc-embedded)
  1307. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1308. endif
  1309. ifeq ($(FULL_TARGET),x86_64-linux)
  1310. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1311. endif
  1312. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1313. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1314. endif
  1315. ifeq ($(FULL_TARGET),x86_64-haiku)
  1316. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1317. endif
  1318. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1319. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1320. endif
  1321. ifeq ($(FULL_TARGET),x86_64-solaris)
  1322. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1323. endif
  1324. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1325. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1326. endif
  1327. ifeq ($(FULL_TARGET),x86_64-darwin)
  1328. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1329. endif
  1330. ifeq ($(FULL_TARGET),x86_64-win64)
  1331. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1332. endif
  1333. ifeq ($(FULL_TARGET),x86_64-embedded)
  1334. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1335. endif
  1336. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1337. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1338. endif
  1339. ifeq ($(FULL_TARGET),x86_64-android)
  1340. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1341. endif
  1342. ifeq ($(FULL_TARGET),x86_64-aros)
  1343. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1344. endif
  1345. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1346. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1347. endif
  1348. ifeq ($(FULL_TARGET),arm-linux)
  1349. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1350. endif
  1351. ifeq ($(FULL_TARGET),arm-netbsd)
  1352. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1353. endif
  1354. ifeq ($(FULL_TARGET),arm-palmos)
  1355. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1356. endif
  1357. ifeq ($(FULL_TARGET),arm-darwin)
  1358. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1359. endif
  1360. ifeq ($(FULL_TARGET),arm-wince)
  1361. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1362. endif
  1363. ifeq ($(FULL_TARGET),arm-gba)
  1364. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1365. endif
  1366. ifeq ($(FULL_TARGET),arm-nds)
  1367. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1368. endif
  1369. ifeq ($(FULL_TARGET),arm-embedded)
  1370. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1371. endif
  1372. ifeq ($(FULL_TARGET),arm-symbian)
  1373. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1374. endif
  1375. ifeq ($(FULL_TARGET),arm-android)
  1376. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1377. endif
  1378. ifeq ($(FULL_TARGET),arm-aros)
  1379. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1380. endif
  1381. ifeq ($(FULL_TARGET),powerpc64-linux)
  1382. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1383. endif
  1384. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1385. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1386. endif
  1387. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1388. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1389. endif
  1390. ifeq ($(FULL_TARGET),powerpc64-aix)
  1391. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1392. endif
  1393. ifeq ($(FULL_TARGET),avr-embedded)
  1394. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1395. endif
  1396. ifeq ($(FULL_TARGET),armeb-linux)
  1397. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1398. endif
  1399. ifeq ($(FULL_TARGET),armeb-embedded)
  1400. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1401. endif
  1402. ifeq ($(FULL_TARGET),mips-linux)
  1403. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1404. endif
  1405. ifeq ($(FULL_TARGET),mipsel-linux)
  1406. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1407. endif
  1408. ifeq ($(FULL_TARGET),mipsel-embedded)
  1409. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1410. endif
  1411. ifeq ($(FULL_TARGET),mipsel-android)
  1412. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1413. endif
  1414. ifeq ($(FULL_TARGET),jvm-java)
  1415. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1416. endif
  1417. ifeq ($(FULL_TARGET),jvm-android)
  1418. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1419. endif
  1420. ifeq ($(FULL_TARGET),i8086-embedded)
  1421. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1422. endif
  1423. ifeq ($(FULL_TARGET),i8086-msdos)
  1424. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1425. endif
  1426. ifeq ($(FULL_TARGET),i8086-win16)
  1427. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1428. endif
  1429. ifeq ($(FULL_TARGET),aarch64-linux)
  1430. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1431. endif
  1432. ifeq ($(FULL_TARGET),aarch64-darwin)
  1433. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1434. endif
  1435. ifeq ($(FULL_TARGET),aarch64-android)
  1436. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1437. endif
  1438. ifeq ($(FULL_TARGET),wasm-wasm)
  1439. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1440. endif
  1441. ifeq ($(FULL_TARGET),sparc64-linux)
  1442. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1443. endif
  1444. ifeq ($(FULL_TARGET),riscv32-linux)
  1445. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1446. endif
  1447. ifeq ($(FULL_TARGET),riscv32-embedded)
  1448. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1449. endif
  1450. ifeq ($(FULL_TARGET),riscv64-linux)
  1451. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1452. endif
  1453. ifeq ($(FULL_TARGET),riscv64-embedded)
  1454. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1455. endif
  1456. ifdef REQUIRE_UNITSDIR
  1457. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1458. endif
  1459. ifdef REQUIRE_PACKAGESDIR
  1460. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1461. endif
  1462. ifdef ZIPINSTALL
  1463. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  1464. UNIXHier=1
  1465. endif
  1466. else
  1467. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  1468. UNIXHier=1
  1469. endif
  1470. endif
  1471. ifndef INSTALL_PREFIX
  1472. ifdef PREFIX
  1473. INSTALL_PREFIX=$(PREFIX)
  1474. endif
  1475. endif
  1476. ifndef INSTALL_PREFIX
  1477. ifdef UNIXHier
  1478. INSTALL_PREFIX=/usr/local
  1479. else
  1480. ifdef INSTALL_FPCPACKAGE
  1481. INSTALL_BASEDIR:=/pp
  1482. else
  1483. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1484. endif
  1485. endif
  1486. endif
  1487. export INSTALL_PREFIX
  1488. ifdef INSTALL_FPCSUBDIR
  1489. export INSTALL_FPCSUBDIR
  1490. endif
  1491. ifndef DIST_DESTDIR
  1492. DIST_DESTDIR:=$(BASEDIR)
  1493. endif
  1494. export DIST_DESTDIR
  1495. ifndef COMPILER_UNITTARGETDIR
  1496. ifdef PACKAGEDIR_MAIN
  1497. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1498. else
  1499. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1500. endif
  1501. endif
  1502. ifndef COMPILER_TARGETDIR
  1503. COMPILER_TARGETDIR=.
  1504. endif
  1505. ifndef INSTALL_BASEDIR
  1506. ifdef UNIXHier
  1507. ifdef INSTALL_FPCPACKAGE
  1508. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1509. else
  1510. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1511. endif
  1512. else
  1513. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1514. endif
  1515. endif
  1516. ifndef INSTALL_BINDIR
  1517. ifdef UNIXHier
  1518. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1519. else
  1520. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1521. ifdef INSTALL_FPCPACKAGE
  1522. ifdef CROSSCOMPILE
  1523. ifdef CROSSINSTALL
  1524. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1525. else
  1526. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1527. endif
  1528. else
  1529. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1530. endif
  1531. endif
  1532. endif
  1533. endif
  1534. ifndef INSTALL_UNITDIR
  1535. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1536. ifdef INSTALL_FPCPACKAGE
  1537. ifdef PACKAGE_NAME
  1538. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1539. endif
  1540. endif
  1541. endif
  1542. ifndef INSTALL_LIBDIR
  1543. ifdef UNIXHier
  1544. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1545. else
  1546. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1547. endif
  1548. endif
  1549. ifndef INSTALL_SOURCEDIR
  1550. ifdef UNIXHier
  1551. ifdef BSDhier
  1552. SRCPREFIXDIR=share/src
  1553. else
  1554. ifdef linuxHier
  1555. SRCPREFIXDIR=share/src
  1556. else
  1557. SRCPREFIXDIR=src
  1558. endif
  1559. endif
  1560. ifdef INSTALL_FPCPACKAGE
  1561. ifdef INSTALL_FPCSUBDIR
  1562. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1563. else
  1564. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1565. endif
  1566. else
  1567. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1568. endif
  1569. else
  1570. ifdef INSTALL_FPCPACKAGE
  1571. ifdef INSTALL_FPCSUBDIR
  1572. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1573. else
  1574. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1575. endif
  1576. else
  1577. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1578. endif
  1579. endif
  1580. endif
  1581. ifndef INSTALL_DOCDIR
  1582. ifdef UNIXHier
  1583. ifdef BSDhier
  1584. DOCPREFIXDIR=share/doc
  1585. else
  1586. ifdef linuxHier
  1587. DOCPREFIXDIR=share/doc
  1588. else
  1589. DOCPREFIXDIR=doc
  1590. endif
  1591. endif
  1592. ifdef INSTALL_FPCPACKAGE
  1593. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1594. else
  1595. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1596. endif
  1597. else
  1598. ifdef INSTALL_FPCPACKAGE
  1599. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1600. else
  1601. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1602. endif
  1603. endif
  1604. endif
  1605. ifndef INSTALL_EXAMPLEDIR
  1606. ifdef UNIXHier
  1607. ifdef INSTALL_FPCPACKAGE
  1608. ifdef BSDhier
  1609. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1610. else
  1611. ifdef linuxHier
  1612. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1613. else
  1614. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1615. endif
  1616. endif
  1617. else
  1618. ifdef BSDhier
  1619. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1620. else
  1621. ifdef linuxHier
  1622. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1623. else
  1624. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1625. endif
  1626. endif
  1627. endif
  1628. else
  1629. ifdef INSTALL_FPCPACKAGE
  1630. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1631. else
  1632. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1633. endif
  1634. endif
  1635. endif
  1636. ifndef INSTALL_DATADIR
  1637. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1638. endif
  1639. ifndef INSTALL_SHAREDDIR
  1640. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1641. endif
  1642. ifdef CROSSCOMPILE
  1643. ifndef CROSSBINDIR
  1644. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1645. ifeq ($(CROSSBINDIR),)
  1646. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1647. endif
  1648. endif
  1649. else
  1650. CROSSBINDIR=
  1651. endif
  1652. BATCHEXT=.bat
  1653. LOADEREXT=.as
  1654. EXEEXT=.exe
  1655. PPLEXT=.ppl
  1656. PPUEXT=.ppu
  1657. OEXT=.o
  1658. ASMEXT=.s
  1659. SMARTEXT=.sl
  1660. STATICLIBEXT=.a
  1661. SHAREDLIBEXT=.so
  1662. SHAREDLIBPREFIX=libfp
  1663. STATICLIBPREFIX=libp
  1664. IMPORTLIBPREFIX=libimp
  1665. RSTEXT=.rst
  1666. EXEDBGEXT=.dbg
  1667. ifeq ($(OS_TARGET),go32v1)
  1668. STATICLIBPREFIX=
  1669. SHORTSUFFIX=v1
  1670. endif
  1671. ifeq ($(OS_TARGET),go32v2)
  1672. STATICLIBPREFIX=
  1673. SHORTSUFFIX=dos
  1674. IMPORTLIBPREFIX=
  1675. endif
  1676. ifeq ($(OS_TARGET),watcom)
  1677. STATICLIBPREFIX=
  1678. OEXT=.obj
  1679. ASMEXT=.asm
  1680. SHAREDLIBEXT=.dll
  1681. SHORTSUFFIX=wat
  1682. IMPORTLIBPREFIX=
  1683. endif
  1684. ifneq ($(CPU_TARGET),jvm)
  1685. ifeq ($(OS_TARGET),android)
  1686. BATCHEXT=.sh
  1687. EXEEXT=
  1688. HASSHAREDLIB=1
  1689. SHORTSUFFIX=lnx
  1690. endif
  1691. endif
  1692. ifeq ($(OS_TARGET),linux)
  1693. BATCHEXT=.sh
  1694. EXEEXT=
  1695. HASSHAREDLIB=1
  1696. SHORTSUFFIX=lnx
  1697. endif
  1698. ifeq ($(OS_TARGET),dragonfly)
  1699. BATCHEXT=.sh
  1700. EXEEXT=
  1701. HASSHAREDLIB=1
  1702. SHORTSUFFIX=df
  1703. endif
  1704. ifeq ($(OS_TARGET),freebsd)
  1705. BATCHEXT=.sh
  1706. EXEEXT=
  1707. HASSHAREDLIB=1
  1708. SHORTSUFFIX=fbs
  1709. endif
  1710. ifeq ($(OS_TARGET),netbsd)
  1711. BATCHEXT=.sh
  1712. EXEEXT=
  1713. HASSHAREDLIB=1
  1714. SHORTSUFFIX=nbs
  1715. endif
  1716. ifeq ($(OS_TARGET),openbsd)
  1717. BATCHEXT=.sh
  1718. EXEEXT=
  1719. HASSHAREDLIB=1
  1720. SHORTSUFFIX=obs
  1721. endif
  1722. ifeq ($(OS_TARGET),win32)
  1723. SHAREDLIBEXT=.dll
  1724. SHORTSUFFIX=w32
  1725. endif
  1726. ifeq ($(OS_TARGET),os2)
  1727. BATCHEXT=.cmd
  1728. AOUTEXT=.out
  1729. STATICLIBPREFIX=
  1730. SHAREDLIBEXT=.dll
  1731. SHORTSUFFIX=os2
  1732. ECHO=echo
  1733. IMPORTLIBPREFIX=
  1734. endif
  1735. ifeq ($(OS_TARGET),emx)
  1736. BATCHEXT=.cmd
  1737. AOUTEXT=.out
  1738. STATICLIBPREFIX=
  1739. SHAREDLIBEXT=.dll
  1740. SHORTSUFFIX=emx
  1741. ECHO=echo
  1742. IMPORTLIBPREFIX=
  1743. endif
  1744. ifeq ($(OS_TARGET),amiga)
  1745. EXEEXT=
  1746. SHAREDLIBEXT=.library
  1747. SHORTSUFFIX=amg
  1748. endif
  1749. ifeq ($(OS_TARGET),aros)
  1750. EXEEXT=
  1751. SHAREDLIBEXT=.library
  1752. SHORTSUFFIX=aros
  1753. endif
  1754. ifeq ($(OS_TARGET),morphos)
  1755. EXEEXT=
  1756. SHAREDLIBEXT=.library
  1757. SHORTSUFFIX=mos
  1758. endif
  1759. ifeq ($(OS_TARGET),atari)
  1760. EXEEXT=.ttp
  1761. SHORTSUFFIX=ata
  1762. endif
  1763. ifeq ($(OS_TARGET),beos)
  1764. BATCHEXT=.sh
  1765. EXEEXT=
  1766. SHORTSUFFIX=be
  1767. endif
  1768. ifeq ($(OS_TARGET),haiku)
  1769. BATCHEXT=.sh
  1770. EXEEXT=
  1771. SHORTSUFFIX=hai
  1772. endif
  1773. ifeq ($(OS_TARGET),solaris)
  1774. BATCHEXT=.sh
  1775. EXEEXT=
  1776. SHORTSUFFIX=sun
  1777. endif
  1778. ifeq ($(OS_TARGET),qnx)
  1779. BATCHEXT=.sh
  1780. EXEEXT=
  1781. SHORTSUFFIX=qnx
  1782. endif
  1783. ifeq ($(OS_TARGET),netware)
  1784. EXEEXT=.nlm
  1785. STATICLIBPREFIX=
  1786. SHORTSUFFIX=nw
  1787. IMPORTLIBPREFIX=imp
  1788. endif
  1789. ifeq ($(OS_TARGET),netwlibc)
  1790. EXEEXT=.nlm
  1791. STATICLIBPREFIX=
  1792. SHORTSUFFIX=nwl
  1793. IMPORTLIBPREFIX=imp
  1794. endif
  1795. ifeq ($(OS_TARGET),macos)
  1796. BATCHEXT=
  1797. EXEEXT=
  1798. DEBUGSYMEXT=.xcoff
  1799. SHORTSUFFIX=mac
  1800. IMPORTLIBPREFIX=imp
  1801. endif
  1802. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  1803. BATCHEXT=.sh
  1804. EXEEXT=
  1805. HASSHAREDLIB=1
  1806. SHORTSUFFIX=dwn
  1807. EXEDBGEXT=.dSYM
  1808. endif
  1809. ifeq ($(OS_TARGET),gba)
  1810. EXEEXT=.gba
  1811. SHAREDLIBEXT=.so
  1812. SHORTSUFFIX=gba
  1813. endif
  1814. ifeq ($(OS_TARGET),symbian)
  1815. SHAREDLIBEXT=.dll
  1816. SHORTSUFFIX=symbian
  1817. endif
  1818. ifeq ($(OS_TARGET),NativeNT)
  1819. SHAREDLIBEXT=.dll
  1820. SHORTSUFFIX=nativent
  1821. endif
  1822. ifeq ($(OS_TARGET),wii)
  1823. EXEEXT=.dol
  1824. SHAREDLIBEXT=.so
  1825. SHORTSUFFIX=wii
  1826. endif
  1827. ifeq ($(OS_TARGET),aix)
  1828. BATCHEXT=.sh
  1829. EXEEXT=
  1830. SHAREDLIBEXT=.a
  1831. SHORTSUFFIX=aix
  1832. endif
  1833. ifeq ($(OS_TARGET),java)
  1834. OEXT=.class
  1835. ASMEXT=.j
  1836. SHAREDLIBEXT=.jar
  1837. SHORTSUFFIX=java
  1838. endif
  1839. ifeq ($(CPU_TARGET),jvm)
  1840. ifeq ($(OS_TARGET),android)
  1841. OEXT=.class
  1842. ASMEXT=.j
  1843. SHAREDLIBEXT=.jar
  1844. SHORTSUFFIX=android
  1845. endif
  1846. endif
  1847. ifeq ($(OS_TARGET),msdos)
  1848. STATICLIBPREFIX=
  1849. STATICLIBEXT=.a
  1850. SHORTSUFFIX=d16
  1851. endif
  1852. ifeq ($(OS_TARGET),embedded)
  1853. ifeq ($(CPU_TARGET),i8086)
  1854. STATICLIBPREFIX=
  1855. STATICLIBEXT=.a
  1856. else
  1857. EXEEXT=.bin
  1858. endif
  1859. SHORTSUFFIX=emb
  1860. endif
  1861. ifeq ($(OS_TARGET),win16)
  1862. STATICLIBPREFIX=
  1863. STATICLIBEXT=.a
  1864. SHAREDLIBEXT=.dll
  1865. SHORTSUFFIX=w16
  1866. endif
  1867. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1868. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1869. ZIPSUFFIX=$(SHORTSUFFIX)
  1870. ZIPCROSSPREFIX=
  1871. ZIPSOURCESUFFIX=src
  1872. ZIPEXAMPLESUFFIX=exm
  1873. else
  1874. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1875. ZIPSOURCESUFFIX=.source
  1876. ZIPEXAMPLESUFFIX=.examples
  1877. ifdef CROSSCOMPILE
  1878. ZIPSUFFIX=.$(SOURCESUFFIX)
  1879. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  1880. else
  1881. ZIPSUFFIX=.$(TARGETSUFFIX)
  1882. ZIPCROSSPREFIX=
  1883. endif
  1884. endif
  1885. ifndef ECHO
  1886. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  1887. ifeq ($(ECHO),)
  1888. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  1889. ifeq ($(ECHO),)
  1890. ECHO= __missing_command_ECHO
  1891. else
  1892. ECHO:=$(firstword $(ECHO))
  1893. endif
  1894. else
  1895. ECHO:=$(firstword $(ECHO))
  1896. endif
  1897. endif
  1898. export ECHO
  1899. ifndef DATE
  1900. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  1901. ifeq ($(DATE),)
  1902. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  1903. ifeq ($(DATE),)
  1904. DATE= __missing_command_DATE
  1905. else
  1906. DATE:=$(firstword $(DATE))
  1907. endif
  1908. else
  1909. DATE:=$(firstword $(DATE))
  1910. endif
  1911. endif
  1912. export DATE
  1913. ifndef GINSTALL
  1914. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  1915. ifeq ($(GINSTALL),)
  1916. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  1917. ifeq ($(GINSTALL),)
  1918. GINSTALL= __missing_command_GINSTALL
  1919. else
  1920. GINSTALL:=$(firstword $(GINSTALL))
  1921. endif
  1922. else
  1923. GINSTALL:=$(firstword $(GINSTALL))
  1924. endif
  1925. endif
  1926. export GINSTALL
  1927. ifndef CPPROG
  1928. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  1929. ifeq ($(CPPROG),)
  1930. CPPROG= __missing_command_CPPROG
  1931. else
  1932. CPPROG:=$(firstword $(CPPROG))
  1933. endif
  1934. endif
  1935. export CPPROG
  1936. ifndef RMPROG
  1937. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  1938. ifeq ($(RMPROG),)
  1939. RMPROG= __missing_command_RMPROG
  1940. else
  1941. RMPROG:=$(firstword $(RMPROG))
  1942. endif
  1943. endif
  1944. export RMPROG
  1945. ifndef MVPROG
  1946. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  1947. ifeq ($(MVPROG),)
  1948. MVPROG= __missing_command_MVPROG
  1949. else
  1950. MVPROG:=$(firstword $(MVPROG))
  1951. endif
  1952. endif
  1953. export MVPROG
  1954. ifndef MKDIRPROG
  1955. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1956. ifeq ($(MKDIRPROG),)
  1957. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1958. ifeq ($(MKDIRPROG),)
  1959. MKDIRPROG= __missing_command_MKDIRPROG
  1960. else
  1961. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1962. endif
  1963. else
  1964. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1965. endif
  1966. endif
  1967. export MKDIRPROG
  1968. ifndef ECHOREDIR
  1969. ifndef inUnix
  1970. ECHOREDIR=echo
  1971. else
  1972. ECHOREDIR=$(ECHO)
  1973. endif
  1974. endif
  1975. ifndef COPY
  1976. COPY:=$(CPPROG) -fp
  1977. endif
  1978. ifndef COPYTREE
  1979. COPYTREE:=$(CPPROG) -Rfp
  1980. endif
  1981. ifndef MKDIRTREE
  1982. MKDIRTREE:=$(MKDIRPROG) -p
  1983. endif
  1984. ifndef MOVE
  1985. MOVE:=$(MVPROG) -f
  1986. endif
  1987. ifndef DEL
  1988. DEL:=$(RMPROG) -f
  1989. endif
  1990. ifndef DELTREE
  1991. DELTREE:=$(RMPROG) -rf
  1992. endif
  1993. ifndef INSTALL
  1994. ifdef inUnix
  1995. INSTALL:=$(GINSTALL) -c -m 644
  1996. else
  1997. INSTALL:=$(COPY)
  1998. endif
  1999. endif
  2000. ifndef INSTALLEXE
  2001. ifdef inUnix
  2002. INSTALLEXE:=$(GINSTALL) -c -m 755
  2003. else
  2004. INSTALLEXE:=$(COPY)
  2005. endif
  2006. endif
  2007. ifndef MKDIR
  2008. MKDIR:=$(GINSTALL) -m 755 -d
  2009. endif
  2010. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2011. ifndef PPUMOVE
  2012. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2013. ifeq ($(PPUMOVE),)
  2014. PPUMOVE= __missing_command_PPUMOVE
  2015. else
  2016. PPUMOVE:=$(firstword $(PPUMOVE))
  2017. endif
  2018. endif
  2019. export PPUMOVE
  2020. ifndef FPCMAKE
  2021. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2022. ifeq ($(FPCMAKE),)
  2023. FPCMAKE= __missing_command_FPCMAKE
  2024. else
  2025. FPCMAKE:=$(firstword $(FPCMAKE))
  2026. endif
  2027. endif
  2028. export FPCMAKE
  2029. ifndef ZIPPROG
  2030. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2031. ifeq ($(ZIPPROG),)
  2032. ZIPPROG= __missing_command_ZIPPROG
  2033. else
  2034. ZIPPROG:=$(firstword $(ZIPPROG))
  2035. endif
  2036. endif
  2037. export ZIPPROG
  2038. ifndef TARPROG
  2039. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2040. ifeq ($(TARPROG),)
  2041. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2042. ifeq ($(TARPROG),)
  2043. TARPROG= __missing_command_TARPROG
  2044. else
  2045. TARPROG:=$(firstword $(TARPROG))
  2046. endif
  2047. else
  2048. TARPROG:=$(firstword $(TARPROG))
  2049. endif
  2050. endif
  2051. export TARPROG
  2052. ASNAME=$(BINUTILSPREFIX)as
  2053. LDNAME=$(BINUTILSPREFIX)ld
  2054. ARNAME=$(BINUTILSPREFIX)ar
  2055. RCNAME=$(BINUTILSPREFIX)rc
  2056. NASMNAME=$(BINUTILSPREFIX)nasm
  2057. ifndef ASPROG
  2058. ifdef CROSSBINDIR
  2059. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2060. else
  2061. ASPROG=$(ASNAME)
  2062. endif
  2063. endif
  2064. ifndef LDPROG
  2065. ifdef CROSSBINDIR
  2066. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2067. else
  2068. LDPROG=$(LDNAME)
  2069. endif
  2070. endif
  2071. ifndef RCPROG
  2072. ifdef CROSSBINDIR
  2073. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2074. else
  2075. RCPROG=$(RCNAME)
  2076. endif
  2077. endif
  2078. ifndef ARPROG
  2079. ifdef CROSSBINDIR
  2080. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2081. else
  2082. ARPROG=$(ARNAME)
  2083. endif
  2084. endif
  2085. ifndef NASMPROG
  2086. ifdef CROSSBINDIR
  2087. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2088. else
  2089. NASMPROG=$(NASMNAME)
  2090. endif
  2091. endif
  2092. AS=$(ASPROG)
  2093. LD=$(LDPROG)
  2094. RC=$(RCPROG)
  2095. AR=$(ARPROG)
  2096. NASM=$(NASMPROG)
  2097. ifdef inUnix
  2098. PPAS=./ppas$(SRCBATCHEXT)
  2099. else
  2100. PPAS=ppas$(SRCBATCHEXT)
  2101. endif
  2102. ifdef inUnix
  2103. LDCONFIG=ldconfig
  2104. else
  2105. LDCONFIG=
  2106. endif
  2107. ifdef DATE
  2108. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2109. else
  2110. DATESTR=
  2111. endif
  2112. ZIPOPT=-9
  2113. ZIPEXT=.zip
  2114. ifeq ($(USETAR),bz2)
  2115. TAROPT=vj
  2116. TAREXT=.tar.bz2
  2117. else
  2118. TAROPT=vz
  2119. TAREXT=.tar.gz
  2120. endif
  2121. ifndef NOCPUDEF
  2122. override FPCOPTDEF=$(ARCH)
  2123. endif
  2124. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2125. override FPCOPT+=-T$(OS_TARGET)
  2126. endif
  2127. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  2128. override FPCOPT+=-P$(ARCH)
  2129. endif
  2130. ifeq ($(OS_SOURCE),openbsd)
  2131. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2132. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  2133. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  2134. endif
  2135. ifndef CROSSBOOTSTRAP
  2136. ifneq ($(BINUTILSPREFIX),)
  2137. override FPCOPT+=-XP$(BINUTILSPREFIX)
  2138. endif
  2139. ifneq ($(BINUTILSPREFIX),)
  2140. override FPCOPT+=-Xr$(RLINKPATH)
  2141. endif
  2142. endif
  2143. ifndef CROSSCOMPILE
  2144. ifneq ($(BINUTILSPREFIX),)
  2145. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  2146. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  2147. endif
  2148. endif
  2149. ifdef UNITDIR
  2150. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2151. endif
  2152. ifdef LIBDIR
  2153. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2154. endif
  2155. ifdef OBJDIR
  2156. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2157. endif
  2158. ifdef INCDIR
  2159. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2160. endif
  2161. ifdef LINKSMART
  2162. override FPCOPT+=-XX
  2163. endif
  2164. ifdef CREATESMART
  2165. override FPCOPT+=-CX
  2166. endif
  2167. ifdef DEBUG
  2168. override FPCOPT+=-gl
  2169. override FPCOPTDEF+=DEBUG
  2170. endif
  2171. ifdef RELEASE
  2172. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  2173. ifeq ($(CPU_TARGET),i386)
  2174. FPCCPUOPT:=-OG2p3
  2175. endif
  2176. ifeq ($(CPU_TARGET),powerpc)
  2177. FPCCPUOPT:=-O1r
  2178. endif
  2179. else
  2180. FPCCPUOPT:=-O2
  2181. endif
  2182. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  2183. override FPCOPTDEF+=RELEASE
  2184. endif
  2185. ifdef STRIP
  2186. override FPCOPT+=-Xs
  2187. endif
  2188. ifdef OPTIMIZE
  2189. override FPCOPT+=-O2
  2190. endif
  2191. ifdef VERBOSE
  2192. override FPCOPT+=-vwni
  2193. endif
  2194. ifdef COMPILER_OPTIONS
  2195. override FPCOPT+=$(COMPILER_OPTIONS)
  2196. endif
  2197. ifdef COMPILER_UNITDIR
  2198. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2199. endif
  2200. ifdef COMPILER_LIBRARYDIR
  2201. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2202. endif
  2203. ifdef COMPILER_OBJECTDIR
  2204. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2205. endif
  2206. ifdef COMPILER_INCLUDEDIR
  2207. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2208. endif
  2209. ifdef CROSSBINDIR
  2210. override FPCOPT+=-FD$(CROSSBINDIR)
  2211. endif
  2212. ifdef COMPILER_TARGETDIR
  2213. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2214. ifeq ($(COMPILER_TARGETDIR),.)
  2215. override TARGETDIRPREFIX=
  2216. else
  2217. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2218. endif
  2219. endif
  2220. ifdef COMPILER_UNITTARGETDIR
  2221. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2222. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2223. override UNITTARGETDIRPREFIX=
  2224. else
  2225. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2226. endif
  2227. else
  2228. ifdef COMPILER_TARGETDIR
  2229. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2230. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2231. endif
  2232. endif
  2233. ifdef CREATESHARED
  2234. override FPCOPT+=-Cg
  2235. endif
  2236. ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  2237. ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
  2238. override FPCOPT+=-Cg
  2239. endif
  2240. endif
  2241. ifdef LINKSHARED
  2242. endif
  2243. ifdef OPT
  2244. override FPCOPT+=$(OPT)
  2245. endif
  2246. ifdef FPMAKEBUILDOPT
  2247. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  2248. endif
  2249. ifdef FPCOPTDEF
  2250. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2251. endif
  2252. ifdef CFGFILE
  2253. override FPCOPT+=@$(CFGFILE)
  2254. endif
  2255. ifdef USEENV
  2256. override FPCEXTCMD:=$(FPCOPT)
  2257. override FPCOPT:=!FPCEXTCMD
  2258. export FPCEXTCMD
  2259. endif
  2260. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  2261. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  2262. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  2263. override ACROSSCOMPILE=1
  2264. endif
  2265. ifdef ACROSSCOMPILE
  2266. override FPCOPT+=$(CROSSOPT)
  2267. endif
  2268. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  2269. ifneq (,$(findstring -sh ,$(COMPILER)))
  2270. UseEXECPPAS=1
  2271. endif
  2272. ifneq (,$(findstring -s ,$(COMPILER)))
  2273. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2274. UseEXECPPAS=1
  2275. endif
  2276. endif
  2277. ifneq ($(UseEXECPPAS),1)
  2278. EXECPPAS=
  2279. else
  2280. ifdef RUNBATCH
  2281. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  2282. else
  2283. EXECPPAS:=@$(PPAS)
  2284. endif
  2285. endif
  2286. .PHONY: fpc_units
  2287. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  2288. override ALLTARGET+=fpc_units
  2289. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  2290. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  2291. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2292. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2293. endif
  2294. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  2295. ifdef TARGET_RSTS
  2296. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2297. override CLEANRSTFILES+=$(RSTFILES)
  2298. endif
  2299. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  2300. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2301. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2302. fpc_all: $(FPCMADE)
  2303. fpc_smart:
  2304. $(MAKE) all LINKSMART=1 CREATESMART=1
  2305. fpc_debug:
  2306. $(MAKE) all DEBUG=1
  2307. fpc_release:
  2308. $(MAKE) all RELEASE=1
  2309. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  2310. $(COMPILER_UNITTARGETDIR):
  2311. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2312. $(COMPILER_TARGETDIR):
  2313. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2314. %$(PPUEXT): %.pp
  2315. $(COMPILER) $<
  2316. $(EXECPPAS)
  2317. %$(PPUEXT): %.pas
  2318. $(COMPILER) $<
  2319. $(EXECPPAS)
  2320. %$(EXEEXT): %.pp
  2321. $(COMPILER) $<
  2322. $(EXECPPAS)
  2323. %$(EXEEXT): %.pas
  2324. $(COMPILER) $<
  2325. $(EXECPPAS)
  2326. %$(EXEEXT): %.lpr
  2327. $(COMPILER) $<
  2328. $(EXECPPAS)
  2329. %$(EXEEXT): %.dpr
  2330. $(COMPILER) $<
  2331. $(EXECPPAS)
  2332. %.res: %.rc
  2333. windres -i $< -o $@
  2334. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2335. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2336. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2337. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2338. vpath %.inc $(COMPILER_INCLUDEDIR)
  2339. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2340. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2341. .PHONY: fpc_shared
  2342. override INSTALLTARGET+=fpc_shared_install
  2343. ifndef SHARED_LIBVERSION
  2344. SHARED_LIBVERSION=$(FPC_VERSION)
  2345. endif
  2346. ifndef SHARED_LIBNAME
  2347. SHARED_LIBNAME=$(PACKAGE_NAME)
  2348. endif
  2349. ifndef SHARED_FULLNAME
  2350. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  2351. endif
  2352. ifndef SHARED_LIBUNITS
  2353. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  2354. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  2355. endif
  2356. fpc_shared:
  2357. ifdef HASSHAREDLIB
  2358. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  2359. ifneq ($(SHARED_BUILD),n)
  2360. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
  2361. endif
  2362. else
  2363. @$(ECHO) Shared Libraries not supported
  2364. endif
  2365. fpc_shared_install:
  2366. ifneq ($(SHARED_BUILD),n)
  2367. ifneq ($(SHARED_LIBUNITS),)
  2368. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  2369. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  2370. endif
  2371. endif
  2372. endif
  2373. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2374. ifdef INSTALL_UNITS
  2375. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2376. endif
  2377. ifdef INSTALL_BUILDUNIT
  2378. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2379. endif
  2380. ifdef INSTALLPPUFILES
  2381. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  2382. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2383. else
  2384. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2385. endif
  2386. ifneq ($(UNITTARGETDIRPREFIX),)
  2387. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
  2388. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
  2389. endif
  2390. override INSTALL_CREATEPACKAGEFPC=1
  2391. endif
  2392. ifdef INSTALLEXEFILES
  2393. ifneq ($(TARGETDIRPREFIX),)
  2394. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  2395. endif
  2396. endif
  2397. fpc_install: all $(INSTALLTARGET)
  2398. ifdef INSTALLEXEFILES
  2399. $(MKDIR) $(INSTALL_BINDIR)
  2400. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2401. endif
  2402. ifdef INSTALL_CREATEPACKAGEFPC
  2403. ifdef FPCMAKE
  2404. ifdef PACKAGE_VERSION
  2405. ifneq ($(wildcard Makefile.fpc),)
  2406. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  2407. $(MKDIR) $(INSTALL_UNITDIR)
  2408. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2409. endif
  2410. endif
  2411. endif
  2412. endif
  2413. ifdef INSTALLPPUFILES
  2414. $(MKDIR) $(INSTALL_UNITDIR)
  2415. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2416. ifneq ($(INSTALLPPULINKFILES),)
  2417. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2418. endif
  2419. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2420. $(MKDIR) $(INSTALL_LIBDIR)
  2421. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2422. ifdef inUnix
  2423. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2424. endif
  2425. endif
  2426. endif
  2427. ifdef INSTALL_FILES
  2428. $(MKDIR) $(INSTALL_DATADIR)
  2429. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2430. endif
  2431. fpc_sourceinstall: distclean
  2432. $(MKDIR) $(INSTALL_SOURCEDIR)
  2433. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2434. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2435. ifdef HASEXAMPLES
  2436. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2437. endif
  2438. ifdef EXAMPLESOURCEFILES
  2439. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2440. endif
  2441. ifdef TARGET_EXAMPLEDIRS
  2442. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2443. endif
  2444. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2445. ifdef EXEFILES
  2446. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2447. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  2448. endif
  2449. ifdef CLEAN_PROGRAMS
  2450. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  2451. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  2452. endif
  2453. ifdef CLEAN_UNITS
  2454. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2455. endif
  2456. ifdef CLEANPPUFILES
  2457. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2458. ifdef DEBUGSYMEXT
  2459. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2460. endif
  2461. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  2462. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  2463. endif
  2464. fpc_clean: $(CLEANTARGET)
  2465. ifdef CLEANEXEFILES
  2466. -$(DEL) $(CLEANEXEFILES)
  2467. endif
  2468. ifdef CLEANEXEDBGFILES
  2469. -$(DELTREE) $(CLEANEXEDBGFILES)
  2470. endif
  2471. ifdef CLEANPPUFILES
  2472. -$(DEL) $(CLEANPPUFILES)
  2473. endif
  2474. ifneq ($(CLEANPPULINKFILES),)
  2475. -$(DEL) $(CLEANPPULINKFILES)
  2476. endif
  2477. ifdef CLEANRSTFILES
  2478. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2479. endif
  2480. ifdef CLEAN_FILES
  2481. -$(DEL) $(CLEAN_FILES)
  2482. endif
  2483. ifdef LIB_NAME
  2484. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2485. endif
  2486. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2487. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  2488. fpc_cleanall: $(CLEANTARGET)
  2489. ifdef CLEANEXEFILES
  2490. -$(DEL) $(CLEANEXEFILES)
  2491. endif
  2492. ifdef COMPILER_UNITTARGETDIR
  2493. ifdef CLEANPPUFILES
  2494. -$(DEL) $(CLEANPPUFILES)
  2495. endif
  2496. ifneq ($(CLEANPPULINKFILES),)
  2497. -$(DEL) $(CLEANPPULINKFILES)
  2498. endif
  2499. ifdef CLEANRSTFILES
  2500. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2501. endif
  2502. endif
  2503. ifdef CLEAN_FILES
  2504. -$(DEL) $(CLEAN_FILES)
  2505. endif
  2506. -$(DELTREE) units
  2507. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2508. ifneq ($(PPUEXT),.ppu)
  2509. -$(DEL) *.o *.ppu *.a
  2510. endif
  2511. -$(DELTREE) *$(SMARTEXT)
  2512. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2513. -$(DEL) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  2514. ifdef AOUTEXT
  2515. -$(DEL) *$(AOUTEXT)
  2516. endif
  2517. ifdef DEBUGSYMEXT
  2518. -$(DEL) *$(DEBUGSYMEXT)
  2519. endif
  2520. ifdef LOCALFPMAKEBIN
  2521. -$(DEL) $(LOCALFPMAKEBIN)
  2522. -$(DEL) $(FPMAKEBINOBJ)
  2523. endif
  2524. fpc_distclean: cleanall
  2525. .PHONY: fpc_baseinfo
  2526. override INFORULES+=fpc_baseinfo
  2527. fpc_baseinfo:
  2528. @$(ECHO)
  2529. @$(ECHO) == Package info ==
  2530. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  2531. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  2532. @$(ECHO)
  2533. @$(ECHO) == Configuration info ==
  2534. @$(ECHO)
  2535. @$(ECHO) FPC.......... $(FPC)
  2536. @$(ECHO) FPC Version.. $(FPC_VERSION)
  2537. @$(ECHO) Source CPU... $(CPU_SOURCE)
  2538. @$(ECHO) Target CPU... $(CPU_TARGET)
  2539. @$(ECHO) Source OS.... $(OS_SOURCE)
  2540. @$(ECHO) Target OS.... $(OS_TARGET)
  2541. @$(ECHO) Full Source.. $(FULL_SOURCE)
  2542. @$(ECHO) Full Target.. $(FULL_TARGET)
  2543. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  2544. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  2545. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  2546. @$(ECHO)
  2547. @$(ECHO) == Directory info ==
  2548. @$(ECHO)
  2549. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  2550. @$(ECHO)
  2551. @$(ECHO) Basedir......... $(BASEDIR)
  2552. @$(ECHO) FPCDir.......... $(FPCDIR)
  2553. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  2554. @$(ECHO) UnitsDir........ $(UNITSDIR)
  2555. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  2556. @$(ECHO)
  2557. @$(ECHO) GCC library..... $(GCCLIBDIR)
  2558. @$(ECHO) Other library... $(OTHERLIBDIR)
  2559. @$(ECHO)
  2560. @$(ECHO) == Tools info ==
  2561. @$(ECHO)
  2562. @$(ECHO) As........ $(AS)
  2563. @$(ECHO) Ld........ $(LD)
  2564. @$(ECHO) Ar........ $(AR)
  2565. @$(ECHO) Rc........ $(RC)
  2566. @$(ECHO)
  2567. @$(ECHO) Mv........ $(MVPROG)
  2568. @$(ECHO) Cp........ $(CPPROG)
  2569. @$(ECHO) Rm........ $(RMPROG)
  2570. @$(ECHO) GInstall.. $(GINSTALL)
  2571. @$(ECHO) Echo...... $(ECHO)
  2572. @$(ECHO) Shell..... $(SHELL)
  2573. @$(ECHO) Date...... $(DATE)
  2574. @$(ECHO) FPCMake... $(FPCMAKE)
  2575. @$(ECHO) PPUMove... $(PPUMOVE)
  2576. @$(ECHO) Zip....... $(ZIPPROG)
  2577. @$(ECHO)
  2578. @$(ECHO) == Object info ==
  2579. @$(ECHO)
  2580. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  2581. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  2582. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  2583. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  2584. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  2585. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  2586. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  2587. @$(ECHO)
  2588. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  2589. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  2590. @$(ECHO)
  2591. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  2592. @$(ECHO) Install Files....... $(INSTALL_FILES)
  2593. @$(ECHO)
  2594. @$(ECHO) == Install info ==
  2595. @$(ECHO)
  2596. @$(ECHO) DateStr.............. $(DATESTR)
  2597. @$(ECHO) ZipName.............. $(ZIPNAME)
  2598. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  2599. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  2600. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  2601. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  2602. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  2603. @$(ECHO)
  2604. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  2605. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  2606. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  2607. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  2608. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  2609. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  2610. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  2611. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  2612. @$(ECHO)
  2613. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  2614. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  2615. @$(ECHO)
  2616. .PHONY: fpc_info
  2617. fpc_info: $(INFORULES)
  2618. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  2619. fpc_makefile_dirs
  2620. fpc_makefile:
  2621. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  2622. fpc_makefile_sub1:
  2623. ifdef TARGET_DIRS
  2624. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  2625. endif
  2626. ifdef TARGET_EXAMPLEDIRS
  2627. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  2628. endif
  2629. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  2630. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  2631. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  2632. all: fpc_all
  2633. debug: fpc_debug
  2634. smart: fpc_smart
  2635. release: fpc_release
  2636. units: fpc_units
  2637. examples:
  2638. shared: fpc_shared
  2639. install: fpc_install
  2640. sourceinstall: fpc_sourceinstall
  2641. exampleinstall: fpc_exampleinstall
  2642. distinstall:
  2643. zipinstall:
  2644. zipsourceinstall:
  2645. zipexampleinstall:
  2646. zipdistinstall:
  2647. clean: fpc_clean
  2648. distclean: fpc_distclean
  2649. cleanall: fpc_cleanall
  2650. info: fpc_info
  2651. makefiles: fpc_makefiles
  2652. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  2653. ifneq ($(wildcard fpcmake.loc),)
  2654. include fpcmake.loc
  2655. endif
  2656. .NOTPARALLEL:
  2657. SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
  2658. include $(INC)/makefile.inc
  2659. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  2660. include $(PROCINC)/makefile.cpu
  2661. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  2662. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) winres.inc
  2663. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  2664. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp
  2665. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  2666. $(COMPILER) $(INC)/uuchar.pp
  2667. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  2668. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  2669. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  2670. $(COMPILER) $(INC)/iso7185.pp
  2671. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2672. $(COMPILER) $(INC)/extpas.pp
  2673. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
  2674. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
  2675. $(SYSTEMUNIT)$(PPUEXT)
  2676. $(COMPILER) -I$(PROCINC) $(INC)/strings.pp
  2677. windows$(PPUEXT) : windows.pp $(WINDOWS_SOURCE_FILES) $(SYSTEMUNIT)$(PPUEXT)
  2678. $(COMPILER) -I$(WININC) windows.pp
  2679. messages$(PPUEXT): messages.pp $(WININC)/messages.inc windows$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2680. $(COMPILER) -I$(WININC) messages.pp
  2681. dynlibs$(PPUEXT) : $(INC)/dynlibs.pas windows$(PPUEXT) rtlconsts$(PPUEXT) sysconst$(PPUEXT) sysutils$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2682. $(COMPILER) $(INC)/dynlibs.pas
  2683. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) windows$(PPUEXT)
  2684. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  2685. objpas$(PPUEXT) dos$(PPUEXT) windows$(PPUEXT) sysconst$(PPUEXT)
  2686. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  2687. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  2688. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) \
  2689. sysconst$(PPUEXT) fgl$(PPUEXT) sortbase$(PPUEXT)
  2690. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  2691. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT) sortbase$(PPUEXT)
  2692. $(COMPILER) $(OBJPASDIR)/fgl.pp
  2693. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  2694. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  2695. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  2696. $(COMPILER) $(OBJPASDIR)/math.pp
  2697. types$(PPUEXT) : $(OBJPASDIR)/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2698. $(COMPILER) $(OBJPASDIR)/types.pp
  2699. rtlconsts$(PPUEXT) : objpas$(PPUEXT) $(OBJPASDIR)/rtlconsts.pp
  2700. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  2701. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2702. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  2703. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  2704. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  2705. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
  2706. $(COMPILER) $(INC)/getopts.pp
  2707. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  2708. $(COMPILER) -Sg $(INC)/heaptrc.pp
  2709. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp windows$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2710. $(COMPILER) $(INC)/lineinfo.pp
  2711. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT)
  2712. $(COMPILER) $(INC)/lnfodwrf.pp
  2713. charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)
  2714. $(COMPILER) $(INC)/charset.pp
  2715. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  2716. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  2717. matrix$(PPUEXT) : $(INC)/matrix.pp $(SYSTEMUNIT)$(PPUEXT)
  2718. $(COMPILER) $(INC)/matrix.pp
  2719. cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
  2720. $(COMPILER) $(INC)/cmem.pp
  2721. ucomplex$(PPUEXT) : $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2722. $(COMPILER) $(INC)/ucomplex.pp
  2723. fpintres$(PPUEXT) : $(INC)/fpintres.pp $(SYSTEMUNIT)$(PPUEXT)
  2724. $(COMPILER) $(INC)/fpintres.pp
  2725. fpwidestring$(PPUEXT): $(OBJPASDIR)/fpwidestring.pp unicodedata$(PPUEXT) charset$(PPUEXT)
  2726. $(COMPILER) $(OBJPASDIR)/fpwidestring.pp
  2727. unicodedata$(PPUEXT): $(OBJPASDIR)/unicodedata.pas
  2728. $(COMPILER) $(OBJPASDIR)/unicodedata.pas
  2729. unicodenumtable$(PPUEXT): $(OBJPASDIR)/unicodenumtable.pas
  2730. $(COMPILER) $(OBJPASDIR)/unicodenumtable.pas
  2731. character$(PPUEXT): $(OBJPASDIR)/character.pas
  2732. $(COMPILER) $(OBJPASDIR)/character.pas
  2733. sortbase$(PPUEXT) : $(INC)/sortbase.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2734. $(COMPILER) $<
  2735. ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
  2736. $(COMPILER) $(INC)/ctypes.pp
  2737. sharemem$(PPUEXT) : $(WINDIR)/sharemem.pp system$(PPUEXT)
  2738. $(COMPILER) $(WINDIR)/sharemem.pp
  2739. fpcmemdll.dll : $(WINDIR)/fpcmemdll.pp system$(PPUEXT)
  2740. $(COMPILER) $(WINDIR)/fpcmemdll.pp