Makefile 105 KB

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