Makefile 111 KB

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