Makefile 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720
  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 m68k-human68k 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 mipsel-ps1 mips64-linux mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-freebsd aarch64-darwin aarch64-win64 aarch64-embedded aarch64-iphonesim aarch64-android aarch64-ios wasm32-embedded wasm32-wasip1 wasm32-wasip1threads wasm32-wasip2 sparc64-linux riscv32-linux riscv32-embedded riscv32-freertos riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc loongarch64-linux
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari human68k
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
  13. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  14. ifneq ($(findstring darwin,$(OSTYPE)),)
  15. inUnix=1 #darwin
  16. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  17. else
  18. ifeq ($(findstring ;,$(PATH)),)
  19. inUnix=1
  20. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  21. else
  22. SEARCHPATH:=$(subst ;, ,$(PATH))
  23. endif
  24. endif
  25. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  26. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  27. ifeq ($(PWD),)
  28. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  29. ifeq ($(PWD),)
  30. $(error You need the GNU utils package to use this Makefile)
  31. else
  32. PWD:=$(firstword $(PWD))
  33. SRCEXEEXT=
  34. endif
  35. else
  36. PWD:=$(firstword $(PWD))
  37. SRCEXEEXT=.exe
  38. endif
  39. ifndef inUnix
  40. ifeq ($(OS),Windows_NT)
  41. inWinNT=1
  42. else
  43. ifdef OS2_SHELL
  44. inOS2=1
  45. endif
  46. endif
  47. else
  48. ifneq ($(findstring cygdrive,$(PATH)),)
  49. inCygWin=1
  50. endif
  51. endif
  52. ifdef inUnix
  53. SRCBATCHEXT=.sh
  54. else
  55. ifdef inOS2
  56. SRCBATCHEXT=.cmd
  57. else
  58. SRCBATCHEXT=.bat
  59. endif
  60. endif
  61. ifdef COMSPEC
  62. ifneq ($(filter $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  63. ifndef RUNBATCH
  64. RUNBATCH=$(COMSPEC) /C
  65. endif
  66. endif
  67. endif
  68. ifdef inUnix
  69. PATHSEP=/
  70. else
  71. PATHSEP:=$(subst /,\,/)
  72. ifdef inCygWin
  73. PATHSEP=/
  74. endif
  75. endif
  76. ifdef PWD
  77. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  78. ifdef inCygWin
  79. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  80. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  81. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  82. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  83. endif
  84. endif
  85. else
  86. BASEDIR=.
  87. endif
  88. ifdef inOS2
  89. ifndef ECHO
  90. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  91. ifeq ($(ECHO),)
  92. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  93. ifeq ($(ECHO),)
  94. ECHO=echo
  95. else
  96. ECHO:=$(firstword $(ECHO))
  97. endif
  98. else
  99. ECHO:=$(firstword $(ECHO))
  100. endif
  101. endif
  102. export ECHO
  103. endif
  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. CPU_OS_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  170. ifdef SUB_TARGET
  171. L_SUB_TARGET=$(call lc,$(SUB_TARGET))
  172. FULL_TARGET:=$(CPU_TARGET)-$(OS_TARGET)-$(L_SUB_TARGET)
  173. else
  174. FULL_TARGET:=$(CPU_TARGET)-$(OS_TARGET)
  175. endif
  176. CPU_OS_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  177. ifdef SUB_SOURCE
  178. L_SUB_SOURCE=$(call lc,$(SUB_SOURCE))
  179. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)-$(L_SUB_SOURCE)
  180. else
  181. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  182. endif
  183. ifeq ($(CPU_TARGET),armeb)
  184. ARCH=arm
  185. override FPCOPT+=-Cb
  186. else
  187. ifeq ($(CPU_TARGET),armel)
  188. ARCH=arm
  189. override FPCOPT+=-CaEABI
  190. else
  191. ARCH=$(CPU_TARGET)
  192. endif
  193. endif
  194. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  195. endif
  196. ifdef SUB_TARGET
  197. FPCOPT+=-t$(SUB_TARGET)
  198. FPMAKE_OPT+=--subtarget=$(SUB_TARGET)
  199. endif
  200. ifeq ($(CPU_OS_TARGET),arm-embedded)
  201. ifeq ($(SUBARCH),)
  202. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  203. endif
  204. override FPCOPT+=-Cp$(SUBARCH)
  205. endif
  206. ifeq ($(CPU_OS_TARGET),avr-embedded)
  207. ifeq ($(SUBARCH),)
  208. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  209. endif
  210. override FPCOPT+=-Cp$(SUBARCH)
  211. endif
  212. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  213. ifeq ($(SUBARCH),)
  214. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  215. endif
  216. override FPCOPT+=-Cp$(SUBARCH)
  217. endif
  218. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  219. ifeq ($(SUBARCH),)
  220. $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  221. endif
  222. override FPCOPT+=-Cp$(SUBARCH)
  223. endif
  224. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  225. ifeq ($(SUBARCH),)
  226. $(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  227. endif
  228. override FPCOPT+=-Cp$(SUBARCH)
  229. endif
  230. ifeq ($(CPU_OS_TARGET),arm-freertos)
  231. ifeq ($(SUBARCH),)
  232. $(error When compiling for arm-freertos, a sub-architecture (e.g. SUBARCH=armv6m or SUBARCH=armv7em) must be defined)
  233. endif
  234. override FPCOPT+=-Cp$(SUBARCH)
  235. endif
  236. ifneq ($(filter $(OS_SOURCE),$(LIMIT83fs)),)
  237. TARGETSUFFIX=$(OS_TARGET)
  238. SOURCESUFFIX=$(OS_SOURCE)
  239. else
  240. ifneq ($(filter $(OS_TARGET),$(LIMIT83fs)),)
  241. TARGETSUFFIX=$(OS_TARGET)
  242. else
  243. TARGETSUFFIX=$(FULL_TARGET)
  244. endif
  245. SOURCESUFFIX=$(FULL_SOURCE)
  246. endif
  247. ifneq ($(CPU_OS_TARGET),$(CPU_OS_SOURCE))
  248. CROSSCOMPILE=1
  249. endif
  250. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  251. ifeq ($(filter $(CPU_OS_TARGET),$(MAKEFILETARGETS)),)
  252. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  253. endif
  254. endif
  255. ifneq ($(filter $(OS_TARGET),$(BSDs)),)
  256. BSDhier=1
  257. endif
  258. ifeq ($(OS_TARGET),linux)
  259. linuxHier=1
  260. endif
  261. ifndef CROSSCOMPILE
  262. BUILDFULLNATIVE=1
  263. export BUILDFULLNATIVE
  264. endif
  265. ifdef BUILDFULLNATIVE
  266. BUILDNATIVE=1
  267. export BUILDNATIVE
  268. endif
  269. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE SUB_TARGET SUB_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE CPU_OS_TARGET CPU_OS_SOURCE
  270. ifdef FPCDIR
  271. override FPCDIR:=$(subst \,/,$(FPCDIR))
  272. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  273. override FPCDIR=wrong
  274. endif
  275. else
  276. override FPCDIR=wrong
  277. endif
  278. ifdef DEFAULT_FPCDIR
  279. ifeq ($(FPCDIR),wrong)
  280. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  281. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  282. override FPCDIR=wrong
  283. endif
  284. endif
  285. endif
  286. ifeq ($(FPCDIR),wrong)
  287. ifdef inUnix
  288. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  289. ifeq ($(wildcard $(FPCDIR)/units),)
  290. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  291. endif
  292. else
  293. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  294. override FPCDIR:=$(FPCDIR)/..
  295. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  296. override FPCDIR:=$(FPCDIR)/..
  297. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  298. override FPCDIR:=$(BASEDIR)
  299. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  300. override FPCDIR=c:/pp
  301. endif
  302. endif
  303. endif
  304. endif
  305. endif
  306. ifndef CROSSBINDIR
  307. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  308. endif
  309. ifneq ($(filter $(OS_TARGET),darwin iphonesim ios),)
  310. ifneq ($(filter $(OS_SOURCE),darwin ios),)
  311. DARWIN2DARWIN=1
  312. endif
  313. endif
  314. ifndef BINUTILSPREFIX
  315. ifndef CROSSBINDIR
  316. ifdef CROSSCOMPILE
  317. ifneq ($(OS_TARGET),msdos)
  318. ifndef DARWIN2DARWIN
  319. ifneq ($(CPU_TARGET),jvm)
  320. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  321. ifeq ($(OS_TARGET),android)
  322. ifeq ($(CPU_TARGET),arm)
  323. BINUTILSPREFIX=arm-linux-androideabi-
  324. else
  325. ifeq ($(CPU_TARGET),i386)
  326. BINUTILSPREFIX=i686-linux-android-
  327. else
  328. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  329. endif
  330. endif
  331. endif
  332. endif
  333. endif
  334. else
  335. BINUTILSPREFIX=$(OS_TARGET)-
  336. endif
  337. endif
  338. endif
  339. endif
  340. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  341. ifeq ($(UNITSDIR),)
  342. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  343. endif
  344. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  345. ifndef FPCFPMAKE
  346. ifdef CROSSCOMPILE
  347. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  348. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  349. ifneq ($(FPCPROG),)
  350. FPCPROG:=$(firstword $(FPCPROG))
  351. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  352. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  353. FPCFPMAKE:=$(firstword $(FPCPROG))
  354. endif
  355. else
  356. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  357. endif
  358. else
  359. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  360. FPMAKE_SKIP_CONFIG=-n
  361. export FPCFPMAKE
  362. export FPMAKE_SKIP_CONFIG
  363. endif
  364. else
  365. FPMAKE_SKIP_CONFIG=-n
  366. FPCFPMAKE=$(FPC)
  367. endif
  368. endif
  369. override PACKAGE_NAME=ide
  370. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /ide/Makefile.fpc,$(PACKAGESDIR))))))
  371. COMPILERDIR=$(FPCDIR)/compiler
  372. ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
  373. override FPCOPT+=-Ca
  374. endif
  375. ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
  376. override FPCOPT+=-Ca
  377. endif
  378. ifndef PPC_TARGET
  379. PPC_TARGET=$(CPU_TARGET)
  380. endif
  381. override NOCPUDEF=1
  382. override FPCOPT+= -d$(PPC_TARGET)
  383. override FPCOPT+=-dBrowserCol -dGDB
  384. ifeq ($(PPC_TARGET),i386)
  385. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  386. endif
  387. ifeq ($(PPC_TARGET),x86_64)
  388. override FPCOPT+= -Fu$(COMPILERDIR)/x86 -dNOOPT
  389. endif
  390. ifeq ($(PPC_TARGET),i8086)
  391. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  392. endif
  393. ifeq ($(PPC_TARGET),powerpc)
  394. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  395. endif
  396. ifeq ($(PPC_TARGET),powerpc64)
  397. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  398. endif
  399. ifeq ($(PPC_TARGET),mipsel)
  400. override FPCOPT+= -Fu$(COMPILERDIR)/mips
  401. endif
  402. ifeq ($(PPC_TARGET),sparc)
  403. override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
  404. endif
  405. ifeq ($(PPC_TARGET),sparc64)
  406. override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
  407. endif
  408. ifeq ($(PPC_TARGET),wasm32)
  409. override FPCOPT+= -dNOOPT
  410. endif
  411. ifeq ($(PPC_TARGET),riscv32)
  412. override LOCALOPT+=-Furiscv
  413. endif
  414. ifeq ($(PPC_TARGET),riscv64)
  415. override LOCALOPT+=-Furiscv
  416. endif
  417. ifeq ($(CPU_OS_TARGET),i386-linux)
  418. override TARGET_UNITS+=compunit
  419. endif
  420. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  421. override TARGET_UNITS+=compunit
  422. endif
  423. ifeq ($(CPU_OS_TARGET),i386-win32)
  424. override TARGET_UNITS+=compunit
  425. endif
  426. ifeq ($(CPU_OS_TARGET),i386-os2)
  427. override TARGET_UNITS+=compunit
  428. endif
  429. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  430. override TARGET_UNITS+=compunit
  431. endif
  432. ifeq ($(CPU_OS_TARGET),i386-beos)
  433. override TARGET_UNITS+=compunit
  434. endif
  435. ifeq ($(CPU_OS_TARGET),i386-haiku)
  436. override TARGET_UNITS+=compunit
  437. endif
  438. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  439. override TARGET_UNITS+=compunit
  440. endif
  441. ifeq ($(CPU_OS_TARGET),i386-solaris)
  442. override TARGET_UNITS+=compunit
  443. endif
  444. ifeq ($(CPU_OS_TARGET),i386-netware)
  445. override TARGET_UNITS+=compunit
  446. endif
  447. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  448. override TARGET_UNITS+=compunit
  449. endif
  450. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  451. override TARGET_UNITS+=compunit
  452. endif
  453. ifeq ($(CPU_OS_TARGET),i386-darwin)
  454. override TARGET_UNITS+=compunit
  455. endif
  456. ifeq ($(CPU_OS_TARGET),i386-emx)
  457. override TARGET_UNITS+=compunit
  458. endif
  459. ifeq ($(CPU_OS_TARGET),i386-watcom)
  460. override TARGET_UNITS+=compunit
  461. endif
  462. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  463. override TARGET_UNITS+=compunit
  464. endif
  465. ifeq ($(CPU_OS_TARGET),i386-wince)
  466. override TARGET_UNITS+=compunit
  467. endif
  468. ifeq ($(CPU_OS_TARGET),i386-embedded)
  469. override TARGET_UNITS+=compunit
  470. endif
  471. ifeq ($(CPU_OS_TARGET),i386-symbian)
  472. override TARGET_UNITS+=compunit
  473. endif
  474. ifeq ($(CPU_OS_TARGET),i386-nativent)
  475. override TARGET_UNITS+=compunit
  476. endif
  477. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  478. override TARGET_UNITS+=compunit
  479. endif
  480. ifeq ($(CPU_OS_TARGET),i386-android)
  481. override TARGET_UNITS+=compunit
  482. endif
  483. ifeq ($(CPU_OS_TARGET),i386-aros)
  484. override TARGET_UNITS+=compunit
  485. endif
  486. ifeq ($(CPU_OS_TARGET),m68k-linux)
  487. override TARGET_UNITS+=compunit
  488. endif
  489. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  490. override TARGET_UNITS+=compunit
  491. endif
  492. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  493. override TARGET_UNITS+=compunit
  494. endif
  495. ifeq ($(CPU_OS_TARGET),m68k-atari)
  496. override TARGET_UNITS+=compunit
  497. endif
  498. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  499. override TARGET_UNITS+=compunit
  500. endif
  501. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  502. override TARGET_UNITS+=compunit
  503. endif
  504. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  505. override TARGET_UNITS+=compunit
  506. endif
  507. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  508. override TARGET_UNITS+=compunit
  509. endif
  510. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  511. override TARGET_UNITS+=compunit
  512. endif
  513. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  514. override TARGET_UNITS+=compunit
  515. endif
  516. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  517. override TARGET_UNITS+=compunit
  518. endif
  519. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  520. override TARGET_UNITS+=compunit
  521. endif
  522. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  523. override TARGET_UNITS+=compunit
  524. endif
  525. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  526. override TARGET_UNITS+=compunit
  527. endif
  528. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  529. override TARGET_UNITS+=compunit
  530. endif
  531. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  532. override TARGET_UNITS+=compunit
  533. endif
  534. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  535. override TARGET_UNITS+=compunit
  536. endif
  537. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  538. override TARGET_UNITS+=compunit
  539. endif
  540. ifeq ($(CPU_OS_TARGET),sparc-linux)
  541. override TARGET_UNITS+=compunit
  542. endif
  543. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  544. override TARGET_UNITS+=compunit
  545. endif
  546. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  547. override TARGET_UNITS+=compunit
  548. endif
  549. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  550. override TARGET_UNITS+=compunit
  551. endif
  552. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  553. override TARGET_UNITS+=compunit
  554. endif
  555. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  556. override TARGET_UNITS+=compunit
  557. endif
  558. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  559. override TARGET_UNITS+=compunit
  560. endif
  561. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  562. override TARGET_UNITS+=compunit
  563. endif
  564. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  565. override TARGET_UNITS+=compunit
  566. endif
  567. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  568. override TARGET_UNITS+=compunit
  569. endif
  570. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  571. override TARGET_UNITS+=compunit
  572. endif
  573. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  574. override TARGET_UNITS+=compunit
  575. endif
  576. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  577. override TARGET_UNITS+=compunit
  578. endif
  579. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  580. override TARGET_UNITS+=compunit
  581. endif
  582. ifeq ($(CPU_OS_TARGET),x86_64-android)
  583. override TARGET_UNITS+=compunit
  584. endif
  585. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  586. override TARGET_UNITS+=compunit
  587. endif
  588. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  589. override TARGET_UNITS+=compunit
  590. endif
  591. ifeq ($(CPU_OS_TARGET),arm-linux)
  592. override TARGET_UNITS+=compunit
  593. endif
  594. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  595. override TARGET_UNITS+=compunit
  596. endif
  597. ifeq ($(CPU_OS_TARGET),arm-palmos)
  598. override TARGET_UNITS+=compunit
  599. endif
  600. ifeq ($(CPU_OS_TARGET),arm-wince)
  601. override TARGET_UNITS+=compunit
  602. endif
  603. ifeq ($(CPU_OS_TARGET),arm-gba)
  604. override TARGET_UNITS+=compunit
  605. endif
  606. ifeq ($(CPU_OS_TARGET),arm-nds)
  607. override TARGET_UNITS+=compunit
  608. endif
  609. ifeq ($(CPU_OS_TARGET),arm-embedded)
  610. override TARGET_UNITS+=compunit
  611. endif
  612. ifeq ($(CPU_OS_TARGET),arm-symbian)
  613. override TARGET_UNITS+=compunit
  614. endif
  615. ifeq ($(CPU_OS_TARGET),arm-android)
  616. override TARGET_UNITS+=compunit
  617. endif
  618. ifeq ($(CPU_OS_TARGET),arm-aros)
  619. override TARGET_UNITS+=compunit
  620. endif
  621. ifeq ($(CPU_OS_TARGET),arm-freertos)
  622. override TARGET_UNITS+=compunit
  623. endif
  624. ifeq ($(CPU_OS_TARGET),arm-ios)
  625. override TARGET_UNITS+=compunit
  626. endif
  627. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  628. override TARGET_UNITS+=compunit
  629. endif
  630. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  631. override TARGET_UNITS+=compunit
  632. endif
  633. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  634. override TARGET_UNITS+=compunit
  635. endif
  636. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  637. override TARGET_UNITS+=compunit
  638. endif
  639. ifeq ($(CPU_OS_TARGET),avr-embedded)
  640. override TARGET_UNITS+=compunit
  641. endif
  642. ifeq ($(CPU_OS_TARGET),armeb-linux)
  643. override TARGET_UNITS+=compunit
  644. endif
  645. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  646. override TARGET_UNITS+=compunit
  647. endif
  648. ifeq ($(CPU_OS_TARGET),mips-linux)
  649. override TARGET_UNITS+=compunit
  650. endif
  651. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  652. override TARGET_UNITS+=compunit
  653. endif
  654. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  655. override TARGET_UNITS+=compunit
  656. endif
  657. ifeq ($(CPU_OS_TARGET),mipsel-android)
  658. override TARGET_UNITS+=compunit
  659. endif
  660. ifeq ($(CPU_OS_TARGET),mipsel-ps1)
  661. override TARGET_UNITS+=compunit
  662. endif
  663. ifeq ($(CPU_OS_TARGET),mips64-linux)
  664. override TARGET_UNITS+=compunit
  665. endif
  666. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  667. override TARGET_UNITS+=compunit
  668. endif
  669. ifeq ($(CPU_OS_TARGET),jvm-java)
  670. override TARGET_UNITS+=compunit
  671. endif
  672. ifeq ($(CPU_OS_TARGET),jvm-android)
  673. override TARGET_UNITS+=compunit
  674. endif
  675. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  676. override TARGET_UNITS+=compunit
  677. endif
  678. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  679. override TARGET_UNITS+=compunit
  680. endif
  681. ifeq ($(CPU_OS_TARGET),i8086-win16)
  682. override TARGET_UNITS+=compunit
  683. endif
  684. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  685. override TARGET_UNITS+=compunit
  686. endif
  687. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  688. override TARGET_UNITS+=compunit
  689. endif
  690. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  691. override TARGET_UNITS+=compunit
  692. endif
  693. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  694. override TARGET_UNITS+=compunit
  695. endif
  696. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  697. override TARGET_UNITS+=compunit
  698. endif
  699. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  700. override TARGET_UNITS+=compunit
  701. endif
  702. ifeq ($(CPU_OS_TARGET),aarch64-android)
  703. override TARGET_UNITS+=compunit
  704. endif
  705. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  706. override TARGET_UNITS+=compunit
  707. endif
  708. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  709. override TARGET_UNITS+=compunit
  710. endif
  711. ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
  712. override TARGET_UNITS+=compunit
  713. endif
  714. ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
  715. override TARGET_UNITS+=compunit
  716. endif
  717. ifeq ($(CPU_OS_TARGET),wasm32-wasip2)
  718. override TARGET_UNITS+=compunit
  719. endif
  720. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  721. override TARGET_UNITS+=compunit
  722. endif
  723. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  724. override TARGET_UNITS+=compunit
  725. endif
  726. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  727. override TARGET_UNITS+=compunit
  728. endif
  729. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  730. override TARGET_UNITS+=compunit
  731. endif
  732. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  733. override TARGET_UNITS+=compunit
  734. endif
  735. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  736. override TARGET_UNITS+=compunit
  737. endif
  738. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  739. override TARGET_UNITS+=compunit
  740. endif
  741. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  742. override TARGET_UNITS+=compunit
  743. endif
  744. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  745. override TARGET_UNITS+=compunit
  746. endif
  747. ifeq ($(CPU_OS_TARGET),z80-embedded)
  748. override TARGET_UNITS+=compunit
  749. endif
  750. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  751. override TARGET_UNITS+=compunit
  752. endif
  753. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  754. override TARGET_UNITS+=compunit
  755. endif
  756. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  757. override TARGET_UNITS+=compunit
  758. endif
  759. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  760. override TARGET_UNITS+=compunit
  761. endif
  762. override INSTALL_FPCPACKAGE=y
  763. ifeq ($(CPU_OS_TARGET),i386-linux)
  764. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  765. endif
  766. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  767. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  768. endif
  769. ifeq ($(CPU_OS_TARGET),i386-win32)
  770. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  771. endif
  772. ifeq ($(CPU_OS_TARGET),i386-os2)
  773. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  774. endif
  775. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  776. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  777. endif
  778. ifeq ($(CPU_OS_TARGET),i386-beos)
  779. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  780. endif
  781. ifeq ($(CPU_OS_TARGET),i386-haiku)
  782. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  783. endif
  784. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  785. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  786. endif
  787. ifeq ($(CPU_OS_TARGET),i386-solaris)
  788. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  789. endif
  790. ifeq ($(CPU_OS_TARGET),i386-netware)
  791. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  792. endif
  793. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  794. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  795. endif
  796. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  797. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  798. endif
  799. ifeq ($(CPU_OS_TARGET),i386-darwin)
  800. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  801. endif
  802. ifeq ($(CPU_OS_TARGET),i386-emx)
  803. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  804. endif
  805. ifeq ($(CPU_OS_TARGET),i386-watcom)
  806. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  807. endif
  808. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  809. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  810. endif
  811. ifeq ($(CPU_OS_TARGET),i386-wince)
  812. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  813. endif
  814. ifeq ($(CPU_OS_TARGET),i386-embedded)
  815. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  816. endif
  817. ifeq ($(CPU_OS_TARGET),i386-symbian)
  818. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  819. endif
  820. ifeq ($(CPU_OS_TARGET),i386-nativent)
  821. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  822. endif
  823. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  824. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  825. endif
  826. ifeq ($(CPU_OS_TARGET),i386-android)
  827. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  828. endif
  829. ifeq ($(CPU_OS_TARGET),i386-aros)
  830. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  831. endif
  832. ifeq ($(CPU_OS_TARGET),m68k-linux)
  833. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  834. endif
  835. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  836. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  837. endif
  838. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  839. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  840. endif
  841. ifeq ($(CPU_OS_TARGET),m68k-atari)
  842. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  843. endif
  844. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  845. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  846. endif
  847. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  848. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  849. endif
  850. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  851. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  852. endif
  853. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  854. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  855. endif
  856. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  857. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  858. endif
  859. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  860. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  861. endif
  862. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  863. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  864. endif
  865. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  866. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  867. endif
  868. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  869. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  870. endif
  871. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  872. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  873. endif
  874. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  875. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  876. endif
  877. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  878. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  879. endif
  880. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  881. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  882. endif
  883. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  884. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  885. endif
  886. ifeq ($(CPU_OS_TARGET),sparc-linux)
  887. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  888. endif
  889. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  890. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  891. endif
  892. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  893. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  894. endif
  895. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  896. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  897. endif
  898. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  899. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  900. endif
  901. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  902. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  903. endif
  904. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  905. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  906. endif
  907. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  908. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  909. endif
  910. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  911. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  912. endif
  913. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  914. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  915. endif
  916. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  917. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  918. endif
  919. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  920. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  921. endif
  922. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  923. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  924. endif
  925. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  926. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  927. endif
  928. ifeq ($(CPU_OS_TARGET),x86_64-android)
  929. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  930. endif
  931. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  932. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  933. endif
  934. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  935. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  936. endif
  937. ifeq ($(CPU_OS_TARGET),arm-linux)
  938. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  939. endif
  940. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  941. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  942. endif
  943. ifeq ($(CPU_OS_TARGET),arm-palmos)
  944. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  945. endif
  946. ifeq ($(CPU_OS_TARGET),arm-wince)
  947. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  948. endif
  949. ifeq ($(CPU_OS_TARGET),arm-gba)
  950. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  951. endif
  952. ifeq ($(CPU_OS_TARGET),arm-nds)
  953. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  954. endif
  955. ifeq ($(CPU_OS_TARGET),arm-embedded)
  956. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  957. endif
  958. ifeq ($(CPU_OS_TARGET),arm-symbian)
  959. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  960. endif
  961. ifeq ($(CPU_OS_TARGET),arm-android)
  962. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  963. endif
  964. ifeq ($(CPU_OS_TARGET),arm-aros)
  965. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  966. endif
  967. ifeq ($(CPU_OS_TARGET),arm-freertos)
  968. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  969. endif
  970. ifeq ($(CPU_OS_TARGET),arm-ios)
  971. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  972. endif
  973. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  974. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  975. endif
  976. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  977. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  978. endif
  979. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  980. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  981. endif
  982. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  983. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  984. endif
  985. ifeq ($(CPU_OS_TARGET),avr-embedded)
  986. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  987. endif
  988. ifeq ($(CPU_OS_TARGET),armeb-linux)
  989. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  990. endif
  991. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  992. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  993. endif
  994. ifeq ($(CPU_OS_TARGET),mips-linux)
  995. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  996. endif
  997. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  998. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  999. endif
  1000. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  1001. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1002. endif
  1003. ifeq ($(CPU_OS_TARGET),mipsel-android)
  1004. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1005. endif
  1006. ifeq ($(CPU_OS_TARGET),mipsel-ps1)
  1007. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1008. endif
  1009. ifeq ($(CPU_OS_TARGET),mips64-linux)
  1010. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1011. endif
  1012. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1013. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1014. endif
  1015. ifeq ($(CPU_OS_TARGET),jvm-java)
  1016. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1017. endif
  1018. ifeq ($(CPU_OS_TARGET),jvm-android)
  1019. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1020. endif
  1021. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1022. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1023. endif
  1024. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1025. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1026. endif
  1027. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1028. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1029. endif
  1030. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1031. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1032. endif
  1033. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1034. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1035. endif
  1036. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1037. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1038. endif
  1039. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1040. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1041. endif
  1042. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1043. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1044. endif
  1045. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1046. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1047. endif
  1048. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1049. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1050. endif
  1051. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1052. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1053. endif
  1054. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1055. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1056. endif
  1057. ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
  1058. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1059. endif
  1060. ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
  1061. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1062. endif
  1063. ifeq ($(CPU_OS_TARGET),wasm32-wasip2)
  1064. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1065. endif
  1066. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1067. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1068. endif
  1069. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1070. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1071. endif
  1072. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1073. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1074. endif
  1075. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1076. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1077. endif
  1078. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1079. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1080. endif
  1081. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1082. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1083. endif
  1084. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1085. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1086. endif
  1087. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1088. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1089. endif
  1090. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1091. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1092. endif
  1093. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1094. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1095. endif
  1096. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1097. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1098. endif
  1099. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1100. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1101. endif
  1102. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1103. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1104. endif
  1105. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1106. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1107. endif
  1108. ifeq ($(CPU_OS_TARGET),i386-linux)
  1109. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1110. endif
  1111. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  1112. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1113. endif
  1114. ifeq ($(CPU_OS_TARGET),i386-win32)
  1115. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1116. endif
  1117. ifeq ($(CPU_OS_TARGET),i386-os2)
  1118. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1119. endif
  1120. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  1121. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1122. endif
  1123. ifeq ($(CPU_OS_TARGET),i386-beos)
  1124. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1125. endif
  1126. ifeq ($(CPU_OS_TARGET),i386-haiku)
  1127. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1128. endif
  1129. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  1130. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1131. endif
  1132. ifeq ($(CPU_OS_TARGET),i386-solaris)
  1133. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1134. endif
  1135. ifeq ($(CPU_OS_TARGET),i386-netware)
  1136. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1137. endif
  1138. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  1139. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1140. endif
  1141. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  1142. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1143. endif
  1144. ifeq ($(CPU_OS_TARGET),i386-darwin)
  1145. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1146. endif
  1147. ifeq ($(CPU_OS_TARGET),i386-emx)
  1148. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1149. endif
  1150. ifeq ($(CPU_OS_TARGET),i386-watcom)
  1151. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1152. endif
  1153. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  1154. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1155. endif
  1156. ifeq ($(CPU_OS_TARGET),i386-wince)
  1157. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1158. endif
  1159. ifeq ($(CPU_OS_TARGET),i386-embedded)
  1160. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1161. endif
  1162. ifeq ($(CPU_OS_TARGET),i386-symbian)
  1163. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1164. endif
  1165. ifeq ($(CPU_OS_TARGET),i386-nativent)
  1166. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1167. endif
  1168. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  1169. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1170. endif
  1171. ifeq ($(CPU_OS_TARGET),i386-android)
  1172. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1173. endif
  1174. ifeq ($(CPU_OS_TARGET),i386-aros)
  1175. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1176. endif
  1177. ifeq ($(CPU_OS_TARGET),m68k-linux)
  1178. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1179. endif
  1180. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  1181. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1182. endif
  1183. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  1184. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1185. endif
  1186. ifeq ($(CPU_OS_TARGET),m68k-atari)
  1187. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1188. endif
  1189. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  1190. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1191. endif
  1192. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  1193. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1194. endif
  1195. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  1196. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1197. endif
  1198. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  1199. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1200. endif
  1201. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  1202. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1203. endif
  1204. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  1205. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1206. endif
  1207. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  1208. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1209. endif
  1210. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  1211. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1212. endif
  1213. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  1214. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1215. endif
  1216. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  1217. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1218. endif
  1219. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  1220. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1221. endif
  1222. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  1223. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1224. endif
  1225. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  1226. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1227. endif
  1228. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  1229. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1230. endif
  1231. ifeq ($(CPU_OS_TARGET),sparc-linux)
  1232. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1233. endif
  1234. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  1235. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1236. endif
  1237. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  1238. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1239. endif
  1240. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  1241. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1242. endif
  1243. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  1244. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1245. endif
  1246. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  1247. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1248. endif
  1249. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  1250. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1251. endif
  1252. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  1253. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1254. endif
  1255. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  1256. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1257. endif
  1258. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  1259. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1260. endif
  1261. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  1262. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1263. endif
  1264. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  1265. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1266. endif
  1267. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  1268. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1269. endif
  1270. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  1271. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1272. endif
  1273. ifeq ($(CPU_OS_TARGET),x86_64-android)
  1274. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1275. endif
  1276. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  1277. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1278. endif
  1279. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  1280. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1281. endif
  1282. ifeq ($(CPU_OS_TARGET),arm-linux)
  1283. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1284. endif
  1285. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  1286. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1287. endif
  1288. ifeq ($(CPU_OS_TARGET),arm-palmos)
  1289. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1290. endif
  1291. ifeq ($(CPU_OS_TARGET),arm-wince)
  1292. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1293. endif
  1294. ifeq ($(CPU_OS_TARGET),arm-gba)
  1295. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1296. endif
  1297. ifeq ($(CPU_OS_TARGET),arm-nds)
  1298. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1299. endif
  1300. ifeq ($(CPU_OS_TARGET),arm-embedded)
  1301. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1302. endif
  1303. ifeq ($(CPU_OS_TARGET),arm-symbian)
  1304. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1305. endif
  1306. ifeq ($(CPU_OS_TARGET),arm-android)
  1307. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1308. endif
  1309. ifeq ($(CPU_OS_TARGET),arm-aros)
  1310. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1311. endif
  1312. ifeq ($(CPU_OS_TARGET),arm-freertos)
  1313. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1314. endif
  1315. ifeq ($(CPU_OS_TARGET),arm-ios)
  1316. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1317. endif
  1318. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  1319. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1320. endif
  1321. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  1322. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1323. endif
  1324. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  1325. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1326. endif
  1327. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  1328. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1329. endif
  1330. ifeq ($(CPU_OS_TARGET),avr-embedded)
  1331. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1332. endif
  1333. ifeq ($(CPU_OS_TARGET),armeb-linux)
  1334. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1335. endif
  1336. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  1337. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1338. endif
  1339. ifeq ($(CPU_OS_TARGET),mips-linux)
  1340. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1341. endif
  1342. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  1343. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1344. endif
  1345. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  1346. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1347. endif
  1348. ifeq ($(CPU_OS_TARGET),mipsel-android)
  1349. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1350. endif
  1351. ifeq ($(CPU_OS_TARGET),mipsel-ps1)
  1352. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1353. endif
  1354. ifeq ($(CPU_OS_TARGET),mips64-linux)
  1355. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1356. endif
  1357. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1358. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1359. endif
  1360. ifeq ($(CPU_OS_TARGET),jvm-java)
  1361. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1362. endif
  1363. ifeq ($(CPU_OS_TARGET),jvm-android)
  1364. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1365. endif
  1366. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1367. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1368. endif
  1369. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1370. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1371. endif
  1372. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1373. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1374. endif
  1375. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1376. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1377. endif
  1378. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1379. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1380. endif
  1381. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1382. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1383. endif
  1384. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1385. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1386. endif
  1387. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1388. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1389. endif
  1390. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1391. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1392. endif
  1393. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1394. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1395. endif
  1396. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1397. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1398. endif
  1399. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1400. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1401. endif
  1402. ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
  1403. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1404. endif
  1405. ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
  1406. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1407. endif
  1408. ifeq ($(CPU_OS_TARGET),wasm32-wasip2)
  1409. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1410. endif
  1411. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1412. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1413. endif
  1414. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1415. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1416. endif
  1417. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1418. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1419. endif
  1420. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1421. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1422. endif
  1423. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1424. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1425. endif
  1426. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1427. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1428. endif
  1429. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1430. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1431. endif
  1432. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1433. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1434. endif
  1435. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1436. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1437. endif
  1438. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1439. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1440. endif
  1441. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1442. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1443. endif
  1444. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1445. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1446. endif
  1447. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1448. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1449. endif
  1450. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1451. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1452. endif
  1453. ifeq ($(CPU_OS_TARGET),i386-linux)
  1454. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1455. endif
  1456. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  1457. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1458. endif
  1459. ifeq ($(CPU_OS_TARGET),i386-win32)
  1460. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1461. endif
  1462. ifeq ($(CPU_OS_TARGET),i386-os2)
  1463. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1464. endif
  1465. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  1466. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1467. endif
  1468. ifeq ($(CPU_OS_TARGET),i386-beos)
  1469. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1470. endif
  1471. ifeq ($(CPU_OS_TARGET),i386-haiku)
  1472. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1473. endif
  1474. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  1475. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1476. endif
  1477. ifeq ($(CPU_OS_TARGET),i386-solaris)
  1478. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1479. endif
  1480. ifeq ($(CPU_OS_TARGET),i386-netware)
  1481. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1482. endif
  1483. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  1484. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1485. endif
  1486. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  1487. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1488. endif
  1489. ifeq ($(CPU_OS_TARGET),i386-darwin)
  1490. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1491. endif
  1492. ifeq ($(CPU_OS_TARGET),i386-emx)
  1493. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1494. endif
  1495. ifeq ($(CPU_OS_TARGET),i386-watcom)
  1496. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1497. endif
  1498. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  1499. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1500. endif
  1501. ifeq ($(CPU_OS_TARGET),i386-wince)
  1502. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1503. endif
  1504. ifeq ($(CPU_OS_TARGET),i386-embedded)
  1505. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1506. endif
  1507. ifeq ($(CPU_OS_TARGET),i386-symbian)
  1508. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1509. endif
  1510. ifeq ($(CPU_OS_TARGET),i386-nativent)
  1511. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1512. endif
  1513. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  1514. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1515. endif
  1516. ifeq ($(CPU_OS_TARGET),i386-android)
  1517. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1518. endif
  1519. ifeq ($(CPU_OS_TARGET),i386-aros)
  1520. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1521. endif
  1522. ifeq ($(CPU_OS_TARGET),m68k-linux)
  1523. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1524. endif
  1525. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  1526. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1527. endif
  1528. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  1529. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1530. endif
  1531. ifeq ($(CPU_OS_TARGET),m68k-atari)
  1532. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1533. endif
  1534. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  1535. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1536. endif
  1537. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  1538. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1539. endif
  1540. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  1541. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1542. endif
  1543. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  1544. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1545. endif
  1546. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  1547. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1548. endif
  1549. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  1550. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1551. endif
  1552. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  1553. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1554. endif
  1555. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  1556. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1557. endif
  1558. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  1559. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1560. endif
  1561. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  1562. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1563. endif
  1564. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  1565. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1566. endif
  1567. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  1568. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1569. endif
  1570. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  1571. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1572. endif
  1573. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  1574. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1575. endif
  1576. ifeq ($(CPU_OS_TARGET),sparc-linux)
  1577. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1578. endif
  1579. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  1580. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1581. endif
  1582. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  1583. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1584. endif
  1585. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  1586. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1587. endif
  1588. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  1589. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1590. endif
  1591. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  1592. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1593. endif
  1594. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  1595. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1596. endif
  1597. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  1598. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1599. endif
  1600. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  1601. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1602. endif
  1603. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  1604. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1605. endif
  1606. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  1607. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1608. endif
  1609. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  1610. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1611. endif
  1612. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  1613. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1614. endif
  1615. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  1616. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1617. endif
  1618. ifeq ($(CPU_OS_TARGET),x86_64-android)
  1619. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1620. endif
  1621. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  1622. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1623. endif
  1624. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  1625. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1626. endif
  1627. ifeq ($(CPU_OS_TARGET),arm-linux)
  1628. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1629. endif
  1630. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  1631. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1632. endif
  1633. ifeq ($(CPU_OS_TARGET),arm-palmos)
  1634. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1635. endif
  1636. ifeq ($(CPU_OS_TARGET),arm-wince)
  1637. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1638. endif
  1639. ifeq ($(CPU_OS_TARGET),arm-gba)
  1640. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1641. endif
  1642. ifeq ($(CPU_OS_TARGET),arm-nds)
  1643. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1644. endif
  1645. ifeq ($(CPU_OS_TARGET),arm-embedded)
  1646. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1647. endif
  1648. ifeq ($(CPU_OS_TARGET),arm-symbian)
  1649. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1650. endif
  1651. ifeq ($(CPU_OS_TARGET),arm-android)
  1652. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1653. endif
  1654. ifeq ($(CPU_OS_TARGET),arm-aros)
  1655. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1656. endif
  1657. ifeq ($(CPU_OS_TARGET),arm-freertos)
  1658. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1659. endif
  1660. ifeq ($(CPU_OS_TARGET),arm-ios)
  1661. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1662. endif
  1663. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  1664. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1665. endif
  1666. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  1667. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1668. endif
  1669. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  1670. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1671. endif
  1672. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  1673. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1674. endif
  1675. ifeq ($(CPU_OS_TARGET),avr-embedded)
  1676. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1677. endif
  1678. ifeq ($(CPU_OS_TARGET),armeb-linux)
  1679. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1680. endif
  1681. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  1682. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1683. endif
  1684. ifeq ($(CPU_OS_TARGET),mips-linux)
  1685. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1686. endif
  1687. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  1688. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1689. endif
  1690. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  1691. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1692. endif
  1693. ifeq ($(CPU_OS_TARGET),mipsel-android)
  1694. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1695. endif
  1696. ifeq ($(CPU_OS_TARGET),mipsel-ps1)
  1697. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1698. endif
  1699. ifeq ($(CPU_OS_TARGET),mips64-linux)
  1700. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1701. endif
  1702. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1703. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1704. endif
  1705. ifeq ($(CPU_OS_TARGET),jvm-java)
  1706. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1707. endif
  1708. ifeq ($(CPU_OS_TARGET),jvm-android)
  1709. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1710. endif
  1711. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1712. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1713. endif
  1714. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1715. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1716. endif
  1717. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1718. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1719. endif
  1720. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1721. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1722. endif
  1723. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1724. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1725. endif
  1726. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1727. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1728. endif
  1729. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1730. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1731. endif
  1732. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1733. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1734. endif
  1735. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1736. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1737. endif
  1738. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1739. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1740. endif
  1741. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1742. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1743. endif
  1744. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1745. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1746. endif
  1747. ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
  1748. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1749. endif
  1750. ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
  1751. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1752. endif
  1753. ifeq ($(CPU_OS_TARGET),wasm32-wasip2)
  1754. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1755. endif
  1756. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1757. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1758. endif
  1759. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1760. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1761. endif
  1762. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1763. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1764. endif
  1765. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1766. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1767. endif
  1768. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1769. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1770. endif
  1771. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1772. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1773. endif
  1774. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1775. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1776. endif
  1777. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1778. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1779. endif
  1780. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1781. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1782. endif
  1783. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1784. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1785. endif
  1786. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1787. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1788. endif
  1789. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1790. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1791. endif
  1792. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1793. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1794. endif
  1795. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1796. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1797. endif
  1798. ifdef REQUIRE_UNITSDIR
  1799. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1800. endif
  1801. ifdef REQUIRE_PACKAGESDIR
  1802. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1803. endif
  1804. ifdef ZIPINSTALL
  1805. ifneq ($(filter $(OS_TARGET),$(UNIXs)),)
  1806. UNIXHier=1
  1807. endif
  1808. else
  1809. ifneq ($(filter $(OS_SOURCE),$(UNIXs)),)
  1810. UNIXHier=1
  1811. endif
  1812. endif
  1813. ifndef INSTALL_PREFIX
  1814. ifdef PREFIX
  1815. INSTALL_PREFIX=$(PREFIX)
  1816. endif
  1817. endif
  1818. ifndef INSTALL_PREFIX
  1819. ifdef UNIXHier
  1820. INSTALL_PREFIX=/usr/local
  1821. else
  1822. ifdef INSTALL_FPCPACKAGE
  1823. INSTALL_BASEDIR:=/pp
  1824. else
  1825. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1826. endif
  1827. endif
  1828. endif
  1829. export INSTALL_PREFIX
  1830. ifdef INSTALL_FPCSUBDIR
  1831. export INSTALL_FPCSUBDIR
  1832. endif
  1833. ifndef DIST_DESTDIR
  1834. DIST_DESTDIR:=$(BASEDIR)
  1835. endif
  1836. export DIST_DESTDIR
  1837. ifndef COMPILER_UNITTARGETDIR
  1838. ifdef PACKAGEDIR_MAIN
  1839. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1840. else
  1841. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1842. endif
  1843. endif
  1844. ifndef COMPILER_TARGETDIR
  1845. COMPILER_TARGETDIR=.
  1846. endif
  1847. ifndef INSTALL_BASEDIR
  1848. ifdef UNIXHier
  1849. ifdef INSTALL_FPCPACKAGE
  1850. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1851. else
  1852. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1853. endif
  1854. else
  1855. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1856. endif
  1857. endif
  1858. ifndef INSTALL_BINDIR
  1859. ifdef UNIXHier
  1860. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1861. else
  1862. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1863. ifdef INSTALL_FPCPACKAGE
  1864. ifdef CROSSCOMPILE
  1865. ifdef CROSSINSTALL
  1866. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1867. else
  1868. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1869. endif
  1870. else
  1871. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1872. endif
  1873. endif
  1874. endif
  1875. endif
  1876. ifndef INSTALL_UNITDIR
  1877. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1878. ifdef INSTALL_FPCPACKAGE
  1879. ifdef PACKAGE_NAME
  1880. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1881. endif
  1882. endif
  1883. endif
  1884. ifndef INSTALL_LIBDIR
  1885. ifdef UNIXHier
  1886. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1887. else
  1888. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1889. endif
  1890. endif
  1891. ifndef INSTALL_SOURCEDIR
  1892. ifdef UNIXHier
  1893. ifdef BSDhier
  1894. SRCPREFIXDIR=share/src
  1895. else
  1896. ifdef linuxHier
  1897. SRCPREFIXDIR=share/src
  1898. else
  1899. SRCPREFIXDIR=src
  1900. endif
  1901. endif
  1902. ifdef INSTALL_FPCPACKAGE
  1903. ifdef INSTALL_FPCSUBDIR
  1904. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1905. else
  1906. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1907. endif
  1908. else
  1909. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1910. endif
  1911. else
  1912. ifdef INSTALL_FPCPACKAGE
  1913. ifdef INSTALL_FPCSUBDIR
  1914. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1915. else
  1916. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1917. endif
  1918. else
  1919. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1920. endif
  1921. endif
  1922. endif
  1923. ifndef INSTALL_DOCDIR
  1924. ifdef UNIXHier
  1925. ifdef BSDhier
  1926. DOCPREFIXDIR=share/doc
  1927. else
  1928. ifdef linuxHier
  1929. DOCPREFIXDIR=share/doc
  1930. else
  1931. DOCPREFIXDIR=doc
  1932. endif
  1933. endif
  1934. ifdef INSTALL_FPCPACKAGE
  1935. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1936. else
  1937. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1938. endif
  1939. else
  1940. ifdef INSTALL_FPCPACKAGE
  1941. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1942. else
  1943. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1944. endif
  1945. endif
  1946. endif
  1947. ifndef INSTALL_EXAMPLEDIR
  1948. ifdef UNIXHier
  1949. ifdef INSTALL_FPCPACKAGE
  1950. ifdef BSDhier
  1951. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1952. else
  1953. ifdef linuxHier
  1954. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1955. else
  1956. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1957. endif
  1958. endif
  1959. else
  1960. ifdef BSDhier
  1961. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1962. else
  1963. ifdef linuxHier
  1964. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1965. else
  1966. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1967. endif
  1968. endif
  1969. endif
  1970. else
  1971. ifdef INSTALL_FPCPACKAGE
  1972. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1973. else
  1974. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1975. endif
  1976. endif
  1977. endif
  1978. ifndef INSTALL_DATADIR
  1979. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1980. endif
  1981. ifndef INSTALL_SHAREDDIR
  1982. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1983. endif
  1984. ifdef CROSSCOMPILE
  1985. ifndef CROSSBINDIR
  1986. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1987. ifeq ($(CROSSBINDIR),)
  1988. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1989. endif
  1990. endif
  1991. else
  1992. CROSSBINDIR=
  1993. endif
  1994. ifeq ($(OS_SOURCE),linux)
  1995. ifndef GCCLIBDIR
  1996. ifeq ($(CPU_TARGET),i386)
  1997. ifneq ($(filter x86_64,$(shell uname -a)),)
  1998. ifeq ($(BINUTILSPREFIX),)
  1999. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2000. else
  2001. CROSSGCCOPT=-m32
  2002. endif
  2003. endif
  2004. endif
  2005. ifeq ($(CPU_TARGET),powerpc)
  2006. ifeq ($(BINUTILSPREFIX),)
  2007. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2008. else
  2009. CROSSGCCOPT=-m32
  2010. endif
  2011. endif
  2012. ifeq ($(CPU_TARGET),powerpc64)
  2013. ifeq ($(BINUTILSPREFIX),)
  2014. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  2015. else
  2016. CROSSGCCOPT=-m64
  2017. endif
  2018. endif
  2019. ifeq ($(CPU_TARGET),sparc)
  2020. ifneq ($(filter sparc64,$(shell uname -a)),)
  2021. ifeq ($(BINUTILSPREFIX),)
  2022. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2023. else
  2024. CROSSGCCOPT=-m32
  2025. endif
  2026. endif
  2027. endif
  2028. ifneq ($(filter $(CPU_TARGET),mips64 mipsel64),)
  2029. ifeq ($(BINUTILSPREFIX),)
  2030. GCCLIBDIR:=$(shell dirname `gcc -mabi=64 -print-libgcc-file-name`)
  2031. else
  2032. CROSSGCCOPT=-mabi=64
  2033. endif
  2034. endif
  2035. ifneq ($(filter $(CPU_TARGET),mips mipsel),)
  2036. ifeq ($(BINUTILSPREFIX),)
  2037. GCCLIBDIR:=$(shell dirname `gcc -mabi=32 -print-libgcc-file-name`)
  2038. else
  2039. CROSSGCCOPT=-mabi=32
  2040. endif
  2041. endif
  2042. ifeq ($(BINUTILSPREFIX),)
  2043. ifeq ($(GCCLIBDIR),)
  2044. GCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2045. endif
  2046. else
  2047. ifeq ($(CROSSGCCOPT),)
  2048. CROSSGCCOPT=-g
  2049. endif
  2050. endif
  2051. endif
  2052. ifdef FPCFPMAKE
  2053. FPCFPMAKE_CPU_TARGET=$(shell $(FPCFPMAKE) -iTP)
  2054. ifeq ($(CPU_TARGET),$(FPCFPMAKE_CPU_TARGET))
  2055. FPCMAKEGCCLIBDIR:=$(GCCLIBDIR)
  2056. else
  2057. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),aarch64 powerpc64 riscv64 sparc64 x86_64 loongarch64),)
  2058. FPCMAKE_CROSSGCCOPT=-m64
  2059. else
  2060. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),mips64 mips64el),)
  2061. FPCMAKE_CROSSGCCOPT=-mabi=64
  2062. else
  2063. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),mips mipsel),)
  2064. FPCMAKE_CROSSGCCOPT=-mabi=32
  2065. else
  2066. ifeq ($(FPCFPMAKE_CPU_TARGET),riscv64)
  2067. FPCMAKE_CROSSGCCOPT=-mabi=lp64
  2068. else
  2069. ifeq ($(FPCFPMAKE_CPU_TARGET),riscv32)
  2070. FPCMAKE_CROSSGCCOPT=-mabi=ilp32
  2071. else
  2072. ifeq ($(FPCFPMAKE_CPU_TARGET),loongarch64)
  2073. FPCMAKE_CROSSGCCOPT=-mabi=lp64d
  2074. else
  2075. FPCMAKE_CROSSGCCOPT=-m32
  2076. endif
  2077. endif
  2078. endif
  2079. endif
  2080. endif
  2081. endif
  2082. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc $(FPCMAKE_CROSSGCCOPT) -print-libgcc-file-name`)
  2083. endif
  2084. endif
  2085. ifndef FPCMAKEGCCLIBDIR
  2086. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2087. endif
  2088. ifndef GCCLIBDIR
  2089. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  2090. ifneq ($(CROSSGCC),)
  2091. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
  2092. endif
  2093. endif
  2094. endif
  2095. ifdef inUnix
  2096. ifeq ($(OS_SOURCE),netbsd)
  2097. OTHERLIBDIR:=/usr/pkg/lib
  2098. endif
  2099. export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR
  2100. endif
  2101. BATCHEXT=.bat
  2102. LOADEREXT=.as
  2103. EXEEXT=.exe
  2104. PPLEXT=.ppl
  2105. PPUEXT=.ppu
  2106. OEXT=.o
  2107. LTOEXT=.bc
  2108. ASMEXT=.s
  2109. SMARTEXT=.sl
  2110. STATICLIBEXT=.a
  2111. SHAREDLIBEXT=.so
  2112. SHAREDLIBPREFIX=libfp
  2113. STATICLIBPREFIX=libp
  2114. IMPORTLIBPREFIX=libimp
  2115. RSTEXT=.rsj
  2116. EXEDBGEXT=.dbg
  2117. ALL_EXEEXT=.exe
  2118. ifeq ($(OS_TARGET),go32v1)
  2119. STATICLIBPREFIX=
  2120. SHORTSUFFIX=v1
  2121. endif
  2122. ifeq ($(OS_TARGET),go32v2)
  2123. STATICLIBPREFIX=
  2124. SHORTSUFFIX=dos
  2125. IMPORTLIBPREFIX=
  2126. endif
  2127. ifeq ($(OS_TARGET),watcom)
  2128. STATICLIBPREFIX=
  2129. OEXT=.obj
  2130. ASMEXT=.asm
  2131. SHAREDLIBEXT=.dll
  2132. SHORTSUFFIX=wat
  2133. IMPORTLIBPREFIX=
  2134. endif
  2135. ifneq ($(CPU_TARGET),jvm)
  2136. ifeq ($(OS_TARGET),android)
  2137. BATCHEXT=.sh
  2138. EXEEXT=
  2139. HASSHAREDLIB=1
  2140. SHORTSUFFIX=lnx
  2141. endif
  2142. endif
  2143. ifeq ($(OS_TARGET),linux)
  2144. BATCHEXT=.sh
  2145. EXEEXT=
  2146. HASSHAREDLIB=1
  2147. SHORTSUFFIX=lnx
  2148. endif
  2149. ifeq ($(OS_TARGET),dragonfly)
  2150. BATCHEXT=.sh
  2151. EXEEXT=
  2152. HASSHAREDLIB=1
  2153. SHORTSUFFIX=df
  2154. endif
  2155. ifeq ($(OS_TARGET),freebsd)
  2156. BATCHEXT=.sh
  2157. EXEEXT=
  2158. HASSHAREDLIB=1
  2159. SHORTSUFFIX=fbs
  2160. endif
  2161. ifeq ($(OS_TARGET),netbsd)
  2162. BATCHEXT=.sh
  2163. EXEEXT=
  2164. HASSHAREDLIB=1
  2165. SHORTSUFFIX=nbs
  2166. endif
  2167. ifeq ($(OS_TARGET),openbsd)
  2168. BATCHEXT=.sh
  2169. EXEEXT=
  2170. HASSHAREDLIB=1
  2171. SHORTSUFFIX=obs
  2172. endif
  2173. ifeq ($(OS_TARGET),win32)
  2174. SHAREDLIBEXT=.dll
  2175. SHORTSUFFIX=w32
  2176. endif
  2177. ifeq ($(OS_TARGET),os2)
  2178. BATCHEXT=.cmd
  2179. AOUTEXT=.out
  2180. STATICLIBPREFIX=
  2181. SHAREDLIBEXT=.dll
  2182. SHORTSUFFIX=os2
  2183. ECHO=echo
  2184. IMPORTLIBPREFIX=
  2185. endif
  2186. ifeq ($(OS_TARGET),emx)
  2187. BATCHEXT=.cmd
  2188. AOUTEXT=.out
  2189. STATICLIBPREFIX=
  2190. SHAREDLIBEXT=.dll
  2191. SHORTSUFFIX=emx
  2192. ECHO=echo
  2193. IMPORTLIBPREFIX=
  2194. endif
  2195. ifeq ($(OS_TARGET),amiga)
  2196. EXEEXT=
  2197. SHAREDLIBEXT=.library
  2198. SHORTSUFFIX=amg
  2199. endif
  2200. ifeq ($(OS_TARGET),aros)
  2201. EXEEXT=
  2202. SHAREDLIBEXT=.library
  2203. SHORTSUFFIX=aros
  2204. endif
  2205. ifeq ($(OS_TARGET),morphos)
  2206. EXEEXT=
  2207. SHAREDLIBEXT=.library
  2208. SHORTSUFFIX=mos
  2209. endif
  2210. ifeq ($(OS_TARGET),atari)
  2211. EXEEXT=.ttp
  2212. SHORTSUFFIX=ata
  2213. endif
  2214. ALL_EXEEXT+=.ttp
  2215. ifeq ($(OS_TARGET),beos)
  2216. BATCHEXT=.sh
  2217. EXEEXT=
  2218. SHORTSUFFIX=be
  2219. endif
  2220. ifeq ($(OS_TARGET),haiku)
  2221. BATCHEXT=.sh
  2222. EXEEXT=
  2223. SHORTSUFFIX=hai
  2224. endif
  2225. ifeq ($(OS_TARGET),solaris)
  2226. BATCHEXT=.sh
  2227. EXEEXT=
  2228. SHORTSUFFIX=sun
  2229. endif
  2230. ifeq ($(OS_TARGET),qnx)
  2231. BATCHEXT=.sh
  2232. EXEEXT=
  2233. SHORTSUFFIX=qnx
  2234. endif
  2235. ifeq ($(OS_TARGET),netware)
  2236. EXEEXT=.nlm
  2237. STATICLIBPREFIX=
  2238. SHORTSUFFIX=nw
  2239. IMPORTLIBPREFIX=imp
  2240. endif
  2241. ALL_EXEEXT+=.nlm
  2242. ifeq ($(OS_TARGET),netwlibc)
  2243. EXEEXT=.nlm
  2244. STATICLIBPREFIX=
  2245. SHORTSUFFIX=nwl
  2246. IMPORTLIBPREFIX=imp
  2247. endif
  2248. ifeq ($(OS_TARGET),macosclassic)
  2249. BATCHEXT=
  2250. EXEEXT=
  2251. DEBUGSYMEXT=.xcoff
  2252. SHORTSUFFIX=mac
  2253. IMPORTLIBPREFIX=imp
  2254. endif
  2255. ifneq ($(filter $(OS_TARGET),darwin iphonesim ios),)
  2256. BATCHEXT=.sh
  2257. EXEEXT=
  2258. HASSHAREDLIB=1
  2259. SHORTSUFFIX=dwn
  2260. EXEDBGEXT=.dSYM
  2261. endif
  2262. ifeq ($(OS_TARGET),gba)
  2263. EXEEXT=.gba
  2264. SHAREDLIBEXT=.so
  2265. SHORTSUFFIX=gba
  2266. endif
  2267. ALL_EXEEXT+=.gba
  2268. ifeq ($(OS_TARGET),symbian)
  2269. SHAREDLIBEXT=.dll
  2270. SHORTSUFFIX=symbian
  2271. endif
  2272. ifeq ($(OS_TARGET),NativeNT)
  2273. SHAREDLIBEXT=.dll
  2274. SHORTSUFFIX=nativent
  2275. endif
  2276. ifeq ($(OS_TARGET),wii)
  2277. EXEEXT=.dol
  2278. SHAREDLIBEXT=.so
  2279. SHORTSUFFIX=wii
  2280. endif
  2281. ALL_EXEEXT+=.dol
  2282. ifeq ($(OS_TARGET),aix)
  2283. BATCHEXT=.sh
  2284. EXEEXT=
  2285. SHAREDLIBEXT=.a
  2286. SHORTSUFFIX=aix
  2287. endif
  2288. ifeq ($(OS_TARGET),java)
  2289. OEXT=.class
  2290. ASMEXT=.j
  2291. SHAREDLIBEXT=.jar
  2292. SHORTSUFFIX=java
  2293. endif
  2294. ifeq ($(CPU_TARGET),jvm)
  2295. ifeq ($(OS_TARGET),android)
  2296. OEXT=.class
  2297. ASMEXT=.j
  2298. SHAREDLIBEXT=.jar
  2299. SHORTSUFFIX=android
  2300. endif
  2301. endif
  2302. ifeq ($(OS_TARGET),msdos)
  2303. STATICLIBPREFIX=
  2304. STATICLIBEXT=.a
  2305. SHORTSUFFIX=d16
  2306. endif
  2307. ifeq ($(OS_TARGET),msxdos)
  2308. STATICLIBPREFIX=
  2309. STATICLIBEXT=.a
  2310. SHORTSUFFIX=msd
  2311. endif
  2312. ifeq ($(OS_TARGET),embedded)
  2313. ifeq ($(CPU_TARGET),i8086)
  2314. STATICLIBPREFIX=
  2315. STATICLIBEXT=.a
  2316. else
  2317. EXEEXT=.bin
  2318. endif
  2319. ifeq ($(CPU_TARGET),z80)
  2320. OEXT=.rel
  2321. endif
  2322. SHORTSUFFIX=emb
  2323. endif
  2324. ALL_EXEEXT+=.bin
  2325. ifeq ($(OS_TARGET),win16)
  2326. STATICLIBPREFIX=
  2327. STATICLIBEXT=.a
  2328. SHAREDLIBEXT=.dll
  2329. SHORTSUFFIX=w16
  2330. endif
  2331. ifeq ($(OS_TARGET),zxspectrum)
  2332. OEXT=.rel
  2333. endif
  2334. ifeq ($(OS_TARGET),wasip1)
  2335. EXEEXT=.wasm
  2336. endif
  2337. ALL_EXEEXT+=.wasm
  2338. ifeq ($(OS_TARGET),wasip1threads)
  2339. EXEEXT=.wasm
  2340. endif
  2341. ifeq ($(OS_TARGET),wasip2)
  2342. EXEEXT=.wasm
  2343. endif
  2344. ifneq ($(filter $(OS_SOURCE),$(LIMIT83fs)),)
  2345. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2346. ZIPSUFFIX=$(SHORTSUFFIX)
  2347. ZIPCROSSPREFIX=
  2348. ZIPSOURCESUFFIX=src
  2349. ZIPEXAMPLESUFFIX=exm
  2350. else
  2351. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2352. ZIPSOURCESUFFIX=.source
  2353. ZIPEXAMPLESUFFIX=.examples
  2354. ifdef CROSSCOMPILE
  2355. ZIPSUFFIX=.$(SOURCESUFFIX)
  2356. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2357. else
  2358. ZIPSUFFIX=.$(TARGETSUFFIX)
  2359. ZIPCROSSPREFIX=
  2360. endif
  2361. endif
  2362. ifndef ECHO
  2363. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2364. ifeq ($(ECHO),)
  2365. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2366. ifeq ($(ECHO),)
  2367. ECHO= __missing_command_ECHO
  2368. else
  2369. ECHO:=$(firstword $(ECHO))
  2370. endif
  2371. else
  2372. ECHO:=$(firstword $(ECHO))
  2373. endif
  2374. endif
  2375. export ECHO
  2376. ifndef DATE
  2377. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2378. ifeq ($(DATE),)
  2379. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2380. ifeq ($(DATE),)
  2381. DATE= __missing_command_DATE
  2382. else
  2383. DATE:=$(firstword $(DATE))
  2384. endif
  2385. else
  2386. DATE:=$(firstword $(DATE))
  2387. endif
  2388. endif
  2389. export DATE
  2390. ifndef GINSTALL
  2391. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2392. ifeq ($(GINSTALL),)
  2393. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2394. ifeq ($(GINSTALL),)
  2395. GINSTALL= __missing_command_GINSTALL
  2396. else
  2397. GINSTALL:=$(firstword $(GINSTALL))
  2398. endif
  2399. else
  2400. GINSTALL:=$(firstword $(GINSTALL))
  2401. endif
  2402. endif
  2403. export GINSTALL
  2404. ifndef CPPROG
  2405. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2406. ifeq ($(CPPROG),)
  2407. CPPROG= __missing_command_CPPROG
  2408. else
  2409. CPPROG:=$(firstword $(CPPROG))
  2410. endif
  2411. endif
  2412. export CPPROG
  2413. ifndef RMPROG
  2414. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2415. ifeq ($(RMPROG),)
  2416. RMPROG= __missing_command_RMPROG
  2417. else
  2418. RMPROG:=$(firstword $(RMPROG))
  2419. endif
  2420. endif
  2421. export RMPROG
  2422. ifndef MVPROG
  2423. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2424. ifeq ($(MVPROG),)
  2425. MVPROG= __missing_command_MVPROG
  2426. else
  2427. MVPROG:=$(firstword $(MVPROG))
  2428. endif
  2429. endif
  2430. export MVPROG
  2431. ifndef MKDIRPROG
  2432. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2433. ifeq ($(MKDIRPROG),)
  2434. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2435. ifeq ($(MKDIRPROG),)
  2436. MKDIRPROG= __missing_command_MKDIRPROG
  2437. else
  2438. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2439. endif
  2440. else
  2441. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2442. endif
  2443. endif
  2444. export MKDIRPROG
  2445. ifndef ECHOREDIR
  2446. ifndef inUnix
  2447. ECHOREDIR=echo
  2448. else
  2449. ECHOREDIR=$(ECHO)
  2450. endif
  2451. endif
  2452. ifndef COPY
  2453. COPY:=$(CPPROG) -fp
  2454. endif
  2455. ifndef COPYTREE
  2456. COPYTREE:=$(CPPROG) -Rfp
  2457. endif
  2458. ifndef MKDIRTREE
  2459. MKDIRTREE:=$(MKDIRPROG) -p
  2460. endif
  2461. ifndef MOVE
  2462. MOVE:=$(MVPROG) -f
  2463. endif
  2464. ifndef DEL
  2465. DEL:=$(RMPROG) -f
  2466. endif
  2467. ifndef DELTREE
  2468. DELTREE:=$(RMPROG) -rf
  2469. endif
  2470. ifndef INSTALL
  2471. ifdef inUnix
  2472. INSTALL:=$(GINSTALL) -c -m 644
  2473. else
  2474. INSTALL:=$(COPY)
  2475. endif
  2476. endif
  2477. ifndef INSTALLEXE
  2478. ifdef inUnix
  2479. INSTALLEXE:=$(GINSTALL) -c -m 755
  2480. else
  2481. INSTALLEXE:=$(COPY)
  2482. endif
  2483. endif
  2484. ifndef MKDIR
  2485. MKDIR:=$(GINSTALL) -m 755 -d
  2486. endif
  2487. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2488. ifndef PPUMOVE
  2489. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2490. ifeq ($(PPUMOVE),)
  2491. PPUMOVE= __missing_command_PPUMOVE
  2492. else
  2493. PPUMOVE:=$(firstword $(PPUMOVE))
  2494. endif
  2495. endif
  2496. export PPUMOVE
  2497. ifndef FPCMAKE
  2498. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2499. ifeq ($(FPCMAKE),)
  2500. FPCMAKE= __missing_command_FPCMAKE
  2501. else
  2502. FPCMAKE:=$(firstword $(FPCMAKE))
  2503. endif
  2504. endif
  2505. export FPCMAKE
  2506. ifndef ZIPPROG
  2507. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2508. ifeq ($(ZIPPROG),)
  2509. ZIPPROG= __missing_command_ZIPPROG
  2510. else
  2511. ZIPPROG:=$(firstword $(ZIPPROG))
  2512. endif
  2513. endif
  2514. export ZIPPROG
  2515. ifndef TARPROG
  2516. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2517. ifeq ($(TARPROG),)
  2518. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2519. ifeq ($(TARPROG),)
  2520. TARPROG= __missing_command_TARPROG
  2521. else
  2522. TARPROG:=$(firstword $(TARPROG))
  2523. endif
  2524. else
  2525. TARPROG:=$(firstword $(TARPROG))
  2526. endif
  2527. endif
  2528. export TARPROG
  2529. ASNAME=$(BINUTILSPREFIX)as
  2530. LDNAME=$(BINUTILSPREFIX)ld
  2531. ARNAME=$(BINUTILSPREFIX)ar
  2532. RCNAME=$(BINUTILSPREFIX)rc
  2533. NASMNAME=$(BINUTILSPREFIX)nasm
  2534. ifndef ASPROG
  2535. ifdef CROSSBINDIR
  2536. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2537. else
  2538. ASPROG=$(ASNAME)
  2539. endif
  2540. endif
  2541. ifndef LDPROG
  2542. ifdef CROSSBINDIR
  2543. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2544. else
  2545. LDPROG=$(LDNAME)
  2546. endif
  2547. endif
  2548. ifndef RCPROG
  2549. ifdef CROSSBINDIR
  2550. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2551. else
  2552. RCPROG=$(RCNAME)
  2553. endif
  2554. endif
  2555. ifndef ARPROG
  2556. ifdef CROSSBINDIR
  2557. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2558. else
  2559. ARPROG=$(ARNAME)
  2560. endif
  2561. endif
  2562. ifndef NASMPROG
  2563. ifdef CROSSBINDIR
  2564. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2565. else
  2566. NASMPROG=$(NASMNAME)
  2567. endif
  2568. endif
  2569. AS=$(ASPROG)
  2570. LD=$(LDPROG)
  2571. RC=$(RCPROG)
  2572. AR=$(ARPROG)
  2573. NASM=$(NASMPROG)
  2574. ifdef inUnix
  2575. PPAS=./ppas$(SRCBATCHEXT)
  2576. else
  2577. PPAS=ppas$(SRCBATCHEXT)
  2578. endif
  2579. ifdef inUnix
  2580. LDCONFIG=ldconfig
  2581. else
  2582. LDCONFIG=
  2583. endif
  2584. ifdef DATE
  2585. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2586. else
  2587. DATESTR=
  2588. endif
  2589. ZIPOPT=-9
  2590. ZIPEXT=.zip
  2591. ifeq ($(USETAR),bz2)
  2592. TAROPT=vj
  2593. TAREXT=.tar.bz2
  2594. else
  2595. TAROPT=vz
  2596. TAREXT=.tar.gz
  2597. endif
  2598. override REQUIRE_PACKAGES=rtl rtl rtl-extra
  2599. ifeq ($(CPU_OS_TARGET),i386-linux)
  2600. REQUIRE_PACKAGES_RTL=1
  2601. REQUIRE_PACKAGES_RTL-EXTRA=1
  2602. endif
  2603. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  2604. REQUIRE_PACKAGES_RTL=1
  2605. REQUIRE_PACKAGES_RTL-EXTRA=1
  2606. endif
  2607. ifeq ($(CPU_OS_TARGET),i386-win32)
  2608. REQUIRE_PACKAGES_RTL=1
  2609. REQUIRE_PACKAGES_RTL-EXTRA=1
  2610. endif
  2611. ifeq ($(CPU_OS_TARGET),i386-os2)
  2612. REQUIRE_PACKAGES_RTL=1
  2613. REQUIRE_PACKAGES_RTL-EXTRA=1
  2614. endif
  2615. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  2616. REQUIRE_PACKAGES_RTL=1
  2617. REQUIRE_PACKAGES_RTL-EXTRA=1
  2618. endif
  2619. ifeq ($(CPU_OS_TARGET),i386-beos)
  2620. REQUIRE_PACKAGES_RTL=1
  2621. REQUIRE_PACKAGES_RTL-EXTRA=1
  2622. endif
  2623. ifeq ($(CPU_OS_TARGET),i386-haiku)
  2624. REQUIRE_PACKAGES_RTL=1
  2625. REQUIRE_PACKAGES_RTL-EXTRA=1
  2626. endif
  2627. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  2628. REQUIRE_PACKAGES_RTL=1
  2629. REQUIRE_PACKAGES_RTL-EXTRA=1
  2630. endif
  2631. ifeq ($(CPU_OS_TARGET),i386-solaris)
  2632. REQUIRE_PACKAGES_RTL=1
  2633. REQUIRE_PACKAGES_RTL-EXTRA=1
  2634. endif
  2635. ifeq ($(CPU_OS_TARGET),i386-netware)
  2636. REQUIRE_PACKAGES_RTL=1
  2637. REQUIRE_PACKAGES_RTL-EXTRA=1
  2638. endif
  2639. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  2640. REQUIRE_PACKAGES_RTL=1
  2641. REQUIRE_PACKAGES_RTL-EXTRA=1
  2642. endif
  2643. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  2644. REQUIRE_PACKAGES_RTL=1
  2645. REQUIRE_PACKAGES_RTL-EXTRA=1
  2646. endif
  2647. ifeq ($(CPU_OS_TARGET),i386-darwin)
  2648. REQUIRE_PACKAGES_RTL=1
  2649. REQUIRE_PACKAGES_RTL-EXTRA=1
  2650. endif
  2651. ifeq ($(CPU_OS_TARGET),i386-emx)
  2652. REQUIRE_PACKAGES_RTL=1
  2653. REQUIRE_PACKAGES_RTL-EXTRA=1
  2654. endif
  2655. ifeq ($(CPU_OS_TARGET),i386-watcom)
  2656. REQUIRE_PACKAGES_RTL=1
  2657. REQUIRE_PACKAGES_RTL-EXTRA=1
  2658. endif
  2659. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  2660. REQUIRE_PACKAGES_RTL=1
  2661. REQUIRE_PACKAGES_RTL-EXTRA=1
  2662. endif
  2663. ifeq ($(CPU_OS_TARGET),i386-wince)
  2664. REQUIRE_PACKAGES_RTL=1
  2665. REQUIRE_PACKAGES_RTL-EXTRA=1
  2666. endif
  2667. ifeq ($(CPU_OS_TARGET),i386-embedded)
  2668. REQUIRE_PACKAGES_RTL=1
  2669. REQUIRE_PACKAGES_RTL-EXTRA=1
  2670. endif
  2671. ifeq ($(CPU_OS_TARGET),i386-symbian)
  2672. REQUIRE_PACKAGES_RTL=1
  2673. REQUIRE_PACKAGES_RTL-EXTRA=1
  2674. endif
  2675. ifeq ($(CPU_OS_TARGET),i386-nativent)
  2676. REQUIRE_PACKAGES_RTL=1
  2677. REQUIRE_PACKAGES_RTL-EXTRA=1
  2678. endif
  2679. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  2680. REQUIRE_PACKAGES_RTL=1
  2681. REQUIRE_PACKAGES_RTL-EXTRA=1
  2682. endif
  2683. ifeq ($(CPU_OS_TARGET),i386-android)
  2684. REQUIRE_PACKAGES_RTL=1
  2685. REQUIRE_PACKAGES_RTL-EXTRA=1
  2686. endif
  2687. ifeq ($(CPU_OS_TARGET),i386-aros)
  2688. REQUIRE_PACKAGES_RTL=1
  2689. REQUIRE_PACKAGES_RTL-EXTRA=1
  2690. endif
  2691. ifeq ($(CPU_OS_TARGET),m68k-linux)
  2692. REQUIRE_PACKAGES_RTL=1
  2693. REQUIRE_PACKAGES_RTL-EXTRA=1
  2694. endif
  2695. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  2696. REQUIRE_PACKAGES_RTL=1
  2697. REQUIRE_PACKAGES_RTL-EXTRA=1
  2698. endif
  2699. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  2700. REQUIRE_PACKAGES_RTL=1
  2701. REQUIRE_PACKAGES_RTL-EXTRA=1
  2702. endif
  2703. ifeq ($(CPU_OS_TARGET),m68k-atari)
  2704. REQUIRE_PACKAGES_RTL=1
  2705. REQUIRE_PACKAGES_RTL-EXTRA=1
  2706. endif
  2707. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  2708. REQUIRE_PACKAGES_RTL=1
  2709. REQUIRE_PACKAGES_RTL-EXTRA=1
  2710. endif
  2711. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  2712. REQUIRE_PACKAGES_RTL=1
  2713. REQUIRE_PACKAGES_RTL-EXTRA=1
  2714. endif
  2715. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  2716. REQUIRE_PACKAGES_RTL=1
  2717. REQUIRE_PACKAGES_RTL-EXTRA=1
  2718. endif
  2719. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  2720. REQUIRE_PACKAGES_RTL=1
  2721. REQUIRE_PACKAGES_RTL-EXTRA=1
  2722. endif
  2723. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  2724. REQUIRE_PACKAGES_RTL=1
  2725. REQUIRE_PACKAGES_RTL-EXTRA=1
  2726. endif
  2727. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  2728. REQUIRE_PACKAGES_RTL=1
  2729. REQUIRE_PACKAGES_RTL-EXTRA=1
  2730. endif
  2731. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  2732. REQUIRE_PACKAGES_RTL=1
  2733. REQUIRE_PACKAGES_RTL-EXTRA=1
  2734. endif
  2735. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  2736. REQUIRE_PACKAGES_RTL=1
  2737. REQUIRE_PACKAGES_RTL-EXTRA=1
  2738. endif
  2739. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  2740. REQUIRE_PACKAGES_RTL=1
  2741. REQUIRE_PACKAGES_RTL-EXTRA=1
  2742. endif
  2743. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  2744. REQUIRE_PACKAGES_RTL=1
  2745. REQUIRE_PACKAGES_RTL-EXTRA=1
  2746. endif
  2747. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  2748. REQUIRE_PACKAGES_RTL=1
  2749. REQUIRE_PACKAGES_RTL-EXTRA=1
  2750. endif
  2751. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  2752. REQUIRE_PACKAGES_RTL=1
  2753. REQUIRE_PACKAGES_RTL-EXTRA=1
  2754. endif
  2755. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  2756. REQUIRE_PACKAGES_RTL=1
  2757. REQUIRE_PACKAGES_RTL-EXTRA=1
  2758. endif
  2759. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  2760. REQUIRE_PACKAGES_RTL=1
  2761. REQUIRE_PACKAGES_RTL-EXTRA=1
  2762. endif
  2763. ifeq ($(CPU_OS_TARGET),sparc-linux)
  2764. REQUIRE_PACKAGES_RTL=1
  2765. REQUIRE_PACKAGES_RTL-EXTRA=1
  2766. endif
  2767. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  2768. REQUIRE_PACKAGES_RTL=1
  2769. REQUIRE_PACKAGES_RTL-EXTRA=1
  2770. endif
  2771. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  2772. REQUIRE_PACKAGES_RTL=1
  2773. REQUIRE_PACKAGES_RTL-EXTRA=1
  2774. endif
  2775. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  2776. REQUIRE_PACKAGES_RTL=1
  2777. REQUIRE_PACKAGES_RTL-EXTRA=1
  2778. endif
  2779. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  2780. REQUIRE_PACKAGES_RTL=1
  2781. REQUIRE_PACKAGES_RTL-EXTRA=1
  2782. endif
  2783. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  2784. REQUIRE_PACKAGES_RTL=1
  2785. REQUIRE_PACKAGES_RTL-EXTRA=1
  2786. endif
  2787. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  2788. REQUIRE_PACKAGES_RTL=1
  2789. REQUIRE_PACKAGES_RTL-EXTRA=1
  2790. endif
  2791. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  2792. REQUIRE_PACKAGES_RTL=1
  2793. REQUIRE_PACKAGES_RTL-EXTRA=1
  2794. endif
  2795. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  2796. REQUIRE_PACKAGES_RTL=1
  2797. REQUIRE_PACKAGES_RTL-EXTRA=1
  2798. endif
  2799. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  2800. REQUIRE_PACKAGES_RTL=1
  2801. REQUIRE_PACKAGES_RTL-EXTRA=1
  2802. endif
  2803. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  2804. REQUIRE_PACKAGES_RTL=1
  2805. REQUIRE_PACKAGES_RTL-EXTRA=1
  2806. endif
  2807. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  2808. REQUIRE_PACKAGES_RTL=1
  2809. REQUIRE_PACKAGES_RTL-EXTRA=1
  2810. endif
  2811. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  2812. REQUIRE_PACKAGES_RTL=1
  2813. REQUIRE_PACKAGES_RTL-EXTRA=1
  2814. endif
  2815. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  2816. REQUIRE_PACKAGES_RTL=1
  2817. REQUIRE_PACKAGES_RTL-EXTRA=1
  2818. endif
  2819. ifeq ($(CPU_OS_TARGET),x86_64-android)
  2820. REQUIRE_PACKAGES_RTL=1
  2821. REQUIRE_PACKAGES_RTL-EXTRA=1
  2822. endif
  2823. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  2824. REQUIRE_PACKAGES_RTL=1
  2825. REQUIRE_PACKAGES_RTL-EXTRA=1
  2826. endif
  2827. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  2828. REQUIRE_PACKAGES_RTL=1
  2829. REQUIRE_PACKAGES_RTL-EXTRA=1
  2830. endif
  2831. ifeq ($(CPU_OS_TARGET),arm-linux)
  2832. REQUIRE_PACKAGES_RTL=1
  2833. REQUIRE_PACKAGES_RTL-EXTRA=1
  2834. endif
  2835. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  2836. REQUIRE_PACKAGES_RTL=1
  2837. REQUIRE_PACKAGES_RTL-EXTRA=1
  2838. endif
  2839. ifeq ($(CPU_OS_TARGET),arm-palmos)
  2840. REQUIRE_PACKAGES_RTL=1
  2841. REQUIRE_PACKAGES_RTL-EXTRA=1
  2842. endif
  2843. ifeq ($(CPU_OS_TARGET),arm-wince)
  2844. REQUIRE_PACKAGES_RTL=1
  2845. REQUIRE_PACKAGES_RTL-EXTRA=1
  2846. endif
  2847. ifeq ($(CPU_OS_TARGET),arm-gba)
  2848. REQUIRE_PACKAGES_RTL=1
  2849. REQUIRE_PACKAGES_RTL-EXTRA=1
  2850. endif
  2851. ifeq ($(CPU_OS_TARGET),arm-nds)
  2852. REQUIRE_PACKAGES_RTL=1
  2853. REQUIRE_PACKAGES_RTL-EXTRA=1
  2854. endif
  2855. ifeq ($(CPU_OS_TARGET),arm-embedded)
  2856. REQUIRE_PACKAGES_RTL=1
  2857. REQUIRE_PACKAGES_RTL-EXTRA=1
  2858. endif
  2859. ifeq ($(CPU_OS_TARGET),arm-symbian)
  2860. REQUIRE_PACKAGES_RTL=1
  2861. REQUIRE_PACKAGES_RTL-EXTRA=1
  2862. endif
  2863. ifeq ($(CPU_OS_TARGET),arm-android)
  2864. REQUIRE_PACKAGES_RTL=1
  2865. REQUIRE_PACKAGES_RTL-EXTRA=1
  2866. endif
  2867. ifeq ($(CPU_OS_TARGET),arm-aros)
  2868. REQUIRE_PACKAGES_RTL=1
  2869. REQUIRE_PACKAGES_RTL-EXTRA=1
  2870. endif
  2871. ifeq ($(CPU_OS_TARGET),arm-freertos)
  2872. REQUIRE_PACKAGES_RTL=1
  2873. REQUIRE_PACKAGES_RTL-EXTRA=1
  2874. endif
  2875. ifeq ($(CPU_OS_TARGET),arm-ios)
  2876. REQUIRE_PACKAGES_RTL=1
  2877. REQUIRE_PACKAGES_RTL-EXTRA=1
  2878. endif
  2879. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  2880. REQUIRE_PACKAGES_RTL=1
  2881. REQUIRE_PACKAGES_RTL-EXTRA=1
  2882. endif
  2883. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  2884. REQUIRE_PACKAGES_RTL=1
  2885. REQUIRE_PACKAGES_RTL-EXTRA=1
  2886. endif
  2887. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  2888. REQUIRE_PACKAGES_RTL=1
  2889. REQUIRE_PACKAGES_RTL-EXTRA=1
  2890. endif
  2891. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  2892. REQUIRE_PACKAGES_RTL=1
  2893. REQUIRE_PACKAGES_RTL-EXTRA=1
  2894. endif
  2895. ifeq ($(CPU_OS_TARGET),avr-embedded)
  2896. REQUIRE_PACKAGES_RTL=1
  2897. REQUIRE_PACKAGES_RTL-EXTRA=1
  2898. endif
  2899. ifeq ($(CPU_OS_TARGET),armeb-linux)
  2900. REQUIRE_PACKAGES_RTL=1
  2901. REQUIRE_PACKAGES_RTL-EXTRA=1
  2902. endif
  2903. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  2904. REQUIRE_PACKAGES_RTL=1
  2905. REQUIRE_PACKAGES_RTL-EXTRA=1
  2906. endif
  2907. ifeq ($(CPU_OS_TARGET),mips-linux)
  2908. REQUIRE_PACKAGES_RTL=1
  2909. REQUIRE_PACKAGES_RTL-EXTRA=1
  2910. endif
  2911. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  2912. REQUIRE_PACKAGES_RTL=1
  2913. REQUIRE_PACKAGES_RTL-EXTRA=1
  2914. endif
  2915. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  2916. REQUIRE_PACKAGES_RTL=1
  2917. REQUIRE_PACKAGES_RTL-EXTRA=1
  2918. endif
  2919. ifeq ($(CPU_OS_TARGET),mipsel-android)
  2920. REQUIRE_PACKAGES_RTL=1
  2921. REQUIRE_PACKAGES_RTL-EXTRA=1
  2922. endif
  2923. ifeq ($(CPU_OS_TARGET),mipsel-ps1)
  2924. REQUIRE_PACKAGES_RTL=1
  2925. REQUIRE_PACKAGES_RTL-EXTRA=1
  2926. endif
  2927. ifeq ($(CPU_OS_TARGET),mips64-linux)
  2928. REQUIRE_PACKAGES_RTL=1
  2929. REQUIRE_PACKAGES_RTL-EXTRA=1
  2930. endif
  2931. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  2932. REQUIRE_PACKAGES_RTL=1
  2933. REQUIRE_PACKAGES_RTL-EXTRA=1
  2934. endif
  2935. ifeq ($(CPU_OS_TARGET),jvm-java)
  2936. REQUIRE_PACKAGES_RTL=1
  2937. REQUIRE_PACKAGES_RTL-EXTRA=1
  2938. endif
  2939. ifeq ($(CPU_OS_TARGET),jvm-android)
  2940. REQUIRE_PACKAGES_RTL=1
  2941. REQUIRE_PACKAGES_RTL-EXTRA=1
  2942. endif
  2943. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  2944. REQUIRE_PACKAGES_RTL=1
  2945. REQUIRE_PACKAGES_RTL-EXTRA=1
  2946. endif
  2947. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  2948. REQUIRE_PACKAGES_RTL=1
  2949. REQUIRE_PACKAGES_RTL-EXTRA=1
  2950. endif
  2951. ifeq ($(CPU_OS_TARGET),i8086-win16)
  2952. REQUIRE_PACKAGES_RTL=1
  2953. REQUIRE_PACKAGES_RTL-EXTRA=1
  2954. endif
  2955. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  2956. REQUIRE_PACKAGES_RTL=1
  2957. REQUIRE_PACKAGES_RTL-EXTRA=1
  2958. endif
  2959. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  2960. REQUIRE_PACKAGES_RTL=1
  2961. REQUIRE_PACKAGES_RTL-EXTRA=1
  2962. endif
  2963. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  2964. REQUIRE_PACKAGES_RTL=1
  2965. REQUIRE_PACKAGES_RTL-EXTRA=1
  2966. endif
  2967. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  2968. REQUIRE_PACKAGES_RTL=1
  2969. REQUIRE_PACKAGES_RTL-EXTRA=1
  2970. endif
  2971. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  2972. REQUIRE_PACKAGES_RTL=1
  2973. REQUIRE_PACKAGES_RTL-EXTRA=1
  2974. endif
  2975. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  2976. REQUIRE_PACKAGES_RTL=1
  2977. REQUIRE_PACKAGES_RTL-EXTRA=1
  2978. endif
  2979. ifeq ($(CPU_OS_TARGET),aarch64-android)
  2980. REQUIRE_PACKAGES_RTL=1
  2981. REQUIRE_PACKAGES_RTL-EXTRA=1
  2982. endif
  2983. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  2984. REQUIRE_PACKAGES_RTL=1
  2985. REQUIRE_PACKAGES_RTL-EXTRA=1
  2986. endif
  2987. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  2988. REQUIRE_PACKAGES_RTL=1
  2989. REQUIRE_PACKAGES_RTL-EXTRA=1
  2990. endif
  2991. ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
  2992. REQUIRE_PACKAGES_RTL=1
  2993. REQUIRE_PACKAGES_RTL-EXTRA=1
  2994. endif
  2995. ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
  2996. REQUIRE_PACKAGES_RTL=1
  2997. REQUIRE_PACKAGES_RTL-EXTRA=1
  2998. endif
  2999. ifeq ($(CPU_OS_TARGET),wasm32-wasip2)
  3000. REQUIRE_PACKAGES_RTL=1
  3001. REQUIRE_PACKAGES_RTL-EXTRA=1
  3002. endif
  3003. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  3004. REQUIRE_PACKAGES_RTL=1
  3005. REQUIRE_PACKAGES_RTL-EXTRA=1
  3006. endif
  3007. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  3008. REQUIRE_PACKAGES_RTL=1
  3009. REQUIRE_PACKAGES_RTL-EXTRA=1
  3010. endif
  3011. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  3012. REQUIRE_PACKAGES_RTL=1
  3013. REQUIRE_PACKAGES_RTL-EXTRA=1
  3014. endif
  3015. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  3016. REQUIRE_PACKAGES_RTL=1
  3017. REQUIRE_PACKAGES_RTL-EXTRA=1
  3018. endif
  3019. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  3020. REQUIRE_PACKAGES_RTL=1
  3021. REQUIRE_PACKAGES_RTL-EXTRA=1
  3022. endif
  3023. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  3024. REQUIRE_PACKAGES_RTL=1
  3025. REQUIRE_PACKAGES_RTL-EXTRA=1
  3026. endif
  3027. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  3028. REQUIRE_PACKAGES_RTL=1
  3029. REQUIRE_PACKAGES_RTL-EXTRA=1
  3030. endif
  3031. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  3032. REQUIRE_PACKAGES_RTL=1
  3033. REQUIRE_PACKAGES_RTL-EXTRA=1
  3034. endif
  3035. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  3036. REQUIRE_PACKAGES_RTL=1
  3037. REQUIRE_PACKAGES_RTL-EXTRA=1
  3038. endif
  3039. ifeq ($(CPU_OS_TARGET),z80-embedded)
  3040. REQUIRE_PACKAGES_RTL=1
  3041. REQUIRE_PACKAGES_RTL-EXTRA=1
  3042. endif
  3043. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  3044. REQUIRE_PACKAGES_RTL=1
  3045. REQUIRE_PACKAGES_RTL-EXTRA=1
  3046. endif
  3047. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  3048. REQUIRE_PACKAGES_RTL=1
  3049. REQUIRE_PACKAGES_RTL-EXTRA=1
  3050. endif
  3051. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  3052. REQUIRE_PACKAGES_RTL=1
  3053. REQUIRE_PACKAGES_RTL-EXTRA=1
  3054. endif
  3055. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  3056. REQUIRE_PACKAGES_RTL=1
  3057. REQUIRE_PACKAGES_RTL-EXTRA=1
  3058. endif
  3059. ifdef REQUIRE_PACKAGES_RTL
  3060. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  3061. ifeq ($(PACKAGEDIR_RTL),)
  3062. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile,,$(strip $(wildcard $(addsuffix /rtl/Makefile,$(PACKAGESDIR))))))
  3063. ifneq ($(PACKAGEDIR_RTL),)
  3064. PACKAGEDIR_RTL:=$(firstword $(subst /fpmake.pp,,$(strip $(wildcard $(addsuffix /rtl/fpmake.pp,$(PACKAGESDIR))))))
  3065. endif
  3066. endif
  3067. ifneq ($(PACKAGEDIR_RTL),)
  3068. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  3069. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  3070. else
  3071. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  3072. endif
  3073. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
  3074. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
  3075. else
  3076. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
  3077. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
  3078. else
  3079. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
  3080. endif
  3081. endif
  3082. ifdef CHECKDEPEND
  3083. $(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
  3084. $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
  3085. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
  3086. endif
  3087. else
  3088. PACKAGEDIR_RTL=
  3089. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  3090. ifneq ($(UNITDIR_RTL),)
  3091. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  3092. else
  3093. UNITDIR_RTL=
  3094. endif
  3095. endif
  3096. ifdef UNITDIR_RTL
  3097. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  3098. endif
  3099. ifdef UNITDIR_FPMAKE_RTL
  3100. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
  3101. endif
  3102. endif
  3103. ifdef REQUIRE_PACKAGES_RTL-EXTRA
  3104. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl-extra/Makefile.fpc,$(PACKAGESDIR))))))
  3105. ifeq ($(PACKAGEDIR_RTL-EXTRA),)
  3106. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /Makefile,,$(strip $(wildcard $(addsuffix /rtl-extra/Makefile,$(PACKAGESDIR))))))
  3107. ifneq ($(PACKAGEDIR_RTL-EXTRA),)
  3108. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /fpmake.pp,,$(strip $(wildcard $(addsuffix /rtl-extra/fpmake.pp,$(PACKAGESDIR))))))
  3109. endif
  3110. endif
  3111. ifneq ($(PACKAGEDIR_RTL-EXTRA),)
  3112. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units/$(TARGETSUFFIX)),)
  3113. UNITDIR_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units/$(TARGETSUFFIX)
  3114. else
  3115. UNITDIR_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)
  3116. endif
  3117. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units/$(SOURCESUFFIX)),)
  3118. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units/$(SOURCESUFFIX)
  3119. else
  3120. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units_bs/$(SOURCESUFFIX)),)
  3121. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units_bs/$(SOURCESUFFIX)
  3122. else
  3123. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)
  3124. endif
  3125. endif
  3126. ifdef CHECKDEPEND
  3127. $(PACKAGEDIR_RTL-EXTRA)/$(FPCMADE):
  3128. $(MAKE) -C $(PACKAGEDIR_RTL-EXTRA) $(FPCMADE)
  3129. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL-EXTRA)/$(FPCMADE)
  3130. endif
  3131. else
  3132. PACKAGEDIR_RTL-EXTRA=
  3133. UNITDIR_RTL-EXTRA:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl-extra/Package.fpc,$(UNITSDIR)))))
  3134. ifneq ($(UNITDIR_RTL-EXTRA),)
  3135. UNITDIR_RTL-EXTRA:=$(firstword $(UNITDIR_RTL-EXTRA))
  3136. else
  3137. UNITDIR_RTL-EXTRA=
  3138. endif
  3139. endif
  3140. ifdef UNITDIR_RTL-EXTRA
  3141. override COMPILER_UNITDIR+=$(UNITDIR_RTL-EXTRA)
  3142. endif
  3143. ifdef UNITDIR_FPMAKE_RTL-EXTRA
  3144. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL-EXTRA)
  3145. endif
  3146. endif
  3147. ifndef NOCPUDEF
  3148. override FPCOPTDEF=$(ARCH)
  3149. endif
  3150. ifneq ($(OS_TARGET),$(OS_SOURCE))
  3151. override FPCOPT+=-T$(OS_TARGET)
  3152. endif
  3153. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  3154. override FPCOPT+=-P$(ARCH)
  3155. endif
  3156. ifeq ($(OS_SOURCE),openbsd)
  3157. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  3158. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  3159. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  3160. endif
  3161. ifndef CROSSBOOTSTRAP
  3162. ifneq ($(BINUTILSPREFIX),)
  3163. override FPCOPT+=-XP$(BINUTILSPREFIX)
  3164. ifneq ($(RLINKPATH),)
  3165. override FPCOPT+=-Xr$(RLINKPATH)
  3166. endif
  3167. endif
  3168. endif
  3169. ifndef CROSSCOMPILE
  3170. ifneq ($(BINUTILSPREFIX),)
  3171. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  3172. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  3173. endif
  3174. endif
  3175. ifdef UNITDIR
  3176. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  3177. endif
  3178. ifdef LIBDIR
  3179. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  3180. endif
  3181. ifdef OBJDIR
  3182. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  3183. endif
  3184. ifdef INCDIR
  3185. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  3186. endif
  3187. ifdef LINKSMART
  3188. override FPCOPT+=-XX
  3189. endif
  3190. ifdef CREATESMART
  3191. override FPCOPT+=-CX
  3192. endif
  3193. ifdef DEBUG
  3194. override FPCOPT+=-gl
  3195. override FPCOPTDEF+=DEBUG
  3196. endif
  3197. ifdef RELEASE
  3198. FPCCPUOPT:=-O2
  3199. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  3200. override FPCOPTDEF+=RELEASE
  3201. endif
  3202. ifdef STRIP
  3203. override FPCOPT+=-Xs
  3204. endif
  3205. ifdef OPTIMIZE
  3206. override FPCOPT+=-O2
  3207. endif
  3208. ifdef VERBOSE
  3209. override FPCOPT+=-vwni
  3210. endif
  3211. ifdef COMPILER_OPTIONS
  3212. override FPCOPT+=$(COMPILER_OPTIONS)
  3213. endif
  3214. ifdef COMPILER_UNITDIR
  3215. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  3216. endif
  3217. ifdef COMPILER_LIBRARYDIR
  3218. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  3219. endif
  3220. ifdef COMPILER_OBJECTDIR
  3221. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  3222. endif
  3223. ifdef COMPILER_INCLUDEDIR
  3224. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  3225. endif
  3226. ifdef CROSSBINDIR
  3227. override FPCOPT+=-FD$(CROSSBINDIR)
  3228. endif
  3229. ifdef COMPILER_TARGETDIR
  3230. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  3231. ifeq ($(COMPILER_TARGETDIR),.)
  3232. override TARGETDIRPREFIX=
  3233. else
  3234. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  3235. endif
  3236. endif
  3237. ifdef COMPILER_UNITTARGETDIR
  3238. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  3239. ifeq ($(COMPILER_UNITTARGETDIR),.)
  3240. override UNITTARGETDIRPREFIX=
  3241. else
  3242. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  3243. endif
  3244. else
  3245. ifdef COMPILER_TARGETDIR
  3246. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  3247. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  3248. endif
  3249. endif
  3250. ifdef SYSROOTPATH
  3251. override FPCOPT+=-XR$(SYSROOTPATH)
  3252. else
  3253. ifeq ($(OS_TARGET),$(OS_SOURCE))
  3254. ifeq ($(OS_TARGET),darwin)
  3255. ifeq ($(CPU_TARGET),aarch64)
  3256. ifneq ($(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk),)
  3257. override FPCOPT+=-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
  3258. endif
  3259. endif
  3260. endif
  3261. endif
  3262. endif
  3263. ifdef CREATESHARED
  3264. override FPCOPT+=-Cg
  3265. endif
  3266. ifneq ($(filter $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  3267. ifneq ($(filter $(CPU_TARGET),x86_64 mips mipsel mips64 mips64el riscv64 powerpc64),)
  3268. override FPCOPT+=-Cg
  3269. endif
  3270. endif
  3271. ifneq ($(filter $(CPU_TARGET),z80),)
  3272. override FPCOPT+=-CX -XX
  3273. endif
  3274. ifdef LINKSHARED
  3275. endif
  3276. ifdef GCCLIBDIR
  3277. override FPCOPT+=-Fl$(GCCLIBDIR)
  3278. ifdef FPCMAKEGCCLIBDIR
  3279. override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR)
  3280. else
  3281. override FPCMAKEOPT+=-Fl$(GCCLIBDIR)
  3282. endif
  3283. endif
  3284. ifdef OTHERLIBDIR
  3285. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  3286. endif
  3287. ifdef OPT
  3288. override FPCOPT+=$(OPT)
  3289. endif
  3290. ifdef FPMAKEBUILDOPT
  3291. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  3292. endif
  3293. ifdef FPCOPTDEF
  3294. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  3295. endif
  3296. ifdef CFGFILE
  3297. override FPCOPT+=@$(CFGFILE)
  3298. endif
  3299. ifdef USEENV
  3300. override FPCEXTCMD:=$(FPCOPT)
  3301. override FPCOPT:=!FPCEXTCMD
  3302. export FPCEXTCMD
  3303. endif
  3304. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  3305. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  3306. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  3307. override ACROSSCOMPILE=1
  3308. endif
  3309. ifdef ACROSSCOMPILE
  3310. override FPCOPT+=$(CROSSOPT)
  3311. endif
  3312. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  3313. ifneq (,$(filter -sh,$(COMPILER)))
  3314. UseEXECPPAS=1
  3315. endif
  3316. ifneq (,$(filter -s,$(COMPILER)))
  3317. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  3318. UseEXECPPAS=1
  3319. endif
  3320. endif
  3321. ifneq ($(UseEXECPPAS),1)
  3322. EXECPPAS=
  3323. else
  3324. ifdef RUNBATCH
  3325. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  3326. else
  3327. EXECPPAS:=@$(PPAS)
  3328. endif
  3329. endif
  3330. .PHONY: fpc_units
  3331. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  3332. override ALLTARGET+=fpc_units
  3333. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  3334. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  3335. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  3336. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  3337. endif
  3338. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  3339. ifdef TARGET_RSTS
  3340. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  3341. override CLEANRSTFILES+=$(RSTFILES)
  3342. endif
  3343. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  3344. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  3345. @$(ECHOREDIR) Compiled > $(FPCMADE)
  3346. fpc_all: $(FPCMADE)
  3347. fpc_smart:
  3348. $(MAKE) all LINKSMART=1 CREATESMART=1
  3349. fpc_debug:
  3350. $(MAKE) all DEBUG=1
  3351. fpc_release:
  3352. $(MAKE) all RELEASE=1
  3353. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) $(LTOEXT) .pas .lpr .dpr .pp .rc .res
  3354. $(COMPILER_UNITTARGETDIR):
  3355. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  3356. $(COMPILER_TARGETDIR):
  3357. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  3358. %$(PPUEXT): %.pp
  3359. $(COMPILER) $<
  3360. $(EXECPPAS)
  3361. %$(PPUEXT): %.pas
  3362. $(COMPILER) $<
  3363. $(EXECPPAS)
  3364. %$(EXEEXT): %.pp
  3365. $(COMPILER) $<
  3366. $(EXECPPAS)
  3367. %$(EXEEXT): %.pas
  3368. $(COMPILER) $<
  3369. $(EXECPPAS)
  3370. %$(EXEEXT): %.lpr
  3371. $(COMPILER) $<
  3372. $(EXECPPAS)
  3373. %$(EXEEXT): %.dpr
  3374. $(COMPILER) $<
  3375. $(EXECPPAS)
  3376. %.res: %.rc
  3377. windres -i $< -o $@
  3378. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3379. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3380. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3381. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3382. vpath %.inc $(COMPILER_INCLUDEDIR)
  3383. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  3384. vpath %$(LTOEXT) $(COMPILER_UNITTARGETDIR)
  3385. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  3386. .PHONY: fpc_shared
  3387. override INSTALLTARGET+=fpc_shared_install
  3388. ifndef SHARED_LIBVERSION
  3389. SHARED_LIBVERSION=$(FPC_VERSION)
  3390. endif
  3391. ifndef SHARED_LIBNAME
  3392. SHARED_LIBNAME=$(PACKAGE_NAME)
  3393. endif
  3394. ifndef SHARED_FULLNAME
  3395. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  3396. endif
  3397. ifndef SHARED_LIBUNITS
  3398. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  3399. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  3400. endif
  3401. fpc_shared:
  3402. ifdef HASSHAREDLIB
  3403. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  3404. ifneq ($(SHARED_BUILD),n)
  3405. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR) -P$(BINUTILSPREFIX)
  3406. endif
  3407. else
  3408. @$(ECHO) Shared Libraries not supported
  3409. endif
  3410. fpc_shared_install:
  3411. ifneq ($(SHARED_BUILD),n)
  3412. ifneq ($(SHARED_LIBUNITS),)
  3413. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  3414. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  3415. endif
  3416. endif
  3417. endif
  3418. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  3419. ifdef INSTALL_UNITS
  3420. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  3421. endif
  3422. ifdef INSTALL_BUILDUNIT
  3423. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  3424. endif
  3425. ifdef INSTALLPPUFILES
  3426. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  3427. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  3428. else
  3429. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  3430. endif
  3431. ifneq ($(UNITTARGETDIRPREFIX),)
  3432. override INSTALLPPUFILENAMES:=$(notdir $(INSTALLPPUFILES))
  3433. override INSTALLPPULINKFILENAMES:=$(notdir $(INSTALLPPULINKFILES))
  3434. override INSTALLPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILENAMES))
  3435. override INSTALLPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILENAMES)))
  3436. endif
  3437. override INSTALL_CREATEPACKAGEFPC=1
  3438. endif
  3439. ifdef INSTALLEXEFILES
  3440. ifneq ($(TARGETDIRPREFIX),)
  3441. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  3442. endif
  3443. endif
  3444. fpc_install: all $(INSTALLTARGET)
  3445. ifdef INSTALLEXEFILES
  3446. $(MKDIR) $(INSTALL_BINDIR)
  3447. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  3448. endif
  3449. ifdef INSTALL_CREATEPACKAGEFPC
  3450. ifdef FPCMAKE
  3451. ifdef PACKAGE_VERSION
  3452. ifneq ($(wildcard Makefile.fpc),)
  3453. ifdef FPCMAKENEW
  3454. $(MKDIR) $(INSTALL_UNITDIR)
  3455. $(FPCMAKENEW) -o $(INSTALL_UNITDIR)/Package.fpc -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  3456. else
  3457. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  3458. $(MKDIR) $(INSTALL_UNITDIR)
  3459. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  3460. endif
  3461. endif
  3462. endif
  3463. endif
  3464. endif
  3465. ifdef INSTALLPPUFILES
  3466. $(MKDIR) $(INSTALL_UNITDIR)
  3467. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  3468. ifneq ($(INSTALLPPULINKFILES),)
  3469. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  3470. endif
  3471. ifneq ($(wildcard $(LIB_FULLNAME)),)
  3472. $(MKDIR) $(INSTALL_LIBDIR)
  3473. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  3474. ifdef inUnix
  3475. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  3476. endif
  3477. endif
  3478. endif
  3479. ifdef INSTALL_FILES
  3480. $(MKDIR) $(INSTALL_DATADIR)
  3481. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  3482. endif
  3483. fpc_sourceinstall: distclean
  3484. $(MKDIR) $(INSTALL_SOURCEDIR)
  3485. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  3486. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  3487. ifdef HASEXAMPLES
  3488. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  3489. endif
  3490. ifdef EXAMPLESOURCEFILES
  3491. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  3492. endif
  3493. ifdef TARGET_EXAMPLEDIRS
  3494. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  3495. endif
  3496. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  3497. ifdef EXEFILES
  3498. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  3499. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  3500. endif
  3501. ifdef CLEAN_PROGRAMS
  3502. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  3503. override ALL_CLEANEXEFILES+=$(foreach lEXEEXT,$(ALL_EXEEXT),$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(lEXEEXT), $(CLEAN_PROGRAMS))))
  3504. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  3505. endif
  3506. ifdef CLEAN_UNITS
  3507. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  3508. endif
  3509. ifdef CLEANPPUFILES
  3510. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  3511. ifdef DEBUGSYMEXT
  3512. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  3513. endif
  3514. override CLEANPPUFILENAMES:=$(CLEANPPUFILES)
  3515. override CLEANPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILENAMES))
  3516. override CLEANPPULINKFILENAMES:=$(CLEANPPULINKFILES)
  3517. override CLEANPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILENAMES)))
  3518. endif
  3519. fpc_clean: $(CLEANTARGET)
  3520. ifdef CLEANEXEFILES
  3521. -$(DEL) $(CLEANEXEFILES)
  3522. endif
  3523. ifdef CLEANEXEDBGFILES
  3524. -$(DELTREE) $(CLEANEXEDBGFILES)
  3525. endif
  3526. ifdef CLEANPPUFILES
  3527. -$(DEL) $(CLEANPPUFILES)
  3528. endif
  3529. ifneq ($(CLEANPPULINKFILES),)
  3530. -$(DEL) $(CLEANPPULINKFILES)
  3531. endif
  3532. ifdef CLEANRSTFILES
  3533. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  3534. endif
  3535. ifdef CLEAN_FILES
  3536. -$(DEL) $(CLEAN_FILES)
  3537. endif
  3538. ifdef LIB_NAME
  3539. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  3540. endif
  3541. -$(DEL) $(FPCMADE) *$(FULL_TARGET).fpm Package.fpc *$(ASMEXT)
  3542. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res symbol_order*.fpc
  3543. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  3544. fpc_cleanall: $(CLEANTARGET)
  3545. ifdef CLEANEXEFILES
  3546. -$(DEL) $(CLEANEXEFILES)
  3547. endif
  3548. ifdef ALL_CLEANEXEFILES
  3549. -$(DEL) $(ALL_CLEANEXEFILES)
  3550. endif
  3551. ifdef COMPILER_UNITTARGETDIR
  3552. ifdef CLEANPPUFILES
  3553. -$(DEL) $(CLEANPPUFILES)
  3554. endif
  3555. ifneq ($(CLEANPPULINKFILES),)
  3556. -$(DEL) $(CLEANPPULINKFILES)
  3557. endif
  3558. ifdef CLEANRSTFILES
  3559. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  3560. endif
  3561. endif
  3562. ifdef CLEAN_FILES
  3563. -$(DEL) $(CLEAN_FILES)
  3564. endif
  3565. -$(DELTREE) units
  3566. -$(DELTREE) bin
  3567. -$(DEL) *$(OEXT) *$(LTOEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  3568. ifneq ($(PPUEXT),.ppu)
  3569. -$(DEL) *.o *.ppu *.a
  3570. endif
  3571. -$(DELTREE) *$(SMARTEXT)
  3572. -$(DEL) fpcmade.* Package*.fpc *.fpm
  3573. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res symbol_order*.fpc
  3574. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  3575. ifdef AOUTEXT
  3576. -$(DEL) *$(AOUTEXT)
  3577. endif
  3578. ifdef DEBUGSYMEXT
  3579. -$(DEL) *$(DEBUGSYMEXT)
  3580. endif
  3581. ifdef LOCALFPMAKEBIN
  3582. -$(DEL) $(LOCALFPMAKEBIN)
  3583. -$(DEL) $(FPMAKEBINOBJ)
  3584. endif
  3585. fpc_distclean: cleanall
  3586. .PHONY: fpc_baseinfo
  3587. override INFORULES+=fpc_baseinfo
  3588. fpc_baseinfo:
  3589. @$(ECHO)
  3590. @$(ECHO) == Package info ==
  3591. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  3592. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  3593. @$(ECHO)
  3594. @$(ECHO) == Configuration info ==
  3595. @$(ECHO)
  3596. @$(ECHO) FPC.......... $(FPC)
  3597. @$(ECHO) FPC Version.. $(FPC_VERSION)
  3598. @$(ECHO) Source CPU... $(CPU_SOURCE)
  3599. @$(ECHO) Target CPU... $(CPU_TARGET)
  3600. @$(ECHO) Source OS.... $(OS_SOURCE)
  3601. @$(ECHO) Target OS.... $(OS_TARGET)
  3602. @$(ECHO) Full Source.. $(FULL_SOURCE)
  3603. @$(ECHO) Full Target.. $(FULL_TARGET)
  3604. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  3605. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  3606. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  3607. @$(ECHO)
  3608. @$(ECHO) == Directory info ==
  3609. @$(ECHO)
  3610. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  3611. @$(ECHO)
  3612. @$(ECHO) Basedir......... $(BASEDIR)
  3613. @$(ECHO) FPCDir.......... $(FPCDIR)
  3614. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  3615. @$(ECHO) UnitsDir........ $(UNITSDIR)
  3616. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  3617. @$(ECHO)
  3618. @$(ECHO) GCC library..... $(GCCLIBDIR)
  3619. @$(ECHO) Other library... $(OTHERLIBDIR)
  3620. @$(ECHO)
  3621. @$(ECHO) == Tools info ==
  3622. @$(ECHO)
  3623. @$(ECHO) As........ $(AS)
  3624. @$(ECHO) Ld........ $(LD)
  3625. @$(ECHO) Ar........ $(AR)
  3626. @$(ECHO) Rc........ $(RC)
  3627. @$(ECHO)
  3628. @$(ECHO) Mv........ $(MVPROG)
  3629. @$(ECHO) Cp........ $(CPPROG)
  3630. @$(ECHO) Rm........ $(RMPROG)
  3631. @$(ECHO) GInstall.. $(GINSTALL)
  3632. @$(ECHO) Echo...... $(ECHO)
  3633. @$(ECHO) Shell..... $(SHELL)
  3634. @$(ECHO) Date...... $(DATE)
  3635. @$(ECHO) FPCMake... $(FPCMAKE)
  3636. @$(ECHO) PPUMove... $(PPUMOVE)
  3637. @$(ECHO) Zip....... $(ZIPPROG)
  3638. @$(ECHO)
  3639. @$(ECHO) == Object info ==
  3640. @$(ECHO)
  3641. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  3642. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  3643. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  3644. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  3645. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  3646. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  3647. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  3648. @$(ECHO)
  3649. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  3650. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  3651. @$(ECHO)
  3652. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  3653. @$(ECHO) Install Files....... $(INSTALL_FILES)
  3654. @$(ECHO)
  3655. @$(ECHO) == Install info ==
  3656. @$(ECHO)
  3657. @$(ECHO) DateStr.............. $(DATESTR)
  3658. @$(ECHO) ZipName.............. $(ZIPNAME)
  3659. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  3660. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  3661. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  3662. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  3663. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  3664. @$(ECHO)
  3665. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  3666. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  3667. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  3668. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  3669. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  3670. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  3671. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  3672. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  3673. @$(ECHO)
  3674. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  3675. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  3676. @$(ECHO)
  3677. .PHONY: fpc_info
  3678. fpc_info: $(INFORULES)
  3679. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  3680. fpc_makefile_dirs
  3681. fpc_makefile:
  3682. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  3683. fpc_makefile_sub1:
  3684. ifdef TARGET_DIRS
  3685. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  3686. endif
  3687. ifdef TARGET_EXAMPLEDIRS
  3688. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  3689. endif
  3690. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  3691. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  3692. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  3693. debug: fpc_debug
  3694. smart: fpc_smart
  3695. release: fpc_release
  3696. units: fpc_units
  3697. examples:
  3698. shared: fpc_shared
  3699. sourceinstall: fpc_sourceinstall
  3700. exampleinstall: fpc_exampleinstall
  3701. distinstall:
  3702. zipinstall:
  3703. zipsourceinstall:
  3704. zipexampleinstall:
  3705. zipdistinstall:
  3706. distclean: fpc_distclean
  3707. cleanall: fpc_cleanall
  3708. info: fpc_info
  3709. makefiles: fpc_makefiles
  3710. .PHONY: debug smart release units examples shared sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall distclean cleanall info makefiles
  3711. ifneq ($(wildcard fpcmake.loc),)
  3712. include fpcmake.loc
  3713. endif
  3714. .NOTPARALLEL:
  3715. .PHONY: compiler_ppuclean all clean install
  3716. compiler_ppuclean:
  3717. $(MAKE) -C $(COMPILERDIR) ppuclean
  3718. all: compiler_ppuclean fpc_all
  3719. clean: cleanall
  3720. install: