Makefile 119 KB

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