Makefile 104 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim i386-android i386-aros m68k-linux m68k-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macosclassic m68k-embedded m68k-sinclairql powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-darwin aarch64-win64 aarch64-android aarch64-ios wasm32-embedded wasm32-wasi sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override OS_TARGET_DEFAULT=embedded
  104. override DEFAULT_FPCDIR=../..
  105. ifndef FPC
  106. ifdef PP
  107. FPC=$(PP)
  108. endif
  109. endif
  110. ifndef FPC
  111. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  112. ifneq ($(FPCPROG),)
  113. FPCPROG:=$(firstword $(FPCPROG))
  114. ifneq ($(CPU_TARGET),)
  115. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  116. else
  117. FPC:=$(shell $(FPCPROG) -PB)
  118. endif
  119. ifneq ($(findstring Error,$(FPC)),)
  120. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  121. else
  122. ifeq ($(strip $(wildcard $(FPC))),)
  123. FPC:=$(firstword $(FPCPROG))
  124. endif
  125. endif
  126. else
  127. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  128. endif
  129. endif
  130. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  131. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  132. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  133. ifeq ($(FOUNDFPC),)
  134. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  135. ifeq ($(FOUNDFPC),)
  136. $(error Compiler $(FPC) not found)
  137. endif
  138. endif
  139. ifndef FPC_COMPILERINFO
  140. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  141. endif
  142. ifndef FPC_VERSION
  143. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  144. endif
  145. export FPC FPC_VERSION FPC_COMPILERINFO
  146. unexport CHECKDEPEND ALLDEPENDENCIES
  147. ifndef CPU_TARGET
  148. ifdef CPU_TARGET_DEFAULT
  149. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  150. endif
  151. endif
  152. ifndef OS_TARGET
  153. ifdef OS_TARGET_DEFAULT
  154. OS_TARGET=$(OS_TARGET_DEFAULT)
  155. endif
  156. endif
  157. ifndef CPU_SOURCE
  158. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  159. endif
  160. ifndef CPU_TARGET
  161. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  162. endif
  163. ifndef OS_SOURCE
  164. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  165. endif
  166. ifndef OS_TARGET
  167. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  168. endif
  169. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  170. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  171. ifeq ($(CPU_TARGET),armeb)
  172. ARCH=arm
  173. override FPCOPT+=-Cb
  174. else
  175. ifeq ($(CPU_TARGET),armel)
  176. ARCH=arm
  177. override FPCOPT+=-CaEABI
  178. else
  179. ARCH=$(CPU_TARGET)
  180. endif
  181. endif
  182. ifeq ($(FULL_TARGET),arm-embedded)
  183. ifeq ($(SUBARCH),)
  184. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  185. endif
  186. override FPCOPT+=-Cp$(SUBARCH)
  187. endif
  188. ifeq ($(FULL_TARGET),avr-embedded)
  189. ifeq ($(SUBARCH),)
  190. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  191. endif
  192. override FPCOPT+=-Cp$(SUBARCH)
  193. endif
  194. ifeq ($(FULL_TARGET),mipsel-embedded)
  195. ifeq ($(SUBARCH),)
  196. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  197. endif
  198. override FPCOPT+=-Cp$(SUBARCH)
  199. endif
  200. ifeq ($(FULL_TARGET),xtensa-embedded)
  201. ifeq ($(SUBARCH),)
  202. $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  203. endif
  204. override FPCOPT+=-Cp$(SUBARCH)
  205. endif
  206. ifeq ($(FULL_TARGET),xtensa-freertos)
  207. ifeq ($(SUBARCH),)
  208. $(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  209. endif
  210. override FPCOPT+=-Cp$(SUBARCH)
  211. endif
  212. ifeq ($(FULL_TARGET),arm-freertos)
  213. ifeq ($(SUBARCH),)
  214. $(error When compiling for arm-freertos, a sub-architecture (e.g. SUBARCH=armv6m or SUBARCH=armv7em) must be defined)
  215. endif
  216. override FPCOPT+=-Cp$(SUBARCH)
  217. endif
  218. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  219. TARGETSUFFIX=$(OS_TARGET)
  220. SOURCESUFFIX=$(OS_SOURCE)
  221. else
  222. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  223. TARGETSUFFIX=$(OS_TARGET)
  224. else
  225. TARGETSUFFIX=$(FULL_TARGET)
  226. endif
  227. SOURCESUFFIX=$(FULL_SOURCE)
  228. endif
  229. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  230. CROSSCOMPILE=1
  231. endif
  232. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  233. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  234. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  235. endif
  236. endif
  237. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  238. BSDhier=1
  239. endif
  240. ifeq ($(OS_TARGET),linux)
  241. linuxHier=1
  242. endif
  243. ifndef CROSSCOMPILE
  244. BUILDFULLNATIVE=1
  245. export BUILDFULLNATIVE
  246. endif
  247. ifdef BUILDFULLNATIVE
  248. BUILDNATIVE=1
  249. export BUILDNATIVE
  250. endif
  251. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  252. ifdef FPCDIR
  253. override FPCDIR:=$(subst \,/,$(FPCDIR))
  254. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  255. override FPCDIR=wrong
  256. endif
  257. else
  258. override FPCDIR=wrong
  259. endif
  260. ifdef DEFAULT_FPCDIR
  261. ifeq ($(FPCDIR),wrong)
  262. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  263. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  264. override FPCDIR=wrong
  265. endif
  266. endif
  267. endif
  268. ifeq ($(FPCDIR),wrong)
  269. ifdef inUnix
  270. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  271. ifeq ($(wildcard $(FPCDIR)/units),)
  272. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  273. endif
  274. else
  275. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  276. override FPCDIR:=$(FPCDIR)/..
  277. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  278. override FPCDIR:=$(FPCDIR)/..
  279. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  280. override FPCDIR:=$(BASEDIR)
  281. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  282. override FPCDIR=c:/pp
  283. endif
  284. endif
  285. endif
  286. endif
  287. endif
  288. ifndef CROSSBINDIR
  289. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  290. endif
  291. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  292. ifneq ($(findstring $(OS_SOURCE),darwin ios),)
  293. DARWIN2DARWIN=1
  294. endif
  295. endif
  296. ifndef BINUTILSPREFIX
  297. ifndef CROSSBINDIR
  298. ifdef CROSSCOMPILE
  299. ifneq ($(OS_TARGET),msdos)
  300. ifndef DARWIN2DARWIN
  301. ifneq ($(CPU_TARGET),jvm)
  302. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  303. ifeq ($(OS_TARGET),android)
  304. ifeq ($(CPU_TARGET),arm)
  305. BINUTILSPREFIX=arm-linux-androideabi-
  306. else
  307. ifeq ($(CPU_TARGET),i386)
  308. BINUTILSPREFIX=i686-linux-android-
  309. else
  310. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  311. endif
  312. endif
  313. endif
  314. endif
  315. endif
  316. else
  317. BINUTILSPREFIX=$(OS_TARGET)-
  318. endif
  319. endif
  320. endif
  321. endif
  322. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  323. ifeq ($(UNITSDIR),)
  324. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  325. endif
  326. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  327. ifndef FPCFPMAKE
  328. ifdef CROSSCOMPILE
  329. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  330. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  331. ifneq ($(FPCPROG),)
  332. FPCPROG:=$(firstword $(FPCPROG))
  333. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  334. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  335. FPCFPMAKE:=$(firstword $(FPCPROG))
  336. endif
  337. else
  338. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  339. endif
  340. else
  341. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  342. FPMAKE_SKIP_CONFIG=-n
  343. export FPCFPMAKE
  344. export FPMAKE_SKIP_CONFIG
  345. endif
  346. else
  347. FPMAKE_SKIP_CONFIG=-n
  348. FPCFPMAKE=$(FPC)
  349. endif
  350. endif
  351. override PACKAGE_NAME=rtl
  352. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  353. RTL=..
  354. INC=$(RTL)/inc
  355. COMMON=$(RTL)/common
  356. PROCINC=$(RTL)/$(CPU_TARGET)
  357. UNITPREFIX=rtl
  358. SYSTEMUNIT=system
  359. LOADERS=
  360. ifeq ($(ARCH),mipsel)
  361. ifeq ($(SUBARCH),pic32mx)
  362. override LOADERS=startup
  363. endif
  364. endif
  365. ifdef RELEASE
  366. override FPCOPT+=-Ur
  367. endif
  368. ifeq ($(ARCH),i8086)
  369. override [email protected]
  370. endif
  371. CPU_UNITS=
  372. SYSINIT_UNITS=
  373. CPU_SPECIFIC_COMMON_UNITS=
  374. ifeq ($(ARCH),arm)
  375. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  376. ifeq ($(SUBARCH),armv7m)
  377. CPU_UNITS=lm3fury lm3tempest stm32f10x_ld stm32f10x_md stm32f10x_hd stm32f10x_xl stm32f10x_conn stm32f10x_cl lpc13xx lpc1768 sam3x8e xmc4500 cortexm3 cortexm4 # thumb2_bare
  378. CPU_UNITS_DEFINED=1
  379. endif
  380. ifeq ($(SUBARCH),armv7em)
  381. CPU_UNITS=lm4f120 xmc4500 mk20d5 mk20d7 mk22f51212 mk64f12 stm32f401xx stm32f407xx stm32f411xe stm32f429xx stm32f446xx stm32f745 stm32f746 stm32f756 nrf52 cortexm3 cortexm4 cortexm7 # thumb2_bare
  382. CPU_UNITS_DEFINED=1
  383. endif
  384. ifeq ($(SUBARCH),armv4t)
  385. CPU_UNITS=lpc21x4 at91sam7x256 sc32442b
  386. CPU_UNITS_DEFINED=1
  387. endif
  388. ifeq ($(SUBARCH),armv4)
  389. CPU_UNITS=lpc21x4 at91sam7x256 sc32442b
  390. CPU_UNITS_DEFINED=1
  391. endif
  392. ifeq ($(SUBARCH),armv6m)
  393. CPU_UNITS=lpc8xx lpc11xx lpc122x stm32f0xx nrf51 cortexm0
  394. CPU_UNITS_DEFINED=1
  395. endif
  396. ifeq ($(SUBARCH),armv7a)
  397. CPU_UNITS=allwinner_a20 raspi2
  398. CPU_UNITS_DEFINED=1
  399. endif
  400. ifeq ($(CPU_UNITS_DEFINED),)
  401. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  402. endif
  403. endif
  404. ifeq ($(ARCH),avr)
  405. CPU_SPECIFIC_COMMON_UNITS=intrinsics
  406. ifeq ($(SUBARCH),avrtiny)
  407. CPU_UNITS=attiny4 attiny5 attiny9 attiny10 attiny20 attiny40 attiny102 attiny104
  408. CPU_UNITS_DEFINED=1
  409. endif
  410. ifeq ($(SUBARCH),avr1)
  411. CPU_UNITS=attiny11 attiny12 attiny15 attiny28
  412. CPU_UNITS_DEFINED=1
  413. endif
  414. ifeq ($(SUBARCH),avr2)
  415. CPU_UNITS=attiny26
  416. CPU_UNITS_DEFINED=1
  417. endif
  418. ifeq ($(SUBARCH),avr25)
  419. CPU_UNITS=attiny13 attiny13a attiny24 attiny24a attiny25 attiny43u \
  420. attiny44 attiny44a attiny45 attiny48 attiny84a attiny84 attiny85 \
  421. attiny87 attiny88 attiny261 attiny261a attiny441 attiny461 attiny461a attiny828 \
  422. attiny841 attiny861 attiny861a attiny2313 attiny2313a attiny4313
  423. CPU_UNITS_DEFINED=1
  424. endif
  425. ifeq ($(SUBARCH),avr35)
  426. CPU_UNITS=at90usb82 at90usb162 atmega8u2 atmega16u2 atmega32u2 attiny167 attiny1634
  427. CPU_UNITS_DEFINED=1
  428. endif
  429. ifeq ($(SUBARCH),avr4)
  430. CPU_UNITS=at90pwm1 at90pwm2b at90pwm3b at90pwm81 ata6285 ata6286 atmega8 \
  431. atmega8a atmega8hva atmega48 atmega48a atmega48p atmega48pa \
  432. atmega48pb atmega88 atmega88a atmega88p atmega88pa atmega88pb \
  433. atmega8515 atmega8535
  434. CPU_UNITS_DEFINED=1
  435. endif
  436. ifeq ($(SUBARCH),avr5)
  437. CPU_UNITS=avrsim at90can32 at90can64 at90pwm161 at90pwm216 at90pwm316 \
  438. at90usb646 at90usb647 atmega16 atmega16a atmega16hva atmega16hvb atmega16hvbrevb atmega16m1 \
  439. atmega16u4 atmega32 atmega32a atmega32c1 atmega32hvb atmega32hvbrevb atmega32m1 \
  440. atmega32u4 atmega64 atmega64a atmega64c1 atmega64hve2 atmega64m1 atmega64rfr2 atmega162 \
  441. atmega164a atmega164p atmega164pa atmega165a atmega165p atmega165pa \
  442. atmega168 atmega168a atmega168p atmega168pa atmega168pb atmega169a atmega169p \
  443. atmega169pa atmega324a atmega324p atmega324pa atmega324pb atmega325 atmega325a \
  444. atmega325p atmega325pa atmega328 atmega328p atmega328pb atmega329 atmega329a \
  445. atmega329p atmega329pa atmega406 atmega640 atmega644 atmega644a atmega644p \
  446. atmega644pa atmega644rfr2 atmega645 atmega645a atmega645p atmega649 atmega649a \
  447. atmega649p atmega3250 atmega3250a atmega3250p atmega3250pa atmega3290 \
  448. atmega3290a atmega3290p atmega3290pa atmega6450 atmega6450a \
  449. atmega6450p atmega6490 atmega6490a atmega6490p
  450. CPU_UNITS_DEFINED=1
  451. endif
  452. ifeq ($(SUBARCH),avr51)
  453. CPU_UNITS=at90can128 at90usb1286 at90usb1287 atmega128 atmega128a atmega128rfa1 atmega128rfr2 \
  454. atmega1280 atmega1281 atmega1284 atmega1284p atmega1284rfr2
  455. CPU_UNITS_DEFINED=1
  456. endif
  457. ifeq ($(SUBARCH),avr6)
  458. CPU_UNITS=avrsim atmega256rfr2 atmega2560 atmega2561 atmega2564rfr2
  459. CPU_UNITS_DEFINED=1
  460. endif
  461. ifeq ($(SUBARCH),avrxmega3)
  462. CPU_UNITS=atmega808 atmega809 atmega1608 atmega1609 atmega3208 atmega3209 \
  463. atmega4808 atmega4809 attiny202 attiny204 attiny212 attiny214 \
  464. attiny402 attiny404 attiny406 attiny412 attiny414 attiny416 \
  465. attiny416auto attiny417 attiny804 attiny806 attiny807 attiny814 \
  466. attiny816 attiny817 attiny1604 attiny1606 attiny1607 attiny1614 \
  467. attiny1616 attiny1617 attiny1624 attiny1626 attiny1627 attiny3214 attiny3216 attiny3217
  468. CPU_UNITS_DEFINED=1
  469. endif
  470. ifeq ($(CPU_UNITS_DEFINED),)
  471. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  472. endif
  473. endif
  474. ifeq ($(ARCH),i386)
  475. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  476. CPU_UNITS=multiboot
  477. CPU_UNITS_DEFINED=1
  478. ifeq ($(CPU_UNITS_DEFINED),)
  479. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  480. endif
  481. endif
  482. ifeq ($(ARCH),x86_64)
  483. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  484. endif
  485. ifeq ($(ARCH),m68k)
  486. CPU_SPECIFIC_COMMON_UNITS=sysutils math
  487. endif
  488. ifeq ($(ARCH),mipsel)
  489. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  490. ifeq ($(SUBARCH),pic32mx)
  491. CPU_UNITS=pic32mx1xxfxxxb pic32mx2xxfxxxb pic32mx1xxfxxxc pic32mx2xxfxxxc pic32mx1xxfxxxd pic32mx2xxfxxxd pic32mx7x5fxxxl pic32mx7x5fxxxh
  492. CPU_UNITS_DEFINED=1
  493. endif
  494. ifeq ($(CPU_UNITS_DEFINED),)
  495. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  496. endif
  497. endif
  498. ifeq ($(ARCH),riscv32)
  499. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  500. ifeq ($(SUBARCH),rv32imac)
  501. override FPCOPT+=-Cprv32imac
  502. CPU_UNITS=fe310g000 fe310g002 gd32vf103xx
  503. CPU_UNITS_DEFINED=1
  504. endif
  505. ifeq ($(SUBARCH),rv32i)
  506. override FPCOPT+=-Cprv32i
  507. CPU_UNITS=
  508. CPU_UNITS_DEFINED=1
  509. endif
  510. ifeq ($(CPU_UNITS_DEFINED),)
  511. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  512. endif
  513. endif
  514. ifeq ($(ARCH),riscv64)
  515. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  516. CPU_UNITS=
  517. CPU_UNITS_DEFINED=1
  518. ifeq ($(CPU_UNITS_DEFINED),)
  519. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  520. endif
  521. endif
  522. ifeq ($(ARCH),xtensa)
  523. CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
  524. ifeq ($(SUBARCH),lx106)
  525. CPU_UNITS=esp8266
  526. CPU_UNITS_DEFINED=1
  527. endif
  528. ifeq ($(CPU_UNITS_DEFINED),)
  529. $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
  530. endif
  531. endif
  532. OBJPASDIR=$(RTL)/objpas
  533. GRAPHDIR=$(INC)/graph
  534. ifeq ($(FULL_TARGET),i386-linux)
  535. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  536. endif
  537. ifeq ($(FULL_TARGET),i386-go32v2)
  538. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  539. endif
  540. ifeq ($(FULL_TARGET),i386-win32)
  541. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  542. endif
  543. ifeq ($(FULL_TARGET),i386-os2)
  544. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  545. endif
  546. ifeq ($(FULL_TARGET),i386-freebsd)
  547. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  548. endif
  549. ifeq ($(FULL_TARGET),i386-beos)
  550. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  551. endif
  552. ifeq ($(FULL_TARGET),i386-haiku)
  553. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  554. endif
  555. ifeq ($(FULL_TARGET),i386-netbsd)
  556. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  557. endif
  558. ifeq ($(FULL_TARGET),i386-solaris)
  559. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  560. endif
  561. ifeq ($(FULL_TARGET),i386-netware)
  562. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  563. endif
  564. ifeq ($(FULL_TARGET),i386-openbsd)
  565. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  566. endif
  567. ifeq ($(FULL_TARGET),i386-wdosx)
  568. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  569. endif
  570. ifeq ($(FULL_TARGET),i386-darwin)
  571. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  572. endif
  573. ifeq ($(FULL_TARGET),i386-emx)
  574. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  575. endif
  576. ifeq ($(FULL_TARGET),i386-watcom)
  577. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  578. endif
  579. ifeq ($(FULL_TARGET),i386-netwlibc)
  580. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  581. endif
  582. ifeq ($(FULL_TARGET),i386-wince)
  583. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  584. endif
  585. ifeq ($(FULL_TARGET),i386-embedded)
  586. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  587. endif
  588. ifeq ($(FULL_TARGET),i386-symbian)
  589. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  590. endif
  591. ifeq ($(FULL_TARGET),i386-nativent)
  592. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  593. endif
  594. ifeq ($(FULL_TARGET),i386-iphonesim)
  595. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  596. endif
  597. ifeq ($(FULL_TARGET),i386-android)
  598. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  599. endif
  600. ifeq ($(FULL_TARGET),i386-aros)
  601. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  602. endif
  603. ifeq ($(FULL_TARGET),m68k-linux)
  604. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  605. endif
  606. ifeq ($(FULL_TARGET),m68k-netbsd)
  607. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  608. endif
  609. ifeq ($(FULL_TARGET),m68k-amiga)
  610. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  611. endif
  612. ifeq ($(FULL_TARGET),m68k-atari)
  613. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  614. endif
  615. ifeq ($(FULL_TARGET),m68k-palmos)
  616. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  617. endif
  618. ifeq ($(FULL_TARGET),m68k-macosclassic)
  619. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  620. endif
  621. ifeq ($(FULL_TARGET),m68k-embedded)
  622. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  623. endif
  624. ifeq ($(FULL_TARGET),m68k-sinclairql)
  625. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  626. endif
  627. ifeq ($(FULL_TARGET),powerpc-linux)
  628. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  629. endif
  630. ifeq ($(FULL_TARGET),powerpc-netbsd)
  631. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  632. endif
  633. ifeq ($(FULL_TARGET),powerpc-amiga)
  634. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  635. endif
  636. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  637. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  638. endif
  639. ifeq ($(FULL_TARGET),powerpc-darwin)
  640. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  641. endif
  642. ifeq ($(FULL_TARGET),powerpc-morphos)
  643. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  644. endif
  645. ifeq ($(FULL_TARGET),powerpc-embedded)
  646. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  647. endif
  648. ifeq ($(FULL_TARGET),powerpc-wii)
  649. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  650. endif
  651. ifeq ($(FULL_TARGET),powerpc-aix)
  652. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  653. endif
  654. ifeq ($(FULL_TARGET),sparc-linux)
  655. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  656. endif
  657. ifeq ($(FULL_TARGET),sparc-netbsd)
  658. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  659. endif
  660. ifeq ($(FULL_TARGET),sparc-solaris)
  661. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  662. endif
  663. ifeq ($(FULL_TARGET),sparc-embedded)
  664. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  665. endif
  666. ifeq ($(FULL_TARGET),x86_64-linux)
  667. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  668. endif
  669. ifeq ($(FULL_TARGET),x86_64-freebsd)
  670. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  671. endif
  672. ifeq ($(FULL_TARGET),x86_64-haiku)
  673. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  674. endif
  675. ifeq ($(FULL_TARGET),x86_64-netbsd)
  676. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  677. endif
  678. ifeq ($(FULL_TARGET),x86_64-solaris)
  679. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  680. endif
  681. ifeq ($(FULL_TARGET),x86_64-openbsd)
  682. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  683. endif
  684. ifeq ($(FULL_TARGET),x86_64-darwin)
  685. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  686. endif
  687. ifeq ($(FULL_TARGET),x86_64-win64)
  688. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  689. endif
  690. ifeq ($(FULL_TARGET),x86_64-embedded)
  691. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  692. endif
  693. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  694. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  695. endif
  696. ifeq ($(FULL_TARGET),x86_64-android)
  697. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  698. endif
  699. ifeq ($(FULL_TARGET),x86_64-aros)
  700. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  701. endif
  702. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  703. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  704. endif
  705. ifeq ($(FULL_TARGET),arm-linux)
  706. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  707. endif
  708. ifeq ($(FULL_TARGET),arm-netbsd)
  709. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  710. endif
  711. ifeq ($(FULL_TARGET),arm-palmos)
  712. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  713. endif
  714. ifeq ($(FULL_TARGET),arm-wince)
  715. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  716. endif
  717. ifeq ($(FULL_TARGET),arm-gba)
  718. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  719. endif
  720. ifeq ($(FULL_TARGET),arm-nds)
  721. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  722. endif
  723. ifeq ($(FULL_TARGET),arm-embedded)
  724. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  725. endif
  726. ifeq ($(FULL_TARGET),arm-symbian)
  727. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  728. endif
  729. ifeq ($(FULL_TARGET),arm-android)
  730. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  731. endif
  732. ifeq ($(FULL_TARGET),arm-aros)
  733. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  734. endif
  735. ifeq ($(FULL_TARGET),arm-freertos)
  736. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  737. endif
  738. ifeq ($(FULL_TARGET),arm-ios)
  739. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  740. endif
  741. ifeq ($(FULL_TARGET),powerpc64-linux)
  742. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  743. endif
  744. ifeq ($(FULL_TARGET),powerpc64-darwin)
  745. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  746. endif
  747. ifeq ($(FULL_TARGET),powerpc64-embedded)
  748. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  749. endif
  750. ifeq ($(FULL_TARGET),powerpc64-aix)
  751. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  752. endif
  753. ifeq ($(FULL_TARGET),avr-embedded)
  754. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  755. endif
  756. ifeq ($(FULL_TARGET),armeb-linux)
  757. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  758. endif
  759. ifeq ($(FULL_TARGET),armeb-embedded)
  760. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  761. endif
  762. ifeq ($(FULL_TARGET),mips-linux)
  763. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  764. endif
  765. ifeq ($(FULL_TARGET),mipsel-linux)
  766. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  767. endif
  768. ifeq ($(FULL_TARGET),mipsel-embedded)
  769. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  770. endif
  771. ifeq ($(FULL_TARGET),mipsel-android)
  772. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  773. endif
  774. ifeq ($(FULL_TARGET),mips64el-linux)
  775. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  776. endif
  777. ifeq ($(FULL_TARGET),jvm-java)
  778. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  779. endif
  780. ifeq ($(FULL_TARGET),jvm-android)
  781. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  782. endif
  783. ifeq ($(FULL_TARGET),i8086-embedded)
  784. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  785. endif
  786. ifeq ($(FULL_TARGET),i8086-msdos)
  787. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  788. endif
  789. ifeq ($(FULL_TARGET),i8086-win16)
  790. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  791. endif
  792. ifeq ($(FULL_TARGET),aarch64-linux)
  793. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  794. endif
  795. ifeq ($(FULL_TARGET),aarch64-darwin)
  796. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  797. endif
  798. ifeq ($(FULL_TARGET),aarch64-win64)
  799. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  800. endif
  801. ifeq ($(FULL_TARGET),aarch64-android)
  802. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  803. endif
  804. ifeq ($(FULL_TARGET),aarch64-ios)
  805. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  806. endif
  807. ifeq ($(FULL_TARGET),wasm32-embedded)
  808. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  809. endif
  810. ifeq ($(FULL_TARGET),wasm32-wasi)
  811. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  812. endif
  813. ifeq ($(FULL_TARGET),sparc64-linux)
  814. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  815. endif
  816. ifeq ($(FULL_TARGET),riscv32-linux)
  817. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  818. endif
  819. ifeq ($(FULL_TARGET),riscv32-embedded)
  820. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  821. endif
  822. ifeq ($(FULL_TARGET),riscv64-linux)
  823. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  824. endif
  825. ifeq ($(FULL_TARGET),riscv64-embedded)
  826. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  827. endif
  828. ifeq ($(FULL_TARGET),xtensa-linux)
  829. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  830. endif
  831. ifeq ($(FULL_TARGET),xtensa-embedded)
  832. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  833. endif
  834. ifeq ($(FULL_TARGET),xtensa-freertos)
  835. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  836. endif
  837. ifeq ($(FULL_TARGET),z80-embedded)
  838. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  839. endif
  840. ifeq ($(FULL_TARGET),z80-zxspectrum)
  841. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  842. endif
  843. ifeq ($(FULL_TARGET),z80-msxdos)
  844. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  845. endif
  846. ifeq ($(FULL_TARGET),z80-amstradcpc)
  847. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas iso7185 extpas strings heapmgr consoleio sortbase $(CPU_SPECIFIC_COMMON_UNITS) dos ctypes charset cpall sysconst
  848. endif
  849. ifeq ($(FULL_TARGET),i386-linux)
  850. override TARGET_LOADERS+=$(LOADERS)
  851. endif
  852. ifeq ($(FULL_TARGET),i386-go32v2)
  853. override TARGET_LOADERS+=$(LOADERS)
  854. endif
  855. ifeq ($(FULL_TARGET),i386-win32)
  856. override TARGET_LOADERS+=$(LOADERS)
  857. endif
  858. ifeq ($(FULL_TARGET),i386-os2)
  859. override TARGET_LOADERS+=$(LOADERS)
  860. endif
  861. ifeq ($(FULL_TARGET),i386-freebsd)
  862. override TARGET_LOADERS+=$(LOADERS)
  863. endif
  864. ifeq ($(FULL_TARGET),i386-beos)
  865. override TARGET_LOADERS+=$(LOADERS)
  866. endif
  867. ifeq ($(FULL_TARGET),i386-haiku)
  868. override TARGET_LOADERS+=$(LOADERS)
  869. endif
  870. ifeq ($(FULL_TARGET),i386-netbsd)
  871. override TARGET_LOADERS+=$(LOADERS)
  872. endif
  873. ifeq ($(FULL_TARGET),i386-solaris)
  874. override TARGET_LOADERS+=$(LOADERS)
  875. endif
  876. ifeq ($(FULL_TARGET),i386-netware)
  877. override TARGET_LOADERS+=$(LOADERS)
  878. endif
  879. ifeq ($(FULL_TARGET),i386-openbsd)
  880. override TARGET_LOADERS+=$(LOADERS)
  881. endif
  882. ifeq ($(FULL_TARGET),i386-wdosx)
  883. override TARGET_LOADERS+=$(LOADERS)
  884. endif
  885. ifeq ($(FULL_TARGET),i386-darwin)
  886. override TARGET_LOADERS+=$(LOADERS)
  887. endif
  888. ifeq ($(FULL_TARGET),i386-emx)
  889. override TARGET_LOADERS+=$(LOADERS)
  890. endif
  891. ifeq ($(FULL_TARGET),i386-watcom)
  892. override TARGET_LOADERS+=$(LOADERS)
  893. endif
  894. ifeq ($(FULL_TARGET),i386-netwlibc)
  895. override TARGET_LOADERS+=$(LOADERS)
  896. endif
  897. ifeq ($(FULL_TARGET),i386-wince)
  898. override TARGET_LOADERS+=$(LOADERS)
  899. endif
  900. ifeq ($(FULL_TARGET),i386-embedded)
  901. override TARGET_LOADERS+=$(LOADERS)
  902. endif
  903. ifeq ($(FULL_TARGET),i386-symbian)
  904. override TARGET_LOADERS+=$(LOADERS)
  905. endif
  906. ifeq ($(FULL_TARGET),i386-nativent)
  907. override TARGET_LOADERS+=$(LOADERS)
  908. endif
  909. ifeq ($(FULL_TARGET),i386-iphonesim)
  910. override TARGET_LOADERS+=$(LOADERS)
  911. endif
  912. ifeq ($(FULL_TARGET),i386-android)
  913. override TARGET_LOADERS+=$(LOADERS)
  914. endif
  915. ifeq ($(FULL_TARGET),i386-aros)
  916. override TARGET_LOADERS+=$(LOADERS)
  917. endif
  918. ifeq ($(FULL_TARGET),m68k-linux)
  919. override TARGET_LOADERS+=$(LOADERS)
  920. endif
  921. ifeq ($(FULL_TARGET),m68k-netbsd)
  922. override TARGET_LOADERS+=$(LOADERS)
  923. endif
  924. ifeq ($(FULL_TARGET),m68k-amiga)
  925. override TARGET_LOADERS+=$(LOADERS)
  926. endif
  927. ifeq ($(FULL_TARGET),m68k-atari)
  928. override TARGET_LOADERS+=$(LOADERS)
  929. endif
  930. ifeq ($(FULL_TARGET),m68k-palmos)
  931. override TARGET_LOADERS+=$(LOADERS)
  932. endif
  933. ifeq ($(FULL_TARGET),m68k-macosclassic)
  934. override TARGET_LOADERS+=$(LOADERS)
  935. endif
  936. ifeq ($(FULL_TARGET),m68k-embedded)
  937. override TARGET_LOADERS+=$(LOADERS)
  938. endif
  939. ifeq ($(FULL_TARGET),m68k-sinclairql)
  940. override TARGET_LOADERS+=$(LOADERS)
  941. endif
  942. ifeq ($(FULL_TARGET),powerpc-linux)
  943. override TARGET_LOADERS+=$(LOADERS)
  944. endif
  945. ifeq ($(FULL_TARGET),powerpc-netbsd)
  946. override TARGET_LOADERS+=$(LOADERS)
  947. endif
  948. ifeq ($(FULL_TARGET),powerpc-amiga)
  949. override TARGET_LOADERS+=$(LOADERS)
  950. endif
  951. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  952. override TARGET_LOADERS+=$(LOADERS)
  953. endif
  954. ifeq ($(FULL_TARGET),powerpc-darwin)
  955. override TARGET_LOADERS+=$(LOADERS)
  956. endif
  957. ifeq ($(FULL_TARGET),powerpc-morphos)
  958. override TARGET_LOADERS+=$(LOADERS)
  959. endif
  960. ifeq ($(FULL_TARGET),powerpc-embedded)
  961. override TARGET_LOADERS+=$(LOADERS)
  962. endif
  963. ifeq ($(FULL_TARGET),powerpc-wii)
  964. override TARGET_LOADERS+=$(LOADERS)
  965. endif
  966. ifeq ($(FULL_TARGET),powerpc-aix)
  967. override TARGET_LOADERS+=$(LOADERS)
  968. endif
  969. ifeq ($(FULL_TARGET),sparc-linux)
  970. override TARGET_LOADERS+=$(LOADERS)
  971. endif
  972. ifeq ($(FULL_TARGET),sparc-netbsd)
  973. override TARGET_LOADERS+=$(LOADERS)
  974. endif
  975. ifeq ($(FULL_TARGET),sparc-solaris)
  976. override TARGET_LOADERS+=$(LOADERS)
  977. endif
  978. ifeq ($(FULL_TARGET),sparc-embedded)
  979. override TARGET_LOADERS+=$(LOADERS)
  980. endif
  981. ifeq ($(FULL_TARGET),x86_64-linux)
  982. override TARGET_LOADERS+=$(LOADERS)
  983. endif
  984. ifeq ($(FULL_TARGET),x86_64-freebsd)
  985. override TARGET_LOADERS+=$(LOADERS)
  986. endif
  987. ifeq ($(FULL_TARGET),x86_64-haiku)
  988. override TARGET_LOADERS+=$(LOADERS)
  989. endif
  990. ifeq ($(FULL_TARGET),x86_64-netbsd)
  991. override TARGET_LOADERS+=$(LOADERS)
  992. endif
  993. ifeq ($(FULL_TARGET),x86_64-solaris)
  994. override TARGET_LOADERS+=$(LOADERS)
  995. endif
  996. ifeq ($(FULL_TARGET),x86_64-openbsd)
  997. override TARGET_LOADERS+=$(LOADERS)
  998. endif
  999. ifeq ($(FULL_TARGET),x86_64-darwin)
  1000. override TARGET_LOADERS+=$(LOADERS)
  1001. endif
  1002. ifeq ($(FULL_TARGET),x86_64-win64)
  1003. override TARGET_LOADERS+=$(LOADERS)
  1004. endif
  1005. ifeq ($(FULL_TARGET),x86_64-embedded)
  1006. override TARGET_LOADERS+=$(LOADERS)
  1007. endif
  1008. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1009. override TARGET_LOADERS+=$(LOADERS)
  1010. endif
  1011. ifeq ($(FULL_TARGET),x86_64-android)
  1012. override TARGET_LOADERS+=$(LOADERS)
  1013. endif
  1014. ifeq ($(FULL_TARGET),x86_64-aros)
  1015. override TARGET_LOADERS+=$(LOADERS)
  1016. endif
  1017. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1018. override TARGET_LOADERS+=$(LOADERS)
  1019. endif
  1020. ifeq ($(FULL_TARGET),arm-linux)
  1021. override TARGET_LOADERS+=$(LOADERS)
  1022. endif
  1023. ifeq ($(FULL_TARGET),arm-netbsd)
  1024. override TARGET_LOADERS+=$(LOADERS)
  1025. endif
  1026. ifeq ($(FULL_TARGET),arm-palmos)
  1027. override TARGET_LOADERS+=$(LOADERS)
  1028. endif
  1029. ifeq ($(FULL_TARGET),arm-wince)
  1030. override TARGET_LOADERS+=$(LOADERS)
  1031. endif
  1032. ifeq ($(FULL_TARGET),arm-gba)
  1033. override TARGET_LOADERS+=$(LOADERS)
  1034. endif
  1035. ifeq ($(FULL_TARGET),arm-nds)
  1036. override TARGET_LOADERS+=$(LOADERS)
  1037. endif
  1038. ifeq ($(FULL_TARGET),arm-embedded)
  1039. override TARGET_LOADERS+=$(LOADERS)
  1040. endif
  1041. ifeq ($(FULL_TARGET),arm-symbian)
  1042. override TARGET_LOADERS+=$(LOADERS)
  1043. endif
  1044. ifeq ($(FULL_TARGET),arm-android)
  1045. override TARGET_LOADERS+=$(LOADERS)
  1046. endif
  1047. ifeq ($(FULL_TARGET),arm-aros)
  1048. override TARGET_LOADERS+=$(LOADERS)
  1049. endif
  1050. ifeq ($(FULL_TARGET),arm-freertos)
  1051. override TARGET_LOADERS+=$(LOADERS)
  1052. endif
  1053. ifeq ($(FULL_TARGET),arm-ios)
  1054. override TARGET_LOADERS+=$(LOADERS)
  1055. endif
  1056. ifeq ($(FULL_TARGET),powerpc64-linux)
  1057. override TARGET_LOADERS+=$(LOADERS)
  1058. endif
  1059. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1060. override TARGET_LOADERS+=$(LOADERS)
  1061. endif
  1062. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1063. override TARGET_LOADERS+=$(LOADERS)
  1064. endif
  1065. ifeq ($(FULL_TARGET),powerpc64-aix)
  1066. override TARGET_LOADERS+=$(LOADERS)
  1067. endif
  1068. ifeq ($(FULL_TARGET),avr-embedded)
  1069. override TARGET_LOADERS+=$(LOADERS)
  1070. endif
  1071. ifeq ($(FULL_TARGET),armeb-linux)
  1072. override TARGET_LOADERS+=$(LOADERS)
  1073. endif
  1074. ifeq ($(FULL_TARGET),armeb-embedded)
  1075. override TARGET_LOADERS+=$(LOADERS)
  1076. endif
  1077. ifeq ($(FULL_TARGET),mips-linux)
  1078. override TARGET_LOADERS+=$(LOADERS)
  1079. endif
  1080. ifeq ($(FULL_TARGET),mipsel-linux)
  1081. override TARGET_LOADERS+=$(LOADERS)
  1082. endif
  1083. ifeq ($(FULL_TARGET),mipsel-embedded)
  1084. override TARGET_LOADERS+=$(LOADERS)
  1085. endif
  1086. ifeq ($(FULL_TARGET),mipsel-android)
  1087. override TARGET_LOADERS+=$(LOADERS)
  1088. endif
  1089. ifeq ($(FULL_TARGET),mips64el-linux)
  1090. override TARGET_LOADERS+=$(LOADERS)
  1091. endif
  1092. ifeq ($(FULL_TARGET),jvm-java)
  1093. override TARGET_LOADERS+=$(LOADERS)
  1094. endif
  1095. ifeq ($(FULL_TARGET),jvm-android)
  1096. override TARGET_LOADERS+=$(LOADERS)
  1097. endif
  1098. ifeq ($(FULL_TARGET),i8086-embedded)
  1099. override TARGET_LOADERS+=$(LOADERS)
  1100. endif
  1101. ifeq ($(FULL_TARGET),i8086-msdos)
  1102. override TARGET_LOADERS+=$(LOADERS)
  1103. endif
  1104. ifeq ($(FULL_TARGET),i8086-win16)
  1105. override TARGET_LOADERS+=$(LOADERS)
  1106. endif
  1107. ifeq ($(FULL_TARGET),aarch64-linux)
  1108. override TARGET_LOADERS+=$(LOADERS)
  1109. endif
  1110. ifeq ($(FULL_TARGET),aarch64-darwin)
  1111. override TARGET_LOADERS+=$(LOADERS)
  1112. endif
  1113. ifeq ($(FULL_TARGET),aarch64-win64)
  1114. override TARGET_LOADERS+=$(LOADERS)
  1115. endif
  1116. ifeq ($(FULL_TARGET),aarch64-android)
  1117. override TARGET_LOADERS+=$(LOADERS)
  1118. endif
  1119. ifeq ($(FULL_TARGET),aarch64-ios)
  1120. override TARGET_LOADERS+=$(LOADERS)
  1121. endif
  1122. ifeq ($(FULL_TARGET),wasm32-embedded)
  1123. override TARGET_LOADERS+=$(LOADERS)
  1124. endif
  1125. ifeq ($(FULL_TARGET),wasm32-wasi)
  1126. override TARGET_LOADERS+=$(LOADERS)
  1127. endif
  1128. ifeq ($(FULL_TARGET),sparc64-linux)
  1129. override TARGET_LOADERS+=$(LOADERS)
  1130. endif
  1131. ifeq ($(FULL_TARGET),riscv32-linux)
  1132. override TARGET_LOADERS+=$(LOADERS)
  1133. endif
  1134. ifeq ($(FULL_TARGET),riscv32-embedded)
  1135. override TARGET_LOADERS+=$(LOADERS)
  1136. endif
  1137. ifeq ($(FULL_TARGET),riscv64-linux)
  1138. override TARGET_LOADERS+=$(LOADERS)
  1139. endif
  1140. ifeq ($(FULL_TARGET),riscv64-embedded)
  1141. override TARGET_LOADERS+=$(LOADERS)
  1142. endif
  1143. ifeq ($(FULL_TARGET),xtensa-linux)
  1144. override TARGET_LOADERS+=$(LOADERS)
  1145. endif
  1146. ifeq ($(FULL_TARGET),xtensa-embedded)
  1147. override TARGET_LOADERS+=$(LOADERS)
  1148. endif
  1149. ifeq ($(FULL_TARGET),xtensa-freertos)
  1150. override TARGET_LOADERS+=$(LOADERS)
  1151. endif
  1152. ifeq ($(FULL_TARGET),z80-embedded)
  1153. override TARGET_LOADERS+=$(LOADERS)
  1154. endif
  1155. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1156. override TARGET_LOADERS+=$(LOADERS)
  1157. endif
  1158. ifeq ($(FULL_TARGET),z80-msxdos)
  1159. override TARGET_LOADERS+=$(LOADERS)
  1160. endif
  1161. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1162. override TARGET_LOADERS+=$(LOADERS)
  1163. endif
  1164. override INSTALL_FPCPACKAGE=y
  1165. ifeq ($(FULL_TARGET),i386-linux)
  1166. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1167. endif
  1168. ifeq ($(FULL_TARGET),i386-go32v2)
  1169. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1170. endif
  1171. ifeq ($(FULL_TARGET),i386-win32)
  1172. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1173. endif
  1174. ifeq ($(FULL_TARGET),i386-os2)
  1175. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1176. endif
  1177. ifeq ($(FULL_TARGET),i386-freebsd)
  1178. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1179. endif
  1180. ifeq ($(FULL_TARGET),i386-beos)
  1181. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1182. endif
  1183. ifeq ($(FULL_TARGET),i386-haiku)
  1184. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1185. endif
  1186. ifeq ($(FULL_TARGET),i386-netbsd)
  1187. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1188. endif
  1189. ifeq ($(FULL_TARGET),i386-solaris)
  1190. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1191. endif
  1192. ifeq ($(FULL_TARGET),i386-netware)
  1193. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1194. endif
  1195. ifeq ($(FULL_TARGET),i386-openbsd)
  1196. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1197. endif
  1198. ifeq ($(FULL_TARGET),i386-wdosx)
  1199. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1200. endif
  1201. ifeq ($(FULL_TARGET),i386-darwin)
  1202. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1203. endif
  1204. ifeq ($(FULL_TARGET),i386-emx)
  1205. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1206. endif
  1207. ifeq ($(FULL_TARGET),i386-watcom)
  1208. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1209. endif
  1210. ifeq ($(FULL_TARGET),i386-netwlibc)
  1211. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1212. endif
  1213. ifeq ($(FULL_TARGET),i386-wince)
  1214. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1215. endif
  1216. ifeq ($(FULL_TARGET),i386-embedded)
  1217. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1218. endif
  1219. ifeq ($(FULL_TARGET),i386-symbian)
  1220. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1221. endif
  1222. ifeq ($(FULL_TARGET),i386-nativent)
  1223. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1224. endif
  1225. ifeq ($(FULL_TARGET),i386-iphonesim)
  1226. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1227. endif
  1228. ifeq ($(FULL_TARGET),i386-android)
  1229. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1230. endif
  1231. ifeq ($(FULL_TARGET),i386-aros)
  1232. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1233. endif
  1234. ifeq ($(FULL_TARGET),m68k-linux)
  1235. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1236. endif
  1237. ifeq ($(FULL_TARGET),m68k-netbsd)
  1238. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1239. endif
  1240. ifeq ($(FULL_TARGET),m68k-amiga)
  1241. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1242. endif
  1243. ifeq ($(FULL_TARGET),m68k-atari)
  1244. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1245. endif
  1246. ifeq ($(FULL_TARGET),m68k-palmos)
  1247. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1248. endif
  1249. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1250. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1251. endif
  1252. ifeq ($(FULL_TARGET),m68k-embedded)
  1253. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1254. endif
  1255. ifeq ($(FULL_TARGET),m68k-sinclairql)
  1256. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1257. endif
  1258. ifeq ($(FULL_TARGET),powerpc-linux)
  1259. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1260. endif
  1261. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1262. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1263. endif
  1264. ifeq ($(FULL_TARGET),powerpc-amiga)
  1265. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1266. endif
  1267. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1268. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1269. endif
  1270. ifeq ($(FULL_TARGET),powerpc-darwin)
  1271. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1272. endif
  1273. ifeq ($(FULL_TARGET),powerpc-morphos)
  1274. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1275. endif
  1276. ifeq ($(FULL_TARGET),powerpc-embedded)
  1277. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1278. endif
  1279. ifeq ($(FULL_TARGET),powerpc-wii)
  1280. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1281. endif
  1282. ifeq ($(FULL_TARGET),powerpc-aix)
  1283. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1284. endif
  1285. ifeq ($(FULL_TARGET),sparc-linux)
  1286. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1287. endif
  1288. ifeq ($(FULL_TARGET),sparc-netbsd)
  1289. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1290. endif
  1291. ifeq ($(FULL_TARGET),sparc-solaris)
  1292. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1293. endif
  1294. ifeq ($(FULL_TARGET),sparc-embedded)
  1295. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1296. endif
  1297. ifeq ($(FULL_TARGET),x86_64-linux)
  1298. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1299. endif
  1300. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1301. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1302. endif
  1303. ifeq ($(FULL_TARGET),x86_64-haiku)
  1304. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1305. endif
  1306. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1307. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1308. endif
  1309. ifeq ($(FULL_TARGET),x86_64-solaris)
  1310. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1311. endif
  1312. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1313. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1314. endif
  1315. ifeq ($(FULL_TARGET),x86_64-darwin)
  1316. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1317. endif
  1318. ifeq ($(FULL_TARGET),x86_64-win64)
  1319. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1320. endif
  1321. ifeq ($(FULL_TARGET),x86_64-embedded)
  1322. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1323. endif
  1324. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1325. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1326. endif
  1327. ifeq ($(FULL_TARGET),x86_64-android)
  1328. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1329. endif
  1330. ifeq ($(FULL_TARGET),x86_64-aros)
  1331. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1332. endif
  1333. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1334. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1335. endif
  1336. ifeq ($(FULL_TARGET),arm-linux)
  1337. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1338. endif
  1339. ifeq ($(FULL_TARGET),arm-netbsd)
  1340. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1341. endif
  1342. ifeq ($(FULL_TARGET),arm-palmos)
  1343. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1344. endif
  1345. ifeq ($(FULL_TARGET),arm-wince)
  1346. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1347. endif
  1348. ifeq ($(FULL_TARGET),arm-gba)
  1349. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1350. endif
  1351. ifeq ($(FULL_TARGET),arm-nds)
  1352. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1353. endif
  1354. ifeq ($(FULL_TARGET),arm-embedded)
  1355. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1356. endif
  1357. ifeq ($(FULL_TARGET),arm-symbian)
  1358. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1359. endif
  1360. ifeq ($(FULL_TARGET),arm-android)
  1361. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1362. endif
  1363. ifeq ($(FULL_TARGET),arm-aros)
  1364. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1365. endif
  1366. ifeq ($(FULL_TARGET),arm-freertos)
  1367. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1368. endif
  1369. ifeq ($(FULL_TARGET),arm-ios)
  1370. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1371. endif
  1372. ifeq ($(FULL_TARGET),powerpc64-linux)
  1373. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1374. endif
  1375. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1376. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1377. endif
  1378. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1379. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1380. endif
  1381. ifeq ($(FULL_TARGET),powerpc64-aix)
  1382. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1383. endif
  1384. ifeq ($(FULL_TARGET),avr-embedded)
  1385. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1386. endif
  1387. ifeq ($(FULL_TARGET),armeb-linux)
  1388. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1389. endif
  1390. ifeq ($(FULL_TARGET),armeb-embedded)
  1391. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1392. endif
  1393. ifeq ($(FULL_TARGET),mips-linux)
  1394. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1395. endif
  1396. ifeq ($(FULL_TARGET),mipsel-linux)
  1397. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1398. endif
  1399. ifeq ($(FULL_TARGET),mipsel-embedded)
  1400. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1401. endif
  1402. ifeq ($(FULL_TARGET),mipsel-android)
  1403. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1404. endif
  1405. ifeq ($(FULL_TARGET),mips64el-linux)
  1406. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1407. endif
  1408. ifeq ($(FULL_TARGET),jvm-java)
  1409. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1410. endif
  1411. ifeq ($(FULL_TARGET),jvm-android)
  1412. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1413. endif
  1414. ifeq ($(FULL_TARGET),i8086-embedded)
  1415. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1416. endif
  1417. ifeq ($(FULL_TARGET),i8086-msdos)
  1418. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1419. endif
  1420. ifeq ($(FULL_TARGET),i8086-win16)
  1421. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1422. endif
  1423. ifeq ($(FULL_TARGET),aarch64-linux)
  1424. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1425. endif
  1426. ifeq ($(FULL_TARGET),aarch64-darwin)
  1427. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1428. endif
  1429. ifeq ($(FULL_TARGET),aarch64-win64)
  1430. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1431. endif
  1432. ifeq ($(FULL_TARGET),aarch64-android)
  1433. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1434. endif
  1435. ifeq ($(FULL_TARGET),aarch64-ios)
  1436. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1437. endif
  1438. ifeq ($(FULL_TARGET),wasm32-embedded)
  1439. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1440. endif
  1441. ifeq ($(FULL_TARGET),wasm32-wasi)
  1442. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1443. endif
  1444. ifeq ($(FULL_TARGET),sparc64-linux)
  1445. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1446. endif
  1447. ifeq ($(FULL_TARGET),riscv32-linux)
  1448. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1449. endif
  1450. ifeq ($(FULL_TARGET),riscv32-embedded)
  1451. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1452. endif
  1453. ifeq ($(FULL_TARGET),riscv64-linux)
  1454. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1455. endif
  1456. ifeq ($(FULL_TARGET),riscv64-embedded)
  1457. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1458. endif
  1459. ifeq ($(FULL_TARGET),xtensa-linux)
  1460. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1461. endif
  1462. ifeq ($(FULL_TARGET),xtensa-embedded)
  1463. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1464. endif
  1465. ifeq ($(FULL_TARGET),xtensa-freertos)
  1466. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1467. endif
  1468. ifeq ($(FULL_TARGET),z80-embedded)
  1469. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1470. endif
  1471. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1472. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1473. endif
  1474. ifeq ($(FULL_TARGET),z80-msxdos)
  1475. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1476. endif
  1477. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1478. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1479. endif
  1480. ifeq ($(FULL_TARGET),i386-linux)
  1481. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1482. endif
  1483. ifeq ($(FULL_TARGET),i386-go32v2)
  1484. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1485. endif
  1486. ifeq ($(FULL_TARGET),i386-win32)
  1487. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1488. endif
  1489. ifeq ($(FULL_TARGET),i386-os2)
  1490. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1491. endif
  1492. ifeq ($(FULL_TARGET),i386-freebsd)
  1493. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1494. endif
  1495. ifeq ($(FULL_TARGET),i386-beos)
  1496. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1497. endif
  1498. ifeq ($(FULL_TARGET),i386-haiku)
  1499. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1500. endif
  1501. ifeq ($(FULL_TARGET),i386-netbsd)
  1502. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1503. endif
  1504. ifeq ($(FULL_TARGET),i386-solaris)
  1505. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1506. endif
  1507. ifeq ($(FULL_TARGET),i386-netware)
  1508. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1509. endif
  1510. ifeq ($(FULL_TARGET),i386-openbsd)
  1511. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1512. endif
  1513. ifeq ($(FULL_TARGET),i386-wdosx)
  1514. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1515. endif
  1516. ifeq ($(FULL_TARGET),i386-darwin)
  1517. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1518. endif
  1519. ifeq ($(FULL_TARGET),i386-emx)
  1520. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1521. endif
  1522. ifeq ($(FULL_TARGET),i386-watcom)
  1523. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1524. endif
  1525. ifeq ($(FULL_TARGET),i386-netwlibc)
  1526. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1527. endif
  1528. ifeq ($(FULL_TARGET),i386-wince)
  1529. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1530. endif
  1531. ifeq ($(FULL_TARGET),i386-embedded)
  1532. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1533. endif
  1534. ifeq ($(FULL_TARGET),i386-symbian)
  1535. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1536. endif
  1537. ifeq ($(FULL_TARGET),i386-nativent)
  1538. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1539. endif
  1540. ifeq ($(FULL_TARGET),i386-iphonesim)
  1541. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1542. endif
  1543. ifeq ($(FULL_TARGET),i386-android)
  1544. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1545. endif
  1546. ifeq ($(FULL_TARGET),i386-aros)
  1547. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1548. endif
  1549. ifeq ($(FULL_TARGET),m68k-linux)
  1550. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1551. endif
  1552. ifeq ($(FULL_TARGET),m68k-netbsd)
  1553. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1554. endif
  1555. ifeq ($(FULL_TARGET),m68k-amiga)
  1556. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1557. endif
  1558. ifeq ($(FULL_TARGET),m68k-atari)
  1559. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1560. endif
  1561. ifeq ($(FULL_TARGET),m68k-palmos)
  1562. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1563. endif
  1564. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1565. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1566. endif
  1567. ifeq ($(FULL_TARGET),m68k-embedded)
  1568. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1569. endif
  1570. ifeq ($(FULL_TARGET),m68k-sinclairql)
  1571. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1572. endif
  1573. ifeq ($(FULL_TARGET),powerpc-linux)
  1574. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1575. endif
  1576. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1577. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1578. endif
  1579. ifeq ($(FULL_TARGET),powerpc-amiga)
  1580. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1581. endif
  1582. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1583. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1584. endif
  1585. ifeq ($(FULL_TARGET),powerpc-darwin)
  1586. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1587. endif
  1588. ifeq ($(FULL_TARGET),powerpc-morphos)
  1589. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1590. endif
  1591. ifeq ($(FULL_TARGET),powerpc-embedded)
  1592. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1593. endif
  1594. ifeq ($(FULL_TARGET),powerpc-wii)
  1595. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1596. endif
  1597. ifeq ($(FULL_TARGET),powerpc-aix)
  1598. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1599. endif
  1600. ifeq ($(FULL_TARGET),sparc-linux)
  1601. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1602. endif
  1603. ifeq ($(FULL_TARGET),sparc-netbsd)
  1604. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1605. endif
  1606. ifeq ($(FULL_TARGET),sparc-solaris)
  1607. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1608. endif
  1609. ifeq ($(FULL_TARGET),sparc-embedded)
  1610. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1611. endif
  1612. ifeq ($(FULL_TARGET),x86_64-linux)
  1613. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1614. endif
  1615. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1616. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1617. endif
  1618. ifeq ($(FULL_TARGET),x86_64-haiku)
  1619. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1620. endif
  1621. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1622. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1623. endif
  1624. ifeq ($(FULL_TARGET),x86_64-solaris)
  1625. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1626. endif
  1627. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1628. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1629. endif
  1630. ifeq ($(FULL_TARGET),x86_64-darwin)
  1631. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1632. endif
  1633. ifeq ($(FULL_TARGET),x86_64-win64)
  1634. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1635. endif
  1636. ifeq ($(FULL_TARGET),x86_64-embedded)
  1637. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1638. endif
  1639. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1640. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1641. endif
  1642. ifeq ($(FULL_TARGET),x86_64-android)
  1643. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1644. endif
  1645. ifeq ($(FULL_TARGET),x86_64-aros)
  1646. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1647. endif
  1648. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1649. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1650. endif
  1651. ifeq ($(FULL_TARGET),arm-linux)
  1652. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1653. endif
  1654. ifeq ($(FULL_TARGET),arm-netbsd)
  1655. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1656. endif
  1657. ifeq ($(FULL_TARGET),arm-palmos)
  1658. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1659. endif
  1660. ifeq ($(FULL_TARGET),arm-wince)
  1661. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1662. endif
  1663. ifeq ($(FULL_TARGET),arm-gba)
  1664. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1665. endif
  1666. ifeq ($(FULL_TARGET),arm-nds)
  1667. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1668. endif
  1669. ifeq ($(FULL_TARGET),arm-embedded)
  1670. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1671. endif
  1672. ifeq ($(FULL_TARGET),arm-symbian)
  1673. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1674. endif
  1675. ifeq ($(FULL_TARGET),arm-android)
  1676. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1677. endif
  1678. ifeq ($(FULL_TARGET),arm-aros)
  1679. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1680. endif
  1681. ifeq ($(FULL_TARGET),arm-freertos)
  1682. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1683. endif
  1684. ifeq ($(FULL_TARGET),arm-ios)
  1685. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1686. endif
  1687. ifeq ($(FULL_TARGET),powerpc64-linux)
  1688. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1689. endif
  1690. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1691. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1692. endif
  1693. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1694. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1695. endif
  1696. ifeq ($(FULL_TARGET),powerpc64-aix)
  1697. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1698. endif
  1699. ifeq ($(FULL_TARGET),avr-embedded)
  1700. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1701. endif
  1702. ifeq ($(FULL_TARGET),armeb-linux)
  1703. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1704. endif
  1705. ifeq ($(FULL_TARGET),armeb-embedded)
  1706. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1707. endif
  1708. ifeq ($(FULL_TARGET),mips-linux)
  1709. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1710. endif
  1711. ifeq ($(FULL_TARGET),mipsel-linux)
  1712. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1713. endif
  1714. ifeq ($(FULL_TARGET),mipsel-embedded)
  1715. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1716. endif
  1717. ifeq ($(FULL_TARGET),mipsel-android)
  1718. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1719. endif
  1720. ifeq ($(FULL_TARGET),mips64el-linux)
  1721. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1722. endif
  1723. ifeq ($(FULL_TARGET),jvm-java)
  1724. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1725. endif
  1726. ifeq ($(FULL_TARGET),jvm-android)
  1727. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1728. endif
  1729. ifeq ($(FULL_TARGET),i8086-embedded)
  1730. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1731. endif
  1732. ifeq ($(FULL_TARGET),i8086-msdos)
  1733. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1734. endif
  1735. ifeq ($(FULL_TARGET),i8086-win16)
  1736. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1737. endif
  1738. ifeq ($(FULL_TARGET),aarch64-linux)
  1739. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1740. endif
  1741. ifeq ($(FULL_TARGET),aarch64-darwin)
  1742. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1743. endif
  1744. ifeq ($(FULL_TARGET),aarch64-win64)
  1745. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1746. endif
  1747. ifeq ($(FULL_TARGET),aarch64-android)
  1748. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1749. endif
  1750. ifeq ($(FULL_TARGET),aarch64-ios)
  1751. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1752. endif
  1753. ifeq ($(FULL_TARGET),wasm32-embedded)
  1754. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1755. endif
  1756. ifeq ($(FULL_TARGET),wasm32-wasi)
  1757. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1758. endif
  1759. ifeq ($(FULL_TARGET),sparc64-linux)
  1760. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1761. endif
  1762. ifeq ($(FULL_TARGET),riscv32-linux)
  1763. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1764. endif
  1765. ifeq ($(FULL_TARGET),riscv32-embedded)
  1766. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1767. endif
  1768. ifeq ($(FULL_TARGET),riscv64-linux)
  1769. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1770. endif
  1771. ifeq ($(FULL_TARGET),riscv64-embedded)
  1772. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1773. endif
  1774. ifeq ($(FULL_TARGET),xtensa-linux)
  1775. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1776. endif
  1777. ifeq ($(FULL_TARGET),xtensa-embedded)
  1778. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1779. endif
  1780. ifeq ($(FULL_TARGET),xtensa-freertos)
  1781. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1782. endif
  1783. ifeq ($(FULL_TARGET),z80-embedded)
  1784. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1785. endif
  1786. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1787. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1788. endif
  1789. ifeq ($(FULL_TARGET),z80-msxdos)
  1790. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1791. endif
  1792. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1793. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  1794. endif
  1795. ifdef REQUIRE_UNITSDIR
  1796. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1797. endif
  1798. ifdef REQUIRE_PACKAGESDIR
  1799. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1800. endif
  1801. ifdef ZIPINSTALL
  1802. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  1803. UNIXHier=1
  1804. endif
  1805. else
  1806. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  1807. UNIXHier=1
  1808. endif
  1809. endif
  1810. ifndef INSTALL_PREFIX
  1811. ifdef PREFIX
  1812. INSTALL_PREFIX=$(PREFIX)
  1813. endif
  1814. endif
  1815. ifndef INSTALL_PREFIX
  1816. ifdef UNIXHier
  1817. INSTALL_PREFIX=/usr/local
  1818. else
  1819. ifdef INSTALL_FPCPACKAGE
  1820. INSTALL_BASEDIR:=/pp
  1821. else
  1822. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1823. endif
  1824. endif
  1825. endif
  1826. export INSTALL_PREFIX
  1827. ifdef INSTALL_FPCSUBDIR
  1828. export INSTALL_FPCSUBDIR
  1829. endif
  1830. ifndef DIST_DESTDIR
  1831. DIST_DESTDIR:=$(BASEDIR)
  1832. endif
  1833. export DIST_DESTDIR
  1834. ifndef COMPILER_UNITTARGETDIR
  1835. ifdef PACKAGEDIR_MAIN
  1836. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1837. else
  1838. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1839. endif
  1840. endif
  1841. ifndef COMPILER_TARGETDIR
  1842. COMPILER_TARGETDIR=.
  1843. endif
  1844. ifndef INSTALL_BASEDIR
  1845. ifdef UNIXHier
  1846. ifdef INSTALL_FPCPACKAGE
  1847. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1848. else
  1849. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1850. endif
  1851. else
  1852. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1853. endif
  1854. endif
  1855. ifndef INSTALL_BINDIR
  1856. ifdef UNIXHier
  1857. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1858. else
  1859. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1860. ifdef INSTALL_FPCPACKAGE
  1861. ifdef CROSSCOMPILE
  1862. ifdef CROSSINSTALL
  1863. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1864. else
  1865. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1866. endif
  1867. else
  1868. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1869. endif
  1870. endif
  1871. endif
  1872. endif
  1873. ifndef INSTALL_UNITDIR
  1874. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1875. ifdef INSTALL_FPCPACKAGE
  1876. ifdef PACKAGE_NAME
  1877. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1878. endif
  1879. endif
  1880. endif
  1881. ifndef INSTALL_LIBDIR
  1882. ifdef UNIXHier
  1883. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1884. else
  1885. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1886. endif
  1887. endif
  1888. ifndef INSTALL_SOURCEDIR
  1889. ifdef UNIXHier
  1890. ifdef BSDhier
  1891. SRCPREFIXDIR=share/src
  1892. else
  1893. ifdef linuxHier
  1894. SRCPREFIXDIR=share/src
  1895. else
  1896. SRCPREFIXDIR=src
  1897. endif
  1898. endif
  1899. ifdef INSTALL_FPCPACKAGE
  1900. ifdef INSTALL_FPCSUBDIR
  1901. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1902. else
  1903. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1904. endif
  1905. else
  1906. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1907. endif
  1908. else
  1909. ifdef INSTALL_FPCPACKAGE
  1910. ifdef INSTALL_FPCSUBDIR
  1911. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1912. else
  1913. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1914. endif
  1915. else
  1916. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1917. endif
  1918. endif
  1919. endif
  1920. ifndef INSTALL_DOCDIR
  1921. ifdef UNIXHier
  1922. ifdef BSDhier
  1923. DOCPREFIXDIR=share/doc
  1924. else
  1925. ifdef linuxHier
  1926. DOCPREFIXDIR=share/doc
  1927. else
  1928. DOCPREFIXDIR=doc
  1929. endif
  1930. endif
  1931. ifdef INSTALL_FPCPACKAGE
  1932. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1933. else
  1934. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1935. endif
  1936. else
  1937. ifdef INSTALL_FPCPACKAGE
  1938. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1939. else
  1940. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1941. endif
  1942. endif
  1943. endif
  1944. ifndef INSTALL_EXAMPLEDIR
  1945. ifdef UNIXHier
  1946. ifdef INSTALL_FPCPACKAGE
  1947. ifdef BSDhier
  1948. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1949. else
  1950. ifdef linuxHier
  1951. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1952. else
  1953. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1954. endif
  1955. endif
  1956. else
  1957. ifdef BSDhier
  1958. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1959. else
  1960. ifdef linuxHier
  1961. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1962. else
  1963. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1964. endif
  1965. endif
  1966. endif
  1967. else
  1968. ifdef INSTALL_FPCPACKAGE
  1969. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1970. else
  1971. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1972. endif
  1973. endif
  1974. endif
  1975. ifndef INSTALL_DATADIR
  1976. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1977. endif
  1978. ifndef INSTALL_SHAREDDIR
  1979. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1980. endif
  1981. ifdef CROSSCOMPILE
  1982. ifndef CROSSBINDIR
  1983. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1984. ifeq ($(CROSSBINDIR),)
  1985. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1986. endif
  1987. endif
  1988. else
  1989. CROSSBINDIR=
  1990. endif
  1991. ifeq ($(OS_SOURCE),linux)
  1992. ifndef GCCLIBDIR
  1993. ifeq ($(CPU_TARGET),i386)
  1994. ifneq ($(findstring x86_64,$(shell uname -a)),)
  1995. ifeq ($(BINUTILSPREFIX),)
  1996. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  1997. else
  1998. CROSSGCCOPT=-m32
  1999. endif
  2000. endif
  2001. endif
  2002. ifeq ($(CPU_TARGET),powerpc)
  2003. ifeq ($(BINUTILSPREFIX),)
  2004. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2005. else
  2006. CROSSGCCOPT=-m32
  2007. endif
  2008. endif
  2009. ifeq ($(CPU_TARGET),powerpc64)
  2010. ifeq ($(BINUTILSPREFIX),)
  2011. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  2012. else
  2013. CROSSGCCOPT=-m64
  2014. endif
  2015. endif
  2016. ifeq ($(CPU_TARGET),sparc)
  2017. ifneq ($(findstring sparc64,$(shell uname -a)),)
  2018. ifeq ($(BINUTILSPREFIX),)
  2019. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2020. else
  2021. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips mipsel),)
  2022. CROSSGCCOPT=-mabi=32
  2023. else
  2024. CROSSGCCOPT=-m32
  2025. endif
  2026. endif
  2027. endif
  2028. endif
  2029. endif
  2030. ifdef FPCFPMAKE
  2031. FPCFPMAKE_CPU_TARGET=$(shell $(FPCFPMAKE) -iTP)
  2032. ifeq ($(CPU_TARGET),$(FPCFPMAKE_CPU_TARGET))
  2033. FPCMAKEGCCLIBDIR:=$(GCCLIBDIR)
  2034. else
  2035. ifneq ($(findstring $(FPCFPMAKE_CPU_TARGET),aarch64 powerpc64 riscv64 sparc64 x86_64),)
  2036. FPCMAKE_CROSSGCCOPT=-m64
  2037. else
  2038. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips64 mips64el),)
  2039. FPCMAKE_CROSSGCCOPT=-mabi=64
  2040. else
  2041. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips mipsel),)
  2042. FPCMAKE_CROSSGCCOPT=-mabi=32
  2043. else
  2044. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv64),)
  2045. FPCMAKE_CROSSGCCOPT=-mabi=lp64
  2046. else
  2047. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv32),)
  2048. FPCMAKE_CROSSGCCOPT=-mabi=ilp32
  2049. else
  2050. FPCMAKE_CROSSGCCOPT=-m32
  2051. endif
  2052. endif
  2053. endif
  2054. endif
  2055. endif
  2056. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc $(FPCMAKE_CROSSGCCOPT) -print-libgcc-file-name`)
  2057. endif
  2058. endif
  2059. ifndef FPCMAKEGCCLIBDIR
  2060. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2061. endif
  2062. ifndef GCCLIBDIR
  2063. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  2064. ifneq ($(CROSSGCC),)
  2065. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
  2066. endif
  2067. endif
  2068. endif
  2069. ifdef inUnix
  2070. ifeq ($(OS_SOURCE),netbsd)
  2071. OTHERLIBDIR:=/usr/pkg/lib
  2072. endif
  2073. export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR
  2074. endif
  2075. BATCHEXT=.bat
  2076. LOADEREXT=.as
  2077. EXEEXT=.exe
  2078. PPLEXT=.ppl
  2079. PPUEXT=.ppu
  2080. OEXT=.o
  2081. LTOEXT=.bc
  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),macosclassic)
  2220. BATCHEXT=
  2221. EXEEXT=
  2222. DEBUGSYMEXT=.xcoff
  2223. SHORTSUFFIX=mac
  2224. IMPORTLIBPREFIX=imp
  2225. endif
  2226. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  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. SHAREDLIBEXT=.a
  2255. SHORTSUFFIX=aix
  2256. endif
  2257. ifeq ($(OS_TARGET),java)
  2258. OEXT=.class
  2259. ASMEXT=.j
  2260. SHAREDLIBEXT=.jar
  2261. SHORTSUFFIX=java
  2262. endif
  2263. ifeq ($(CPU_TARGET),jvm)
  2264. ifeq ($(OS_TARGET),android)
  2265. OEXT=.class
  2266. ASMEXT=.j
  2267. SHAREDLIBEXT=.jar
  2268. SHORTSUFFIX=android
  2269. endif
  2270. endif
  2271. ifeq ($(OS_TARGET),msdos)
  2272. STATICLIBPREFIX=
  2273. STATICLIBEXT=.a
  2274. SHORTSUFFIX=d16
  2275. endif
  2276. ifeq ($(OS_TARGET),msxdos)
  2277. STATICLIBPREFIX=
  2278. STATICLIBEXT=.a
  2279. SHORTSUFFIX=msd
  2280. endif
  2281. ifeq ($(OS_TARGET),embedded)
  2282. ifeq ($(CPU_TARGET),i8086)
  2283. STATICLIBPREFIX=
  2284. STATICLIBEXT=.a
  2285. else
  2286. EXEEXT=.bin
  2287. endif
  2288. ifeq ($(CPU_TARGET),z80)
  2289. OEXT=.rel
  2290. endif
  2291. SHORTSUFFIX=emb
  2292. endif
  2293. ifeq ($(OS_TARGET),win16)
  2294. STATICLIBPREFIX=
  2295. STATICLIBEXT=.a
  2296. SHAREDLIBEXT=.dll
  2297. SHORTSUFFIX=w16
  2298. endif
  2299. ifeq ($(OS_TARGET),zxspectrum)
  2300. OEXT=.rel
  2301. endif
  2302. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  2303. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2304. ZIPSUFFIX=$(SHORTSUFFIX)
  2305. ZIPCROSSPREFIX=
  2306. ZIPSOURCESUFFIX=src
  2307. ZIPEXAMPLESUFFIX=exm
  2308. else
  2309. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2310. ZIPSOURCESUFFIX=.source
  2311. ZIPEXAMPLESUFFIX=.examples
  2312. ifdef CROSSCOMPILE
  2313. ZIPSUFFIX=.$(SOURCESUFFIX)
  2314. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2315. else
  2316. ZIPSUFFIX=.$(TARGETSUFFIX)
  2317. ZIPCROSSPREFIX=
  2318. endif
  2319. endif
  2320. ifndef ECHO
  2321. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2322. ifeq ($(ECHO),)
  2323. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2324. ifeq ($(ECHO),)
  2325. ECHO= __missing_command_ECHO
  2326. else
  2327. ECHO:=$(firstword $(ECHO))
  2328. endif
  2329. else
  2330. ECHO:=$(firstword $(ECHO))
  2331. endif
  2332. endif
  2333. export ECHO
  2334. ifndef DATE
  2335. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2336. ifeq ($(DATE),)
  2337. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2338. ifeq ($(DATE),)
  2339. DATE= __missing_command_DATE
  2340. else
  2341. DATE:=$(firstword $(DATE))
  2342. endif
  2343. else
  2344. DATE:=$(firstword $(DATE))
  2345. endif
  2346. endif
  2347. export DATE
  2348. ifndef GINSTALL
  2349. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2350. ifeq ($(GINSTALL),)
  2351. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2352. ifeq ($(GINSTALL),)
  2353. GINSTALL= __missing_command_GINSTALL
  2354. else
  2355. GINSTALL:=$(firstword $(GINSTALL))
  2356. endif
  2357. else
  2358. GINSTALL:=$(firstword $(GINSTALL))
  2359. endif
  2360. endif
  2361. export GINSTALL
  2362. ifndef CPPROG
  2363. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2364. ifeq ($(CPPROG),)
  2365. CPPROG= __missing_command_CPPROG
  2366. else
  2367. CPPROG:=$(firstword $(CPPROG))
  2368. endif
  2369. endif
  2370. export CPPROG
  2371. ifndef RMPROG
  2372. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2373. ifeq ($(RMPROG),)
  2374. RMPROG= __missing_command_RMPROG
  2375. else
  2376. RMPROG:=$(firstword $(RMPROG))
  2377. endif
  2378. endif
  2379. export RMPROG
  2380. ifndef MVPROG
  2381. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2382. ifeq ($(MVPROG),)
  2383. MVPROG= __missing_command_MVPROG
  2384. else
  2385. MVPROG:=$(firstword $(MVPROG))
  2386. endif
  2387. endif
  2388. export MVPROG
  2389. ifndef MKDIRPROG
  2390. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2391. ifeq ($(MKDIRPROG),)
  2392. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2393. ifeq ($(MKDIRPROG),)
  2394. MKDIRPROG= __missing_command_MKDIRPROG
  2395. else
  2396. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2397. endif
  2398. else
  2399. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2400. endif
  2401. endif
  2402. export MKDIRPROG
  2403. ifndef ECHOREDIR
  2404. ifndef inUnix
  2405. ECHOREDIR=echo
  2406. else
  2407. ECHOREDIR=$(ECHO)
  2408. endif
  2409. endif
  2410. ifndef COPY
  2411. COPY:=$(CPPROG) -fp
  2412. endif
  2413. ifndef COPYTREE
  2414. COPYTREE:=$(CPPROG) -Rfp
  2415. endif
  2416. ifndef MKDIRTREE
  2417. MKDIRTREE:=$(MKDIRPROG) -p
  2418. endif
  2419. ifndef MOVE
  2420. MOVE:=$(MVPROG) -f
  2421. endif
  2422. ifndef DEL
  2423. DEL:=$(RMPROG) -f
  2424. endif
  2425. ifndef DELTREE
  2426. DELTREE:=$(RMPROG) -rf
  2427. endif
  2428. ifndef INSTALL
  2429. ifdef inUnix
  2430. INSTALL:=$(GINSTALL) -c -m 644
  2431. else
  2432. INSTALL:=$(COPY)
  2433. endif
  2434. endif
  2435. ifndef INSTALLEXE
  2436. ifdef inUnix
  2437. INSTALLEXE:=$(GINSTALL) -c -m 755
  2438. else
  2439. INSTALLEXE:=$(COPY)
  2440. endif
  2441. endif
  2442. ifndef MKDIR
  2443. MKDIR:=$(GINSTALL) -m 755 -d
  2444. endif
  2445. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2446. ifndef PPUMOVE
  2447. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2448. ifeq ($(PPUMOVE),)
  2449. PPUMOVE= __missing_command_PPUMOVE
  2450. else
  2451. PPUMOVE:=$(firstword $(PPUMOVE))
  2452. endif
  2453. endif
  2454. export PPUMOVE
  2455. ifndef FPCMAKE
  2456. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2457. ifeq ($(FPCMAKE),)
  2458. FPCMAKE= __missing_command_FPCMAKE
  2459. else
  2460. FPCMAKE:=$(firstword $(FPCMAKE))
  2461. endif
  2462. endif
  2463. export FPCMAKE
  2464. ifndef ZIPPROG
  2465. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2466. ifeq ($(ZIPPROG),)
  2467. ZIPPROG= __missing_command_ZIPPROG
  2468. else
  2469. ZIPPROG:=$(firstword $(ZIPPROG))
  2470. endif
  2471. endif
  2472. export ZIPPROG
  2473. ifndef TARPROG
  2474. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2475. ifeq ($(TARPROG),)
  2476. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2477. ifeq ($(TARPROG),)
  2478. TARPROG= __missing_command_TARPROG
  2479. else
  2480. TARPROG:=$(firstword $(TARPROG))
  2481. endif
  2482. else
  2483. TARPROG:=$(firstword $(TARPROG))
  2484. endif
  2485. endif
  2486. export TARPROG
  2487. ASNAME=$(BINUTILSPREFIX)as
  2488. LDNAME=$(BINUTILSPREFIX)ld
  2489. ARNAME=$(BINUTILSPREFIX)ar
  2490. RCNAME=$(BINUTILSPREFIX)rc
  2491. NASMNAME=$(BINUTILSPREFIX)nasm
  2492. ifndef ASPROG
  2493. ifdef CROSSBINDIR
  2494. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2495. else
  2496. ASPROG=$(ASNAME)
  2497. endif
  2498. endif
  2499. ifndef LDPROG
  2500. ifdef CROSSBINDIR
  2501. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2502. else
  2503. LDPROG=$(LDNAME)
  2504. endif
  2505. endif
  2506. ifndef RCPROG
  2507. ifdef CROSSBINDIR
  2508. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2509. else
  2510. RCPROG=$(RCNAME)
  2511. endif
  2512. endif
  2513. ifndef ARPROG
  2514. ifdef CROSSBINDIR
  2515. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2516. else
  2517. ARPROG=$(ARNAME)
  2518. endif
  2519. endif
  2520. ifndef NASMPROG
  2521. ifdef CROSSBINDIR
  2522. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2523. else
  2524. NASMPROG=$(NASMNAME)
  2525. endif
  2526. endif
  2527. AS=$(ASPROG)
  2528. LD=$(LDPROG)
  2529. RC=$(RCPROG)
  2530. AR=$(ARPROG)
  2531. NASM=$(NASMPROG)
  2532. ifdef inUnix
  2533. PPAS=./ppas$(SRCBATCHEXT)
  2534. else
  2535. PPAS=ppas$(SRCBATCHEXT)
  2536. endif
  2537. ifdef inUnix
  2538. LDCONFIG=ldconfig
  2539. else
  2540. LDCONFIG=
  2541. endif
  2542. ifdef DATE
  2543. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2544. else
  2545. DATESTR=
  2546. endif
  2547. ZIPOPT=-9
  2548. ZIPEXT=.zip
  2549. ifeq ($(USETAR),bz2)
  2550. TAROPT=vj
  2551. TAREXT=.tar.bz2
  2552. else
  2553. TAROPT=vz
  2554. TAREXT=.tar.gz
  2555. endif
  2556. ifndef NOCPUDEF
  2557. override FPCOPTDEF=$(ARCH)
  2558. endif
  2559. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2560. override FPCOPT+=-T$(OS_TARGET)
  2561. endif
  2562. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  2563. override FPCOPT+=-P$(ARCH)
  2564. endif
  2565. ifeq ($(OS_SOURCE),openbsd)
  2566. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2567. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  2568. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  2569. endif
  2570. ifndef CROSSBOOTSTRAP
  2571. ifneq ($(BINUTILSPREFIX),)
  2572. override FPCOPT+=-XP$(BINUTILSPREFIX)
  2573. ifneq ($(RLINKPATH),)
  2574. override FPCOPT+=-Xr$(RLINKPATH)
  2575. endif
  2576. endif
  2577. endif
  2578. ifndef CROSSCOMPILE
  2579. ifneq ($(BINUTILSPREFIX),)
  2580. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  2581. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  2582. endif
  2583. endif
  2584. ifdef UNITDIR
  2585. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2586. endif
  2587. ifdef LIBDIR
  2588. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2589. endif
  2590. ifdef OBJDIR
  2591. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2592. endif
  2593. ifdef INCDIR
  2594. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2595. endif
  2596. ifdef LINKSMART
  2597. override FPCOPT+=-XX
  2598. endif
  2599. ifdef CREATESMART
  2600. override FPCOPT+=-CX
  2601. endif
  2602. ifdef DEBUG
  2603. override FPCOPT+=-gl
  2604. override FPCOPTDEF+=DEBUG
  2605. endif
  2606. ifdef RELEASE
  2607. FPCCPUOPT:=-O2
  2608. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  2609. override FPCOPTDEF+=RELEASE
  2610. endif
  2611. ifdef STRIP
  2612. override FPCOPT+=-Xs
  2613. endif
  2614. ifdef OPTIMIZE
  2615. override FPCOPT+=-O2
  2616. endif
  2617. ifdef VERBOSE
  2618. override FPCOPT+=-vwni
  2619. endif
  2620. ifdef COMPILER_OPTIONS
  2621. override FPCOPT+=$(COMPILER_OPTIONS)
  2622. endif
  2623. ifdef COMPILER_UNITDIR
  2624. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2625. endif
  2626. ifdef COMPILER_LIBRARYDIR
  2627. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2628. endif
  2629. ifdef COMPILER_OBJECTDIR
  2630. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2631. endif
  2632. ifdef COMPILER_INCLUDEDIR
  2633. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2634. endif
  2635. ifdef CROSSBINDIR
  2636. override FPCOPT+=-FD$(CROSSBINDIR)
  2637. endif
  2638. ifdef COMPILER_TARGETDIR
  2639. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2640. ifeq ($(COMPILER_TARGETDIR),.)
  2641. override TARGETDIRPREFIX=
  2642. else
  2643. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2644. endif
  2645. endif
  2646. ifdef COMPILER_UNITTARGETDIR
  2647. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2648. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2649. override UNITTARGETDIRPREFIX=
  2650. else
  2651. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2652. endif
  2653. else
  2654. ifdef COMPILER_TARGETDIR
  2655. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2656. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2657. endif
  2658. endif
  2659. ifdef CREATESHARED
  2660. override FPCOPT+=-Cg
  2661. endif
  2662. ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  2663. ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
  2664. override FPCOPT+=-Cg
  2665. endif
  2666. endif
  2667. ifdef LINKSHARED
  2668. endif
  2669. ifdef GCCLIBDIR
  2670. override FPCOPT+=-Fl$(GCCLIBDIR)
  2671. ifdef FPCMAKEGCCLIBDIR
  2672. override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR)
  2673. else
  2674. override FPCMAKEOPT+=-Fl$(GCCLIBDIR)
  2675. endif
  2676. endif
  2677. ifdef OTHERLIBDIR
  2678. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  2679. endif
  2680. ifdef OPT
  2681. override FPCOPT+=$(OPT)
  2682. endif
  2683. ifdef FPMAKEBUILDOPT
  2684. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  2685. endif
  2686. ifdef FPCOPTDEF
  2687. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2688. endif
  2689. ifdef CFGFILE
  2690. override FPCOPT+=@$(CFGFILE)
  2691. endif
  2692. ifdef USEENV
  2693. override FPCEXTCMD:=$(FPCOPT)
  2694. override FPCOPT:=!FPCEXTCMD
  2695. export FPCEXTCMD
  2696. endif
  2697. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  2698. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  2699. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  2700. override ACROSSCOMPILE=1
  2701. endif
  2702. ifdef ACROSSCOMPILE
  2703. override FPCOPT+=$(CROSSOPT)
  2704. endif
  2705. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  2706. ifneq (,$(findstring -sh ,$(COMPILER)))
  2707. UseEXECPPAS=1
  2708. endif
  2709. ifneq (,$(findstring -s ,$(COMPILER)))
  2710. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2711. UseEXECPPAS=1
  2712. endif
  2713. endif
  2714. ifneq ($(UseEXECPPAS),1)
  2715. EXECPPAS=
  2716. else
  2717. ifdef RUNBATCH
  2718. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  2719. else
  2720. EXECPPAS:=@$(PPAS)
  2721. endif
  2722. endif
  2723. .PHONY: fpc_loaders
  2724. ifneq ($(TARGET_LOADERS),)
  2725. override ALLTARGET+=fpc_loaders
  2726. override CLEANTARGET+=fpc_loaders_clean
  2727. override INSTALLTARGET+=fpc_loaders_install
  2728. override LOADEROFILES:=$(addsuffix $(OEXT),$(TARGET_LOADERS))
  2729. endif
  2730. %$(OEXT): %$(LOADEREXT)
  2731. ifdef COMPILER_UNITTARGETDIR
  2732. $(AS) -o $(COMPILER_UNITTARGETDIR)/$*$(OEXT) $<
  2733. else
  2734. $(AS) -o $*$(OEXT) $<
  2735. endif
  2736. fpc_loaders: $(COMPILER_UNITTARGETDIR) $(LOADEROFILES)
  2737. fpc_loaders_clean:
  2738. ifdef COMPILER_UNITTARGETDIR
  2739. -$(DEL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES))
  2740. else
  2741. -$(DEL) $(LOADEROFILES)
  2742. endif
  2743. fpc_loaders_install:
  2744. $(MKDIR) $(INSTALL_UNITDIR)
  2745. ifdef COMPILER_UNITTARGETDIR
  2746. $(INSTALL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES)) $(INSTALL_UNITDIR)
  2747. else
  2748. $(INSTALL) $(LOADEROFILES) $(INSTALL_UNITDIR)
  2749. endif
  2750. .PHONY: fpc_units
  2751. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  2752. override ALLTARGET+=fpc_units
  2753. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  2754. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  2755. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2756. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2757. endif
  2758. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  2759. ifdef TARGET_RSTS
  2760. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2761. override CLEANRSTFILES+=$(RSTFILES)
  2762. endif
  2763. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  2764. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2765. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2766. fpc_all: $(FPCMADE)
  2767. fpc_smart:
  2768. $(MAKE) all LINKSMART=1 CREATESMART=1
  2769. fpc_debug:
  2770. $(MAKE) all DEBUG=1
  2771. fpc_release:
  2772. $(MAKE) all RELEASE=1
  2773. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) $(LTOEXT) .pas .lpr .dpr .pp .rc .res
  2774. $(COMPILER_UNITTARGETDIR):
  2775. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2776. $(COMPILER_TARGETDIR):
  2777. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2778. %$(PPUEXT): %.pp
  2779. $(COMPILER) $<
  2780. $(EXECPPAS)
  2781. %$(PPUEXT): %.pas
  2782. $(COMPILER) $<
  2783. $(EXECPPAS)
  2784. %$(EXEEXT): %.pp
  2785. $(COMPILER) $<
  2786. $(EXECPPAS)
  2787. %$(EXEEXT): %.pas
  2788. $(COMPILER) $<
  2789. $(EXECPPAS)
  2790. %$(EXEEXT): %.lpr
  2791. $(COMPILER) $<
  2792. $(EXECPPAS)
  2793. %$(EXEEXT): %.dpr
  2794. $(COMPILER) $<
  2795. $(EXECPPAS)
  2796. %.res: %.rc
  2797. windres -i $< -o $@
  2798. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2799. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2800. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2801. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2802. vpath %.inc $(COMPILER_INCLUDEDIR)
  2803. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2804. vpath %$(LTOEXT) $(COMPILER_UNITTARGETDIR)
  2805. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2806. .PHONY: fpc_shared
  2807. override INSTALLTARGET+=fpc_shared_install
  2808. ifndef SHARED_LIBVERSION
  2809. SHARED_LIBVERSION=$(FPC_VERSION)
  2810. endif
  2811. ifndef SHARED_LIBNAME
  2812. SHARED_LIBNAME=$(PACKAGE_NAME)
  2813. endif
  2814. ifndef SHARED_FULLNAME
  2815. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  2816. endif
  2817. ifndef SHARED_LIBUNITS
  2818. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  2819. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  2820. endif
  2821. fpc_shared:
  2822. ifdef HASSHAREDLIB
  2823. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  2824. ifneq ($(SHARED_BUILD),n)
  2825. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR) -P$(BINUTILSPREFIX)
  2826. endif
  2827. else
  2828. @$(ECHO) Shared Libraries not supported
  2829. endif
  2830. fpc_shared_install:
  2831. ifneq ($(SHARED_BUILD),n)
  2832. ifneq ($(SHARED_LIBUNITS),)
  2833. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  2834. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  2835. endif
  2836. endif
  2837. endif
  2838. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2839. ifdef INSTALL_UNITS
  2840. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2841. endif
  2842. ifdef INSTALL_BUILDUNIT
  2843. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2844. endif
  2845. ifdef INSTALLPPUFILES
  2846. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  2847. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2848. else
  2849. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2850. endif
  2851. ifneq ($(UNITTARGETDIRPREFIX),)
  2852. override INSTALLPPUFILENAMES:=$(notdir $(INSTALLPPUFILES))
  2853. override INSTALLPPULINKFILENAMES:=$(notdir $(INSTALLPPULINKFILES))
  2854. override INSTALLPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILENAMES))
  2855. override INSTALLPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILENAMES)))
  2856. endif
  2857. override INSTALL_CREATEPACKAGEFPC=1
  2858. endif
  2859. ifdef INSTALLEXEFILES
  2860. ifneq ($(TARGETDIRPREFIX),)
  2861. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  2862. endif
  2863. endif
  2864. fpc_install: all $(INSTALLTARGET)
  2865. ifdef INSTALLEXEFILES
  2866. $(MKDIR) $(INSTALL_BINDIR)
  2867. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2868. endif
  2869. ifdef INSTALL_CREATEPACKAGEFPC
  2870. ifdef FPCMAKE
  2871. ifdef PACKAGE_VERSION
  2872. ifneq ($(wildcard Makefile.fpc),)
  2873. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  2874. $(MKDIR) $(INSTALL_UNITDIR)
  2875. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2876. endif
  2877. endif
  2878. endif
  2879. endif
  2880. ifdef INSTALLPPUFILES
  2881. $(MKDIR) $(INSTALL_UNITDIR)
  2882. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2883. ifneq ($(INSTALLPPULINKFILES),)
  2884. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2885. endif
  2886. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2887. $(MKDIR) $(INSTALL_LIBDIR)
  2888. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2889. ifdef inUnix
  2890. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2891. endif
  2892. endif
  2893. endif
  2894. ifdef INSTALL_FILES
  2895. $(MKDIR) $(INSTALL_DATADIR)
  2896. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2897. endif
  2898. fpc_sourceinstall: distclean
  2899. $(MKDIR) $(INSTALL_SOURCEDIR)
  2900. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2901. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2902. ifdef HASEXAMPLES
  2903. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2904. endif
  2905. ifdef EXAMPLESOURCEFILES
  2906. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2907. endif
  2908. ifdef TARGET_EXAMPLEDIRS
  2909. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2910. endif
  2911. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2912. ifdef EXEFILES
  2913. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2914. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  2915. endif
  2916. ifdef CLEAN_PROGRAMS
  2917. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  2918. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  2919. endif
  2920. ifdef CLEAN_UNITS
  2921. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2922. endif
  2923. ifdef CLEANPPUFILES
  2924. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2925. ifdef DEBUGSYMEXT
  2926. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2927. endif
  2928. override CLEANPPUFILENAMES:=$(CLEANPPUFILES)
  2929. override CLEANPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILENAMES))
  2930. override CLEANPPULINKFILENAMES:=$(CLEANPPULINKFILES)
  2931. override CLEANPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILENAMES)))
  2932. endif
  2933. fpc_clean: $(CLEANTARGET)
  2934. ifdef CLEANEXEFILES
  2935. -$(DEL) $(CLEANEXEFILES)
  2936. endif
  2937. ifdef CLEANEXEDBGFILES
  2938. -$(DELTREE) $(CLEANEXEDBGFILES)
  2939. endif
  2940. ifdef CLEANPPUFILES
  2941. -$(DEL) $(CLEANPPUFILES)
  2942. endif
  2943. ifneq ($(CLEANPPULINKFILES),)
  2944. -$(DEL) $(CLEANPPULINKFILES)
  2945. endif
  2946. ifdef CLEANRSTFILES
  2947. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2948. endif
  2949. ifdef CLEAN_FILES
  2950. -$(DEL) $(CLEAN_FILES)
  2951. endif
  2952. ifdef LIB_NAME
  2953. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2954. endif
  2955. -$(DEL) $(FPCMADE) *$(FULL_TARGET).fpm Package.fpc *$(ASMEXT)
  2956. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  2957. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  2958. fpc_cleanall: $(CLEANTARGET)
  2959. ifdef CLEANEXEFILES
  2960. -$(DEL) $(CLEANEXEFILES)
  2961. endif
  2962. ifdef COMPILER_UNITTARGETDIR
  2963. ifdef CLEANPPUFILES
  2964. -$(DEL) $(CLEANPPUFILES)
  2965. endif
  2966. ifneq ($(CLEANPPULINKFILES),)
  2967. -$(DEL) $(CLEANPPULINKFILES)
  2968. endif
  2969. ifdef CLEANRSTFILES
  2970. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2971. endif
  2972. endif
  2973. ifdef CLEAN_FILES
  2974. -$(DEL) $(CLEAN_FILES)
  2975. endif
  2976. -$(DELTREE) units
  2977. -$(DELTREE) bin
  2978. -$(DEL) *$(OEXT) *$(LTOEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2979. ifneq ($(PPUEXT),.ppu)
  2980. -$(DEL) *.o *.ppu *.a
  2981. endif
  2982. -$(DELTREE) *$(SMARTEXT)
  2983. -$(DEL) fpcmade.* Package.fpc *.fpm
  2984. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  2985. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  2986. ifdef AOUTEXT
  2987. -$(DEL) *$(AOUTEXT)
  2988. endif
  2989. ifdef DEBUGSYMEXT
  2990. -$(DEL) *$(DEBUGSYMEXT)
  2991. endif
  2992. ifdef LOCALFPMAKEBIN
  2993. -$(DEL) $(LOCALFPMAKEBIN)
  2994. -$(DEL) $(FPMAKEBINOBJ)
  2995. endif
  2996. fpc_distclean: cleanall
  2997. .PHONY: fpc_baseinfo
  2998. override INFORULES+=fpc_baseinfo
  2999. fpc_baseinfo:
  3000. @$(ECHO)
  3001. @$(ECHO) == Package info ==
  3002. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  3003. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  3004. @$(ECHO)
  3005. @$(ECHO) == Configuration info ==
  3006. @$(ECHO)
  3007. @$(ECHO) FPC.......... $(FPC)
  3008. @$(ECHO) FPC Version.. $(FPC_VERSION)
  3009. @$(ECHO) Source CPU... $(CPU_SOURCE)
  3010. @$(ECHO) Target CPU... $(CPU_TARGET)
  3011. @$(ECHO) Source OS.... $(OS_SOURCE)
  3012. @$(ECHO) Target OS.... $(OS_TARGET)
  3013. @$(ECHO) Full Source.. $(FULL_SOURCE)
  3014. @$(ECHO) Full Target.. $(FULL_TARGET)
  3015. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  3016. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  3017. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  3018. @$(ECHO)
  3019. @$(ECHO) == Directory info ==
  3020. @$(ECHO)
  3021. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  3022. @$(ECHO)
  3023. @$(ECHO) Basedir......... $(BASEDIR)
  3024. @$(ECHO) FPCDir.......... $(FPCDIR)
  3025. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  3026. @$(ECHO) UnitsDir........ $(UNITSDIR)
  3027. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  3028. @$(ECHO)
  3029. @$(ECHO) GCC library..... $(GCCLIBDIR)
  3030. @$(ECHO) Other library... $(OTHERLIBDIR)
  3031. @$(ECHO)
  3032. @$(ECHO) == Tools info ==
  3033. @$(ECHO)
  3034. @$(ECHO) As........ $(AS)
  3035. @$(ECHO) Ld........ $(LD)
  3036. @$(ECHO) Ar........ $(AR)
  3037. @$(ECHO) Rc........ $(RC)
  3038. @$(ECHO)
  3039. @$(ECHO) Mv........ $(MVPROG)
  3040. @$(ECHO) Cp........ $(CPPROG)
  3041. @$(ECHO) Rm........ $(RMPROG)
  3042. @$(ECHO) GInstall.. $(GINSTALL)
  3043. @$(ECHO) Echo...... $(ECHO)
  3044. @$(ECHO) Shell..... $(SHELL)
  3045. @$(ECHO) Date...... $(DATE)
  3046. @$(ECHO) FPCMake... $(FPCMAKE)
  3047. @$(ECHO) PPUMove... $(PPUMOVE)
  3048. @$(ECHO) Zip....... $(ZIPPROG)
  3049. @$(ECHO)
  3050. @$(ECHO) == Object info ==
  3051. @$(ECHO)
  3052. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  3053. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  3054. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  3055. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  3056. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  3057. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  3058. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  3059. @$(ECHO)
  3060. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  3061. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  3062. @$(ECHO)
  3063. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  3064. @$(ECHO) Install Files....... $(INSTALL_FILES)
  3065. @$(ECHO)
  3066. @$(ECHO) == Install info ==
  3067. @$(ECHO)
  3068. @$(ECHO) DateStr.............. $(DATESTR)
  3069. @$(ECHO) ZipName.............. $(ZIPNAME)
  3070. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  3071. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  3072. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  3073. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  3074. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  3075. @$(ECHO)
  3076. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  3077. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  3078. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  3079. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  3080. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  3081. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  3082. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  3083. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  3084. @$(ECHO)
  3085. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  3086. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  3087. @$(ECHO)
  3088. .PHONY: fpc_info
  3089. fpc_info: $(INFORULES)
  3090. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  3091. fpc_makefile_dirs
  3092. fpc_makefile:
  3093. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  3094. fpc_makefile_sub1:
  3095. ifdef TARGET_DIRS
  3096. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  3097. endif
  3098. ifdef TARGET_EXAMPLEDIRS
  3099. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  3100. endif
  3101. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  3102. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  3103. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  3104. all: fpc_all
  3105. debug: fpc_debug
  3106. smart: fpc_smart
  3107. release: fpc_release
  3108. units: fpc_units
  3109. examples:
  3110. shared: fpc_shared
  3111. install: fpc_install
  3112. sourceinstall: fpc_sourceinstall
  3113. exampleinstall: fpc_exampleinstall
  3114. distinstall:
  3115. zipinstall:
  3116. zipsourceinstall:
  3117. zipexampleinstall:
  3118. zipdistinstall:
  3119. clean: fpc_clean
  3120. distclean: fpc_distclean
  3121. cleanall: fpc_cleanall
  3122. info: fpc_info
  3123. makefiles: fpc_makefiles
  3124. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  3125. ifneq ($(wildcard fpcmake.loc),)
  3126. include fpcmake.loc
  3127. endif
  3128. include $(INC)/makefile.inc
  3129. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  3130. include $(PROCINC)/makefile.cpu
  3131. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  3132. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  3133. startup$(OEXT) : $(CPU_TARGET)/startup.s
  3134. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)startup$(OEXT) $(CPU_TARGET)/startup.s -mabi=32 -march=pic32mx -mtune=pic32mx -W -EL -msym32
  3135. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS) $(INC)/softfpu.pp
  3136. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp @system.cfg $(REDIR)
  3137. uuchar$(PPUEXT): $(INC)/uuchar.pp $(SYSTEMUNIT)$(PPUEXT)
  3138. $(COMPILER) $<
  3139. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  3140. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  3141. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  3142. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  3143. $(SYSTEMUNIT)$(PPUEXT)
  3144. $(COMPILER) $<
  3145. consoleio$(PPUEXT) : consoleio.pp $(SYSTEMUNIT)$(PPUEXT)
  3146. $(COMPILER) $<
  3147. heapmgr$(PPUEXT) : heapmgr.pp $(SYSTEMUNIT)$(PPUEXT)
  3148. $(COMPILER) $<
  3149. dos$(PPUEXT) : dos.pp $(INC)/fexpand.inc $(INC)/filerec.inc $(INC)/textrec.inc $(INC)/dosh.inc $(INC)/dos.inc objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3150. $(COMPILER) $<
  3151. objects$(PPUEXT) : $(INC)/objects.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3152. $(COMPILER) $<
  3153. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  3154. objpas$(PPUEXT) sysconst$(PPUEXT) heapmgr$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3155. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  3156. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  3157. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) types$(PPUEXT) sortbase$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3158. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  3159. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT) sysutils$(PPUEXT) rtlconsts$(PPUEXT)
  3160. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  3161. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3162. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  3163. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  3164. $(OBJPASDIR)/varutilh.inc varutils.pp $(SYSTEMUNIT)$(PPUEXT)
  3165. $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
  3166. fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3167. $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
  3168. types$(PPUEXT) : $(OBJPASDIR)/types.pp math$(PPUEXT) objpas$(PPUEXT) math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3169. $(COMPILER) $(OBJPASDIR)/types.pp
  3170. rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp $(OBJPASDIR)/rtlconst.inc objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3171. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  3172. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3173. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  3174. fgl$(PPUEXT): $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT) sortbase$(PPUEXT)
  3175. $(COMPILER) -Sg $(OBJPASDIR)/fgl.pp $(REDIR)
  3176. dateutil$(PPUEXT) : $(OBJPASDIR)/dateutil.pp $(SYSTEMUNIT)$(PPUEXT)
  3177. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/dateutil.pp
  3178. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3179. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  3180. ucomplex$(PPUEXT): $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3181. $(COMPILER) $<
  3182. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
  3183. $(COMPILER) $<
  3184. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  3185. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  3186. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3187. $(COMPILER) $(INC)/lineinfo.pp
  3188. charset$(PPUEXT) : $(INC)/charset.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3189. $(COMPILER) $<
  3190. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  3191. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  3192. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  3193. $(COMPILER) $(INC)/iso7185.pp
  3194. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3195. $(COMPILER) $(INC)/extpas.pp
  3196. define CPU_UNITS_RULE
  3197. ifeq ($(ARCH),avr)
  3198. $(1)$(PPUEXT): $(ARCH)/$(1).pp intrinsics$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3199. else
  3200. $(1)$(PPUEXT): $(ARCH)/$(1).pp $(SYSTEMUNIT)$(PPUEXT)
  3201. endif
  3202. endef
  3203. $(foreach unit,$(CPU_UNITS),$(eval $(call CPU_UNITS_RULE,$(unit))))
  3204. $(addsuffix $(PPUEXT),$(CPU_UNITS)):
  3205. $(COMPILER) -g $<
  3206. errors$(PPUEXT) : $(UNIXINC)/errors.pp strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3207. $(COMPILER) $(UNIXINC)/errors.pp
  3208. callspec$(PPUEXT) : $(INC)/callspec.pp $(SYSTEMUNIT)$(PPUEXT)
  3209. $(COMPILER) $(INC)/callspec.pp
  3210. cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
  3211. $(COMPILER) $(INC)/cmem.pp
  3212. cthreads$(PPUEXT) : $(UNIXINC)/cthreads.pp $(SYSTEMUNIT)$(PPUEXT) unix$(PPUEXT) sysutils$(PPUEXT) baseunix$(PPUEXT) initc$(PPUEXT) dl$(PPUEXT)
  3213. $(COMPILER) $(UNIXINC)/cthreads.pp
  3214. cwstring$(PPUEXT) : $(UNIXINC)/cwstring.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT) baseunix$(PPUEXT) unix$(PPUEXT) unixtype$(PPUEXT) ctypes$(PPUEXT) dynlibs$(PPUEXT) unixcp$(PPUEXT)
  3215. $(COMPILER) $(UNIXINC)/cwstring.pp
  3216. ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
  3217. $(COMPILER) $(INC)/ctypes.pp
  3218. fpcylix$(PPUEXT) : fpcylix.pp cthreads$(PPUEXT) cwstring$(PPUEXT) dynlibs$(PPUEXT) objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3219. $(COMPILER) fpcylix.pp
  3220. intrinsics$(PPUEXT) : $(PROCINC)/intrinsics.pp $(SYSTEMUNIT)$(PPUEXT)
  3221. $(COMPILER) $(PROCINC)/intrinsics.pp
  3222. sortbase$(PPUEXT) : $(INC)/sortbase.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3223. $(COMPILER) $(INC)/sortbase.pp
  3224. avrsim$(PPUEXT): $(ARCH)/avrsim.pp heapmgr$(PPUEXT) consoleio$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3225. $(COMPILER) $(ARCH)/avrsim.pp