Makefile 135 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103
  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 powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-darwin aarch64-win64 aarch64-android aarch64-ios wasm-wasm sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override OS_TARGET_DEFAULT=nds
  104. override CPU_TARGET_DEFAULT=arm
  105. override DEFAULT_FPCDIR=../../../../../..
  106. ifndef FPC
  107. ifdef PP
  108. FPC=$(PP)
  109. endif
  110. endif
  111. ifndef FPC
  112. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  113. ifneq ($(FPCPROG),)
  114. FPCPROG:=$(firstword $(FPCPROG))
  115. ifneq ($(CPU_TARGET),)
  116. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  117. else
  118. FPC:=$(shell $(FPCPROG) -PB)
  119. endif
  120. ifneq ($(findstring Error,$(FPC)),)
  121. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  122. else
  123. ifeq ($(strip $(wildcard $(FPC))),)
  124. FPC:=$(firstword $(FPCPROG))
  125. endif
  126. endif
  127. else
  128. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  129. endif
  130. endif
  131. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  132. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  133. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  134. ifeq ($(FOUNDFPC),)
  135. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  136. ifeq ($(FOUNDFPC),)
  137. $(error Compiler $(FPC) not found)
  138. endif
  139. endif
  140. ifndef FPC_COMPILERINFO
  141. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  142. endif
  143. ifndef FPC_VERSION
  144. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  145. endif
  146. export FPC FPC_VERSION FPC_COMPILERINFO
  147. unexport CHECKDEPEND ALLDEPENDENCIES
  148. ifndef CPU_TARGET
  149. ifdef CPU_TARGET_DEFAULT
  150. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  151. endif
  152. endif
  153. ifndef OS_TARGET
  154. ifdef OS_TARGET_DEFAULT
  155. OS_TARGET=$(OS_TARGET_DEFAULT)
  156. endif
  157. endif
  158. ifndef CPU_SOURCE
  159. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  160. endif
  161. ifndef CPU_TARGET
  162. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  163. endif
  164. ifndef OS_SOURCE
  165. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  166. endif
  167. ifndef OS_TARGET
  168. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  169. endif
  170. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  171. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  172. ifeq ($(CPU_TARGET),armeb)
  173. ARCH=arm
  174. override FPCOPT+=-Cb
  175. else
  176. ifeq ($(CPU_TARGET),armel)
  177. ARCH=arm
  178. override FPCOPT+=-CaEABI
  179. else
  180. ARCH=$(CPU_TARGET)
  181. endif
  182. endif
  183. ifeq ($(FULL_TARGET),arm-embedded)
  184. ifeq ($(SUBARCH),)
  185. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  186. endif
  187. override FPCOPT+=-Cp$(SUBARCH)
  188. endif
  189. ifeq ($(FULL_TARGET),avr-embedded)
  190. ifeq ($(SUBARCH),)
  191. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  192. endif
  193. override FPCOPT+=-Cp$(SUBARCH)
  194. endif
  195. ifeq ($(FULL_TARGET),mipsel-embedded)
  196. ifeq ($(SUBARCH),)
  197. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  198. endif
  199. override FPCOPT+=-Cp$(SUBARCH)
  200. endif
  201. ifeq ($(FULL_TARGET),xtensa-embedded)
  202. ifeq ($(SUBARCH),)
  203. $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  204. endif
  205. override FPCOPT+=-Cp$(SUBARCH)
  206. endif
  207. ifeq ($(FULL_TARGET),xtensa-freertos)
  208. ifeq ($(SUBARCH),)
  209. $(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  210. endif
  211. override FPCOPT+=-Cp$(SUBARCH)
  212. endif
  213. ifeq ($(FULL_TARGET),arm-freertos)
  214. ifeq ($(SUBARCH),)
  215. $(error When compiling for arm-freertos, a sub-architecture (e.g. SUBARCH=armv6m or SUBARCH=armv7em) must be defined)
  216. endif
  217. override FPCOPT+=-Cp$(SUBARCH)
  218. endif
  219. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  220. TARGETSUFFIX=$(OS_TARGET)
  221. SOURCESUFFIX=$(OS_SOURCE)
  222. else
  223. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  224. TARGETSUFFIX=$(OS_TARGET)
  225. else
  226. TARGETSUFFIX=$(FULL_TARGET)
  227. endif
  228. SOURCESUFFIX=$(FULL_SOURCE)
  229. endif
  230. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  231. CROSSCOMPILE=1
  232. endif
  233. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  234. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  235. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  236. endif
  237. endif
  238. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  239. BSDhier=1
  240. endif
  241. ifeq ($(OS_TARGET),linux)
  242. linuxHier=1
  243. endif
  244. ifndef CROSSCOMPILE
  245. BUILDFULLNATIVE=1
  246. export BUILDFULLNATIVE
  247. endif
  248. ifdef BUILDFULLNATIVE
  249. BUILDNATIVE=1
  250. export BUILDNATIVE
  251. endif
  252. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  253. ifdef FPCDIR
  254. override FPCDIR:=$(subst \,/,$(FPCDIR))
  255. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  256. override FPCDIR=wrong
  257. endif
  258. else
  259. override FPCDIR=wrong
  260. endif
  261. ifdef DEFAULT_FPCDIR
  262. ifeq ($(FPCDIR),wrong)
  263. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  264. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  265. override FPCDIR=wrong
  266. endif
  267. endif
  268. endif
  269. ifeq ($(FPCDIR),wrong)
  270. ifdef inUnix
  271. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  272. ifeq ($(wildcard $(FPCDIR)/units),)
  273. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  274. endif
  275. else
  276. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  277. override FPCDIR:=$(FPCDIR)/..
  278. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  279. override FPCDIR:=$(FPCDIR)/..
  280. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  281. override FPCDIR:=$(BASEDIR)
  282. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  283. override FPCDIR=c:/pp
  284. endif
  285. endif
  286. endif
  287. endif
  288. endif
  289. ifndef CROSSBINDIR
  290. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  291. endif
  292. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  293. ifneq ($(findstring $(OS_SOURCE),darwin ios),)
  294. DARWIN2DARWIN=1
  295. endif
  296. endif
  297. ifndef BINUTILSPREFIX
  298. ifndef CROSSBINDIR
  299. ifdef CROSSCOMPILE
  300. ifneq ($(OS_TARGET),msdos)
  301. ifndef DARWIN2DARWIN
  302. ifneq ($(CPU_TARGET),jvm)
  303. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  304. ifeq ($(OS_TARGET),android)
  305. ifeq ($(CPU_TARGET),arm)
  306. BINUTILSPREFIX=arm-linux-androideabi-
  307. else
  308. ifeq ($(CPU_TARGET),i386)
  309. BINUTILSPREFIX=i686-linux-android-
  310. else
  311. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  312. endif
  313. endif
  314. endif
  315. endif
  316. endif
  317. else
  318. BINUTILSPREFIX=$(OS_TARGET)-
  319. endif
  320. endif
  321. endif
  322. endif
  323. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  324. ifeq ($(UNITSDIR),)
  325. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  326. endif
  327. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  328. ifndef FPCFPMAKE
  329. ifdef CROSSCOMPILE
  330. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  331. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  332. ifneq ($(FPCPROG),)
  333. FPCPROG:=$(firstword $(FPCPROG))
  334. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  335. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  336. FPCFPMAKE:=$(firstword $(FPCPROG))
  337. endif
  338. else
  339. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  340. endif
  341. else
  342. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  343. FPMAKE_SKIP_CONFIG=-n
  344. export FPCFPMAKE
  345. export FPMAKE_SKIP_CONFIG
  346. endif
  347. else
  348. FPMAKE_SKIP_CONFIG=-n
  349. FPCFPMAKE=$(FPC)
  350. endif
  351. endif
  352. BIN = bin
  353. BUILD = build
  354. DATA = data
  355. FILESYSTEM = filesystem
  356. GFX = gfx
  357. INC = inc
  358. AUDIO_FILES = $(foreach dir, $(notdir $(wildcard audio/*.*)), $(CURDIR)/audio/$(dir))
  359. GFX_FILES = $(foreach dir, $(GFX), $(notdir $(wildcard $(dir)/*.bmp $(dir)/*.png)))
  360. BIN_FILES = $(foreach dir, $(DATA), $(notdir $(wildcard $(dir)/*)))
  361. GBFS_FILES = $(foreach dir, GBFS, $(notdir $(wildcard $(dir)/*)))
  362. ifeq ($(FULL_TARGET),i386-linux)
  363. override TARGET_PROGRAMS+=audio_modes
  364. endif
  365. ifeq ($(FULL_TARGET),i386-go32v2)
  366. override TARGET_PROGRAMS+=audio_modes
  367. endif
  368. ifeq ($(FULL_TARGET),i386-win32)
  369. override TARGET_PROGRAMS+=audio_modes
  370. endif
  371. ifeq ($(FULL_TARGET),i386-os2)
  372. override TARGET_PROGRAMS+=audio_modes
  373. endif
  374. ifeq ($(FULL_TARGET),i386-freebsd)
  375. override TARGET_PROGRAMS+=audio_modes
  376. endif
  377. ifeq ($(FULL_TARGET),i386-beos)
  378. override TARGET_PROGRAMS+=audio_modes
  379. endif
  380. ifeq ($(FULL_TARGET),i386-haiku)
  381. override TARGET_PROGRAMS+=audio_modes
  382. endif
  383. ifeq ($(FULL_TARGET),i386-netbsd)
  384. override TARGET_PROGRAMS+=audio_modes
  385. endif
  386. ifeq ($(FULL_TARGET),i386-solaris)
  387. override TARGET_PROGRAMS+=audio_modes
  388. endif
  389. ifeq ($(FULL_TARGET),i386-netware)
  390. override TARGET_PROGRAMS+=audio_modes
  391. endif
  392. ifeq ($(FULL_TARGET),i386-openbsd)
  393. override TARGET_PROGRAMS+=audio_modes
  394. endif
  395. ifeq ($(FULL_TARGET),i386-wdosx)
  396. override TARGET_PROGRAMS+=audio_modes
  397. endif
  398. ifeq ($(FULL_TARGET),i386-darwin)
  399. override TARGET_PROGRAMS+=audio_modes
  400. endif
  401. ifeq ($(FULL_TARGET),i386-emx)
  402. override TARGET_PROGRAMS+=audio_modes
  403. endif
  404. ifeq ($(FULL_TARGET),i386-watcom)
  405. override TARGET_PROGRAMS+=audio_modes
  406. endif
  407. ifeq ($(FULL_TARGET),i386-netwlibc)
  408. override TARGET_PROGRAMS+=audio_modes
  409. endif
  410. ifeq ($(FULL_TARGET),i386-wince)
  411. override TARGET_PROGRAMS+=audio_modes
  412. endif
  413. ifeq ($(FULL_TARGET),i386-embedded)
  414. override TARGET_PROGRAMS+=audio_modes
  415. endif
  416. ifeq ($(FULL_TARGET),i386-symbian)
  417. override TARGET_PROGRAMS+=audio_modes
  418. endif
  419. ifeq ($(FULL_TARGET),i386-nativent)
  420. override TARGET_PROGRAMS+=audio_modes
  421. endif
  422. ifeq ($(FULL_TARGET),i386-iphonesim)
  423. override TARGET_PROGRAMS+=audio_modes
  424. endif
  425. ifeq ($(FULL_TARGET),i386-android)
  426. override TARGET_PROGRAMS+=audio_modes
  427. endif
  428. ifeq ($(FULL_TARGET),i386-aros)
  429. override TARGET_PROGRAMS+=audio_modes
  430. endif
  431. ifeq ($(FULL_TARGET),m68k-linux)
  432. override TARGET_PROGRAMS+=audio_modes
  433. endif
  434. ifeq ($(FULL_TARGET),m68k-netbsd)
  435. override TARGET_PROGRAMS+=audio_modes
  436. endif
  437. ifeq ($(FULL_TARGET),m68k-amiga)
  438. override TARGET_PROGRAMS+=audio_modes
  439. endif
  440. ifeq ($(FULL_TARGET),m68k-atari)
  441. override TARGET_PROGRAMS+=audio_modes
  442. endif
  443. ifeq ($(FULL_TARGET),m68k-palmos)
  444. override TARGET_PROGRAMS+=audio_modes
  445. endif
  446. ifeq ($(FULL_TARGET),m68k-macosclassic)
  447. override TARGET_PROGRAMS+=audio_modes
  448. endif
  449. ifeq ($(FULL_TARGET),m68k-embedded)
  450. override TARGET_PROGRAMS+=audio_modes
  451. endif
  452. ifeq ($(FULL_TARGET),powerpc-linux)
  453. override TARGET_PROGRAMS+=audio_modes
  454. endif
  455. ifeq ($(FULL_TARGET),powerpc-netbsd)
  456. override TARGET_PROGRAMS+=audio_modes
  457. endif
  458. ifeq ($(FULL_TARGET),powerpc-amiga)
  459. override TARGET_PROGRAMS+=audio_modes
  460. endif
  461. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  462. override TARGET_PROGRAMS+=audio_modes
  463. endif
  464. ifeq ($(FULL_TARGET),powerpc-darwin)
  465. override TARGET_PROGRAMS+=audio_modes
  466. endif
  467. ifeq ($(FULL_TARGET),powerpc-morphos)
  468. override TARGET_PROGRAMS+=audio_modes
  469. endif
  470. ifeq ($(FULL_TARGET),powerpc-embedded)
  471. override TARGET_PROGRAMS+=audio_modes
  472. endif
  473. ifeq ($(FULL_TARGET),powerpc-wii)
  474. override TARGET_PROGRAMS+=audio_modes
  475. endif
  476. ifeq ($(FULL_TARGET),powerpc-aix)
  477. override TARGET_PROGRAMS+=audio_modes
  478. endif
  479. ifeq ($(FULL_TARGET),sparc-linux)
  480. override TARGET_PROGRAMS+=audio_modes
  481. endif
  482. ifeq ($(FULL_TARGET),sparc-netbsd)
  483. override TARGET_PROGRAMS+=audio_modes
  484. endif
  485. ifeq ($(FULL_TARGET),sparc-solaris)
  486. override TARGET_PROGRAMS+=audio_modes
  487. endif
  488. ifeq ($(FULL_TARGET),sparc-embedded)
  489. override TARGET_PROGRAMS+=audio_modes
  490. endif
  491. ifeq ($(FULL_TARGET),x86_64-linux)
  492. override TARGET_PROGRAMS+=audio_modes
  493. endif
  494. ifeq ($(FULL_TARGET),x86_64-freebsd)
  495. override TARGET_PROGRAMS+=audio_modes
  496. endif
  497. ifeq ($(FULL_TARGET),x86_64-haiku)
  498. override TARGET_PROGRAMS+=audio_modes
  499. endif
  500. ifeq ($(FULL_TARGET),x86_64-netbsd)
  501. override TARGET_PROGRAMS+=audio_modes
  502. endif
  503. ifeq ($(FULL_TARGET),x86_64-solaris)
  504. override TARGET_PROGRAMS+=audio_modes
  505. endif
  506. ifeq ($(FULL_TARGET),x86_64-openbsd)
  507. override TARGET_PROGRAMS+=audio_modes
  508. endif
  509. ifeq ($(FULL_TARGET),x86_64-darwin)
  510. override TARGET_PROGRAMS+=audio_modes
  511. endif
  512. ifeq ($(FULL_TARGET),x86_64-win64)
  513. override TARGET_PROGRAMS+=audio_modes
  514. endif
  515. ifeq ($(FULL_TARGET),x86_64-embedded)
  516. override TARGET_PROGRAMS+=audio_modes
  517. endif
  518. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  519. override TARGET_PROGRAMS+=audio_modes
  520. endif
  521. ifeq ($(FULL_TARGET),x86_64-android)
  522. override TARGET_PROGRAMS+=audio_modes
  523. endif
  524. ifeq ($(FULL_TARGET),x86_64-aros)
  525. override TARGET_PROGRAMS+=audio_modes
  526. endif
  527. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  528. override TARGET_PROGRAMS+=audio_modes
  529. endif
  530. ifeq ($(FULL_TARGET),arm-linux)
  531. override TARGET_PROGRAMS+=audio_modes
  532. endif
  533. ifeq ($(FULL_TARGET),arm-netbsd)
  534. override TARGET_PROGRAMS+=audio_modes
  535. endif
  536. ifeq ($(FULL_TARGET),arm-palmos)
  537. override TARGET_PROGRAMS+=audio_modes
  538. endif
  539. ifeq ($(FULL_TARGET),arm-wince)
  540. override TARGET_PROGRAMS+=audio_modes
  541. endif
  542. ifeq ($(FULL_TARGET),arm-gba)
  543. override TARGET_PROGRAMS+=audio_modes
  544. endif
  545. ifeq ($(FULL_TARGET),arm-nds)
  546. override TARGET_PROGRAMS+=audio_modes
  547. endif
  548. ifeq ($(FULL_TARGET),arm-embedded)
  549. override TARGET_PROGRAMS+=audio_modes
  550. endif
  551. ifeq ($(FULL_TARGET),arm-symbian)
  552. override TARGET_PROGRAMS+=audio_modes
  553. endif
  554. ifeq ($(FULL_TARGET),arm-android)
  555. override TARGET_PROGRAMS+=audio_modes
  556. endif
  557. ifeq ($(FULL_TARGET),arm-aros)
  558. override TARGET_PROGRAMS+=audio_modes
  559. endif
  560. ifeq ($(FULL_TARGET),arm-freertos)
  561. override TARGET_PROGRAMS+=audio_modes
  562. endif
  563. ifeq ($(FULL_TARGET),arm-ios)
  564. override TARGET_PROGRAMS+=audio_modes
  565. endif
  566. ifeq ($(FULL_TARGET),powerpc64-linux)
  567. override TARGET_PROGRAMS+=audio_modes
  568. endif
  569. ifeq ($(FULL_TARGET),powerpc64-darwin)
  570. override TARGET_PROGRAMS+=audio_modes
  571. endif
  572. ifeq ($(FULL_TARGET),powerpc64-embedded)
  573. override TARGET_PROGRAMS+=audio_modes
  574. endif
  575. ifeq ($(FULL_TARGET),powerpc64-aix)
  576. override TARGET_PROGRAMS+=audio_modes
  577. endif
  578. ifeq ($(FULL_TARGET),avr-embedded)
  579. override TARGET_PROGRAMS+=audio_modes
  580. endif
  581. ifeq ($(FULL_TARGET),armeb-linux)
  582. override TARGET_PROGRAMS+=audio_modes
  583. endif
  584. ifeq ($(FULL_TARGET),armeb-embedded)
  585. override TARGET_PROGRAMS+=audio_modes
  586. endif
  587. ifeq ($(FULL_TARGET),mips-linux)
  588. override TARGET_PROGRAMS+=audio_modes
  589. endif
  590. ifeq ($(FULL_TARGET),mipsel-linux)
  591. override TARGET_PROGRAMS+=audio_modes
  592. endif
  593. ifeq ($(FULL_TARGET),mipsel-embedded)
  594. override TARGET_PROGRAMS+=audio_modes
  595. endif
  596. ifeq ($(FULL_TARGET),mipsel-android)
  597. override TARGET_PROGRAMS+=audio_modes
  598. endif
  599. ifeq ($(FULL_TARGET),mips64el-linux)
  600. override TARGET_PROGRAMS+=audio_modes
  601. endif
  602. ifeq ($(FULL_TARGET),jvm-java)
  603. override TARGET_PROGRAMS+=audio_modes
  604. endif
  605. ifeq ($(FULL_TARGET),jvm-android)
  606. override TARGET_PROGRAMS+=audio_modes
  607. endif
  608. ifeq ($(FULL_TARGET),i8086-embedded)
  609. override TARGET_PROGRAMS+=audio_modes
  610. endif
  611. ifeq ($(FULL_TARGET),i8086-msdos)
  612. override TARGET_PROGRAMS+=audio_modes
  613. endif
  614. ifeq ($(FULL_TARGET),i8086-win16)
  615. override TARGET_PROGRAMS+=audio_modes
  616. endif
  617. ifeq ($(FULL_TARGET),aarch64-linux)
  618. override TARGET_PROGRAMS+=audio_modes
  619. endif
  620. ifeq ($(FULL_TARGET),aarch64-darwin)
  621. override TARGET_PROGRAMS+=audio_modes
  622. endif
  623. ifeq ($(FULL_TARGET),aarch64-win64)
  624. override TARGET_PROGRAMS+=audio_modes
  625. endif
  626. ifeq ($(FULL_TARGET),aarch64-android)
  627. override TARGET_PROGRAMS+=audio_modes
  628. endif
  629. ifeq ($(FULL_TARGET),aarch64-ios)
  630. override TARGET_PROGRAMS+=audio_modes
  631. endif
  632. ifeq ($(FULL_TARGET),wasm-wasm)
  633. override TARGET_PROGRAMS+=audio_modes
  634. endif
  635. ifeq ($(FULL_TARGET),sparc64-linux)
  636. override TARGET_PROGRAMS+=audio_modes
  637. endif
  638. ifeq ($(FULL_TARGET),riscv32-linux)
  639. override TARGET_PROGRAMS+=audio_modes
  640. endif
  641. ifeq ($(FULL_TARGET),riscv32-embedded)
  642. override TARGET_PROGRAMS+=audio_modes
  643. endif
  644. ifeq ($(FULL_TARGET),riscv64-linux)
  645. override TARGET_PROGRAMS+=audio_modes
  646. endif
  647. ifeq ($(FULL_TARGET),riscv64-embedded)
  648. override TARGET_PROGRAMS+=audio_modes
  649. endif
  650. ifeq ($(FULL_TARGET),xtensa-linux)
  651. override TARGET_PROGRAMS+=audio_modes
  652. endif
  653. ifeq ($(FULL_TARGET),xtensa-embedded)
  654. override TARGET_PROGRAMS+=audio_modes
  655. endif
  656. ifeq ($(FULL_TARGET),xtensa-freertos)
  657. override TARGET_PROGRAMS+=audio_modes
  658. endif
  659. ifeq ($(FULL_TARGET),z80-embedded)
  660. override TARGET_PROGRAMS+=audio_modes
  661. endif
  662. ifeq ($(FULL_TARGET),z80-zxspectrum)
  663. override TARGET_PROGRAMS+=audio_modes
  664. endif
  665. ifeq ($(FULL_TARGET),z80-msxdos)
  666. override TARGET_PROGRAMS+=audio_modes
  667. endif
  668. ifeq ($(FULL_TARGET),i386-linux)
  669. override TARGET_LOADERS+=soundbank.bin
  670. endif
  671. ifeq ($(FULL_TARGET),i386-go32v2)
  672. override TARGET_LOADERS+=soundbank.bin
  673. endif
  674. ifeq ($(FULL_TARGET),i386-win32)
  675. override TARGET_LOADERS+=soundbank.bin
  676. endif
  677. ifeq ($(FULL_TARGET),i386-os2)
  678. override TARGET_LOADERS+=soundbank.bin
  679. endif
  680. ifeq ($(FULL_TARGET),i386-freebsd)
  681. override TARGET_LOADERS+=soundbank.bin
  682. endif
  683. ifeq ($(FULL_TARGET),i386-beos)
  684. override TARGET_LOADERS+=soundbank.bin
  685. endif
  686. ifeq ($(FULL_TARGET),i386-haiku)
  687. override TARGET_LOADERS+=soundbank.bin
  688. endif
  689. ifeq ($(FULL_TARGET),i386-netbsd)
  690. override TARGET_LOADERS+=soundbank.bin
  691. endif
  692. ifeq ($(FULL_TARGET),i386-solaris)
  693. override TARGET_LOADERS+=soundbank.bin
  694. endif
  695. ifeq ($(FULL_TARGET),i386-netware)
  696. override TARGET_LOADERS+=soundbank.bin
  697. endif
  698. ifeq ($(FULL_TARGET),i386-openbsd)
  699. override TARGET_LOADERS+=soundbank.bin
  700. endif
  701. ifeq ($(FULL_TARGET),i386-wdosx)
  702. override TARGET_LOADERS+=soundbank.bin
  703. endif
  704. ifeq ($(FULL_TARGET),i386-darwin)
  705. override TARGET_LOADERS+=soundbank.bin
  706. endif
  707. ifeq ($(FULL_TARGET),i386-emx)
  708. override TARGET_LOADERS+=soundbank.bin
  709. endif
  710. ifeq ($(FULL_TARGET),i386-watcom)
  711. override TARGET_LOADERS+=soundbank.bin
  712. endif
  713. ifeq ($(FULL_TARGET),i386-netwlibc)
  714. override TARGET_LOADERS+=soundbank.bin
  715. endif
  716. ifeq ($(FULL_TARGET),i386-wince)
  717. override TARGET_LOADERS+=soundbank.bin
  718. endif
  719. ifeq ($(FULL_TARGET),i386-embedded)
  720. override TARGET_LOADERS+=soundbank.bin
  721. endif
  722. ifeq ($(FULL_TARGET),i386-symbian)
  723. override TARGET_LOADERS+=soundbank.bin
  724. endif
  725. ifeq ($(FULL_TARGET),i386-nativent)
  726. override TARGET_LOADERS+=soundbank.bin
  727. endif
  728. ifeq ($(FULL_TARGET),i386-iphonesim)
  729. override TARGET_LOADERS+=soundbank.bin
  730. endif
  731. ifeq ($(FULL_TARGET),i386-android)
  732. override TARGET_LOADERS+=soundbank.bin
  733. endif
  734. ifeq ($(FULL_TARGET),i386-aros)
  735. override TARGET_LOADERS+=soundbank.bin
  736. endif
  737. ifeq ($(FULL_TARGET),m68k-linux)
  738. override TARGET_LOADERS+=soundbank.bin
  739. endif
  740. ifeq ($(FULL_TARGET),m68k-netbsd)
  741. override TARGET_LOADERS+=soundbank.bin
  742. endif
  743. ifeq ($(FULL_TARGET),m68k-amiga)
  744. override TARGET_LOADERS+=soundbank.bin
  745. endif
  746. ifeq ($(FULL_TARGET),m68k-atari)
  747. override TARGET_LOADERS+=soundbank.bin
  748. endif
  749. ifeq ($(FULL_TARGET),m68k-palmos)
  750. override TARGET_LOADERS+=soundbank.bin
  751. endif
  752. ifeq ($(FULL_TARGET),m68k-macosclassic)
  753. override TARGET_LOADERS+=soundbank.bin
  754. endif
  755. ifeq ($(FULL_TARGET),m68k-embedded)
  756. override TARGET_LOADERS+=soundbank.bin
  757. endif
  758. ifeq ($(FULL_TARGET),powerpc-linux)
  759. override TARGET_LOADERS+=soundbank.bin
  760. endif
  761. ifeq ($(FULL_TARGET),powerpc-netbsd)
  762. override TARGET_LOADERS+=soundbank.bin
  763. endif
  764. ifeq ($(FULL_TARGET),powerpc-amiga)
  765. override TARGET_LOADERS+=soundbank.bin
  766. endif
  767. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  768. override TARGET_LOADERS+=soundbank.bin
  769. endif
  770. ifeq ($(FULL_TARGET),powerpc-darwin)
  771. override TARGET_LOADERS+=soundbank.bin
  772. endif
  773. ifeq ($(FULL_TARGET),powerpc-morphos)
  774. override TARGET_LOADERS+=soundbank.bin
  775. endif
  776. ifeq ($(FULL_TARGET),powerpc-embedded)
  777. override TARGET_LOADERS+=soundbank.bin
  778. endif
  779. ifeq ($(FULL_TARGET),powerpc-wii)
  780. override TARGET_LOADERS+=soundbank.bin
  781. endif
  782. ifeq ($(FULL_TARGET),powerpc-aix)
  783. override TARGET_LOADERS+=soundbank.bin
  784. endif
  785. ifeq ($(FULL_TARGET),sparc-linux)
  786. override TARGET_LOADERS+=soundbank.bin
  787. endif
  788. ifeq ($(FULL_TARGET),sparc-netbsd)
  789. override TARGET_LOADERS+=soundbank.bin
  790. endif
  791. ifeq ($(FULL_TARGET),sparc-solaris)
  792. override TARGET_LOADERS+=soundbank.bin
  793. endif
  794. ifeq ($(FULL_TARGET),sparc-embedded)
  795. override TARGET_LOADERS+=soundbank.bin
  796. endif
  797. ifeq ($(FULL_TARGET),x86_64-linux)
  798. override TARGET_LOADERS+=soundbank.bin
  799. endif
  800. ifeq ($(FULL_TARGET),x86_64-freebsd)
  801. override TARGET_LOADERS+=soundbank.bin
  802. endif
  803. ifeq ($(FULL_TARGET),x86_64-haiku)
  804. override TARGET_LOADERS+=soundbank.bin
  805. endif
  806. ifeq ($(FULL_TARGET),x86_64-netbsd)
  807. override TARGET_LOADERS+=soundbank.bin
  808. endif
  809. ifeq ($(FULL_TARGET),x86_64-solaris)
  810. override TARGET_LOADERS+=soundbank.bin
  811. endif
  812. ifeq ($(FULL_TARGET),x86_64-openbsd)
  813. override TARGET_LOADERS+=soundbank.bin
  814. endif
  815. ifeq ($(FULL_TARGET),x86_64-darwin)
  816. override TARGET_LOADERS+=soundbank.bin
  817. endif
  818. ifeq ($(FULL_TARGET),x86_64-win64)
  819. override TARGET_LOADERS+=soundbank.bin
  820. endif
  821. ifeq ($(FULL_TARGET),x86_64-embedded)
  822. override TARGET_LOADERS+=soundbank.bin
  823. endif
  824. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  825. override TARGET_LOADERS+=soundbank.bin
  826. endif
  827. ifeq ($(FULL_TARGET),x86_64-android)
  828. override TARGET_LOADERS+=soundbank.bin
  829. endif
  830. ifeq ($(FULL_TARGET),x86_64-aros)
  831. override TARGET_LOADERS+=soundbank.bin
  832. endif
  833. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  834. override TARGET_LOADERS+=soundbank.bin
  835. endif
  836. ifeq ($(FULL_TARGET),arm-linux)
  837. override TARGET_LOADERS+=soundbank.bin
  838. endif
  839. ifeq ($(FULL_TARGET),arm-netbsd)
  840. override TARGET_LOADERS+=soundbank.bin
  841. endif
  842. ifeq ($(FULL_TARGET),arm-palmos)
  843. override TARGET_LOADERS+=soundbank.bin
  844. endif
  845. ifeq ($(FULL_TARGET),arm-wince)
  846. override TARGET_LOADERS+=soundbank.bin
  847. endif
  848. ifeq ($(FULL_TARGET),arm-gba)
  849. override TARGET_LOADERS+=soundbank.bin
  850. endif
  851. ifeq ($(FULL_TARGET),arm-nds)
  852. override TARGET_LOADERS+=soundbank.bin
  853. endif
  854. ifeq ($(FULL_TARGET),arm-embedded)
  855. override TARGET_LOADERS+=soundbank.bin
  856. endif
  857. ifeq ($(FULL_TARGET),arm-symbian)
  858. override TARGET_LOADERS+=soundbank.bin
  859. endif
  860. ifeq ($(FULL_TARGET),arm-android)
  861. override TARGET_LOADERS+=soundbank.bin
  862. endif
  863. ifeq ($(FULL_TARGET),arm-aros)
  864. override TARGET_LOADERS+=soundbank.bin
  865. endif
  866. ifeq ($(FULL_TARGET),arm-freertos)
  867. override TARGET_LOADERS+=soundbank.bin
  868. endif
  869. ifeq ($(FULL_TARGET),arm-ios)
  870. override TARGET_LOADERS+=soundbank.bin
  871. endif
  872. ifeq ($(FULL_TARGET),powerpc64-linux)
  873. override TARGET_LOADERS+=soundbank.bin
  874. endif
  875. ifeq ($(FULL_TARGET),powerpc64-darwin)
  876. override TARGET_LOADERS+=soundbank.bin
  877. endif
  878. ifeq ($(FULL_TARGET),powerpc64-embedded)
  879. override TARGET_LOADERS+=soundbank.bin
  880. endif
  881. ifeq ($(FULL_TARGET),powerpc64-aix)
  882. override TARGET_LOADERS+=soundbank.bin
  883. endif
  884. ifeq ($(FULL_TARGET),avr-embedded)
  885. override TARGET_LOADERS+=soundbank.bin
  886. endif
  887. ifeq ($(FULL_TARGET),armeb-linux)
  888. override TARGET_LOADERS+=soundbank.bin
  889. endif
  890. ifeq ($(FULL_TARGET),armeb-embedded)
  891. override TARGET_LOADERS+=soundbank.bin
  892. endif
  893. ifeq ($(FULL_TARGET),mips-linux)
  894. override TARGET_LOADERS+=soundbank.bin
  895. endif
  896. ifeq ($(FULL_TARGET),mipsel-linux)
  897. override TARGET_LOADERS+=soundbank.bin
  898. endif
  899. ifeq ($(FULL_TARGET),mipsel-embedded)
  900. override TARGET_LOADERS+=soundbank.bin
  901. endif
  902. ifeq ($(FULL_TARGET),mipsel-android)
  903. override TARGET_LOADERS+=soundbank.bin
  904. endif
  905. ifeq ($(FULL_TARGET),mips64el-linux)
  906. override TARGET_LOADERS+=soundbank.bin
  907. endif
  908. ifeq ($(FULL_TARGET),jvm-java)
  909. override TARGET_LOADERS+=soundbank.bin
  910. endif
  911. ifeq ($(FULL_TARGET),jvm-android)
  912. override TARGET_LOADERS+=soundbank.bin
  913. endif
  914. ifeq ($(FULL_TARGET),i8086-embedded)
  915. override TARGET_LOADERS+=soundbank.bin
  916. endif
  917. ifeq ($(FULL_TARGET),i8086-msdos)
  918. override TARGET_LOADERS+=soundbank.bin
  919. endif
  920. ifeq ($(FULL_TARGET),i8086-win16)
  921. override TARGET_LOADERS+=soundbank.bin
  922. endif
  923. ifeq ($(FULL_TARGET),aarch64-linux)
  924. override TARGET_LOADERS+=soundbank.bin
  925. endif
  926. ifeq ($(FULL_TARGET),aarch64-darwin)
  927. override TARGET_LOADERS+=soundbank.bin
  928. endif
  929. ifeq ($(FULL_TARGET),aarch64-win64)
  930. override TARGET_LOADERS+=soundbank.bin
  931. endif
  932. ifeq ($(FULL_TARGET),aarch64-android)
  933. override TARGET_LOADERS+=soundbank.bin
  934. endif
  935. ifeq ($(FULL_TARGET),aarch64-ios)
  936. override TARGET_LOADERS+=soundbank.bin
  937. endif
  938. ifeq ($(FULL_TARGET),wasm-wasm)
  939. override TARGET_LOADERS+=soundbank.bin
  940. endif
  941. ifeq ($(FULL_TARGET),sparc64-linux)
  942. override TARGET_LOADERS+=soundbank.bin
  943. endif
  944. ifeq ($(FULL_TARGET),riscv32-linux)
  945. override TARGET_LOADERS+=soundbank.bin
  946. endif
  947. ifeq ($(FULL_TARGET),riscv32-embedded)
  948. override TARGET_LOADERS+=soundbank.bin
  949. endif
  950. ifeq ($(FULL_TARGET),riscv64-linux)
  951. override TARGET_LOADERS+=soundbank.bin
  952. endif
  953. ifeq ($(FULL_TARGET),riscv64-embedded)
  954. override TARGET_LOADERS+=soundbank.bin
  955. endif
  956. ifeq ($(FULL_TARGET),xtensa-linux)
  957. override TARGET_LOADERS+=soundbank.bin
  958. endif
  959. ifeq ($(FULL_TARGET),xtensa-embedded)
  960. override TARGET_LOADERS+=soundbank.bin
  961. endif
  962. ifeq ($(FULL_TARGET),xtensa-freertos)
  963. override TARGET_LOADERS+=soundbank.bin
  964. endif
  965. ifeq ($(FULL_TARGET),z80-embedded)
  966. override TARGET_LOADERS+=soundbank.bin
  967. endif
  968. ifeq ($(FULL_TARGET),z80-zxspectrum)
  969. override TARGET_LOADERS+=soundbank.bin
  970. endif
  971. ifeq ($(FULL_TARGET),z80-msxdos)
  972. override TARGET_LOADERS+=soundbank.bin
  973. endif
  974. ifeq ($(FULL_TARGET),i386-linux)
  975. override CLEAN_UNITS+=*
  976. endif
  977. ifeq ($(FULL_TARGET),i386-go32v2)
  978. override CLEAN_UNITS+=*
  979. endif
  980. ifeq ($(FULL_TARGET),i386-win32)
  981. override CLEAN_UNITS+=*
  982. endif
  983. ifeq ($(FULL_TARGET),i386-os2)
  984. override CLEAN_UNITS+=*
  985. endif
  986. ifeq ($(FULL_TARGET),i386-freebsd)
  987. override CLEAN_UNITS+=*
  988. endif
  989. ifeq ($(FULL_TARGET),i386-beos)
  990. override CLEAN_UNITS+=*
  991. endif
  992. ifeq ($(FULL_TARGET),i386-haiku)
  993. override CLEAN_UNITS+=*
  994. endif
  995. ifeq ($(FULL_TARGET),i386-netbsd)
  996. override CLEAN_UNITS+=*
  997. endif
  998. ifeq ($(FULL_TARGET),i386-solaris)
  999. override CLEAN_UNITS+=*
  1000. endif
  1001. ifeq ($(FULL_TARGET),i386-netware)
  1002. override CLEAN_UNITS+=*
  1003. endif
  1004. ifeq ($(FULL_TARGET),i386-openbsd)
  1005. override CLEAN_UNITS+=*
  1006. endif
  1007. ifeq ($(FULL_TARGET),i386-wdosx)
  1008. override CLEAN_UNITS+=*
  1009. endif
  1010. ifeq ($(FULL_TARGET),i386-darwin)
  1011. override CLEAN_UNITS+=*
  1012. endif
  1013. ifeq ($(FULL_TARGET),i386-emx)
  1014. override CLEAN_UNITS+=*
  1015. endif
  1016. ifeq ($(FULL_TARGET),i386-watcom)
  1017. override CLEAN_UNITS+=*
  1018. endif
  1019. ifeq ($(FULL_TARGET),i386-netwlibc)
  1020. override CLEAN_UNITS+=*
  1021. endif
  1022. ifeq ($(FULL_TARGET),i386-wince)
  1023. override CLEAN_UNITS+=*
  1024. endif
  1025. ifeq ($(FULL_TARGET),i386-embedded)
  1026. override CLEAN_UNITS+=*
  1027. endif
  1028. ifeq ($(FULL_TARGET),i386-symbian)
  1029. override CLEAN_UNITS+=*
  1030. endif
  1031. ifeq ($(FULL_TARGET),i386-nativent)
  1032. override CLEAN_UNITS+=*
  1033. endif
  1034. ifeq ($(FULL_TARGET),i386-iphonesim)
  1035. override CLEAN_UNITS+=*
  1036. endif
  1037. ifeq ($(FULL_TARGET),i386-android)
  1038. override CLEAN_UNITS+=*
  1039. endif
  1040. ifeq ($(FULL_TARGET),i386-aros)
  1041. override CLEAN_UNITS+=*
  1042. endif
  1043. ifeq ($(FULL_TARGET),m68k-linux)
  1044. override CLEAN_UNITS+=*
  1045. endif
  1046. ifeq ($(FULL_TARGET),m68k-netbsd)
  1047. override CLEAN_UNITS+=*
  1048. endif
  1049. ifeq ($(FULL_TARGET),m68k-amiga)
  1050. override CLEAN_UNITS+=*
  1051. endif
  1052. ifeq ($(FULL_TARGET),m68k-atari)
  1053. override CLEAN_UNITS+=*
  1054. endif
  1055. ifeq ($(FULL_TARGET),m68k-palmos)
  1056. override CLEAN_UNITS+=*
  1057. endif
  1058. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1059. override CLEAN_UNITS+=*
  1060. endif
  1061. ifeq ($(FULL_TARGET),m68k-embedded)
  1062. override CLEAN_UNITS+=*
  1063. endif
  1064. ifeq ($(FULL_TARGET),powerpc-linux)
  1065. override CLEAN_UNITS+=*
  1066. endif
  1067. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1068. override CLEAN_UNITS+=*
  1069. endif
  1070. ifeq ($(FULL_TARGET),powerpc-amiga)
  1071. override CLEAN_UNITS+=*
  1072. endif
  1073. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1074. override CLEAN_UNITS+=*
  1075. endif
  1076. ifeq ($(FULL_TARGET),powerpc-darwin)
  1077. override CLEAN_UNITS+=*
  1078. endif
  1079. ifeq ($(FULL_TARGET),powerpc-morphos)
  1080. override CLEAN_UNITS+=*
  1081. endif
  1082. ifeq ($(FULL_TARGET),powerpc-embedded)
  1083. override CLEAN_UNITS+=*
  1084. endif
  1085. ifeq ($(FULL_TARGET),powerpc-wii)
  1086. override CLEAN_UNITS+=*
  1087. endif
  1088. ifeq ($(FULL_TARGET),powerpc-aix)
  1089. override CLEAN_UNITS+=*
  1090. endif
  1091. ifeq ($(FULL_TARGET),sparc-linux)
  1092. override CLEAN_UNITS+=*
  1093. endif
  1094. ifeq ($(FULL_TARGET),sparc-netbsd)
  1095. override CLEAN_UNITS+=*
  1096. endif
  1097. ifeq ($(FULL_TARGET),sparc-solaris)
  1098. override CLEAN_UNITS+=*
  1099. endif
  1100. ifeq ($(FULL_TARGET),sparc-embedded)
  1101. override CLEAN_UNITS+=*
  1102. endif
  1103. ifeq ($(FULL_TARGET),x86_64-linux)
  1104. override CLEAN_UNITS+=*
  1105. endif
  1106. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1107. override CLEAN_UNITS+=*
  1108. endif
  1109. ifeq ($(FULL_TARGET),x86_64-haiku)
  1110. override CLEAN_UNITS+=*
  1111. endif
  1112. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1113. override CLEAN_UNITS+=*
  1114. endif
  1115. ifeq ($(FULL_TARGET),x86_64-solaris)
  1116. override CLEAN_UNITS+=*
  1117. endif
  1118. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1119. override CLEAN_UNITS+=*
  1120. endif
  1121. ifeq ($(FULL_TARGET),x86_64-darwin)
  1122. override CLEAN_UNITS+=*
  1123. endif
  1124. ifeq ($(FULL_TARGET),x86_64-win64)
  1125. override CLEAN_UNITS+=*
  1126. endif
  1127. ifeq ($(FULL_TARGET),x86_64-embedded)
  1128. override CLEAN_UNITS+=*
  1129. endif
  1130. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1131. override CLEAN_UNITS+=*
  1132. endif
  1133. ifeq ($(FULL_TARGET),x86_64-android)
  1134. override CLEAN_UNITS+=*
  1135. endif
  1136. ifeq ($(FULL_TARGET),x86_64-aros)
  1137. override CLEAN_UNITS+=*
  1138. endif
  1139. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1140. override CLEAN_UNITS+=*
  1141. endif
  1142. ifeq ($(FULL_TARGET),arm-linux)
  1143. override CLEAN_UNITS+=*
  1144. endif
  1145. ifeq ($(FULL_TARGET),arm-netbsd)
  1146. override CLEAN_UNITS+=*
  1147. endif
  1148. ifeq ($(FULL_TARGET),arm-palmos)
  1149. override CLEAN_UNITS+=*
  1150. endif
  1151. ifeq ($(FULL_TARGET),arm-wince)
  1152. override CLEAN_UNITS+=*
  1153. endif
  1154. ifeq ($(FULL_TARGET),arm-gba)
  1155. override CLEAN_UNITS+=*
  1156. endif
  1157. ifeq ($(FULL_TARGET),arm-nds)
  1158. override CLEAN_UNITS+=*
  1159. endif
  1160. ifeq ($(FULL_TARGET),arm-embedded)
  1161. override CLEAN_UNITS+=*
  1162. endif
  1163. ifeq ($(FULL_TARGET),arm-symbian)
  1164. override CLEAN_UNITS+=*
  1165. endif
  1166. ifeq ($(FULL_TARGET),arm-android)
  1167. override CLEAN_UNITS+=*
  1168. endif
  1169. ifeq ($(FULL_TARGET),arm-aros)
  1170. override CLEAN_UNITS+=*
  1171. endif
  1172. ifeq ($(FULL_TARGET),arm-freertos)
  1173. override CLEAN_UNITS+=*
  1174. endif
  1175. ifeq ($(FULL_TARGET),arm-ios)
  1176. override CLEAN_UNITS+=*
  1177. endif
  1178. ifeq ($(FULL_TARGET),powerpc64-linux)
  1179. override CLEAN_UNITS+=*
  1180. endif
  1181. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1182. override CLEAN_UNITS+=*
  1183. endif
  1184. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1185. override CLEAN_UNITS+=*
  1186. endif
  1187. ifeq ($(FULL_TARGET),powerpc64-aix)
  1188. override CLEAN_UNITS+=*
  1189. endif
  1190. ifeq ($(FULL_TARGET),avr-embedded)
  1191. override CLEAN_UNITS+=*
  1192. endif
  1193. ifeq ($(FULL_TARGET),armeb-linux)
  1194. override CLEAN_UNITS+=*
  1195. endif
  1196. ifeq ($(FULL_TARGET),armeb-embedded)
  1197. override CLEAN_UNITS+=*
  1198. endif
  1199. ifeq ($(FULL_TARGET),mips-linux)
  1200. override CLEAN_UNITS+=*
  1201. endif
  1202. ifeq ($(FULL_TARGET),mipsel-linux)
  1203. override CLEAN_UNITS+=*
  1204. endif
  1205. ifeq ($(FULL_TARGET),mipsel-embedded)
  1206. override CLEAN_UNITS+=*
  1207. endif
  1208. ifeq ($(FULL_TARGET),mipsel-android)
  1209. override CLEAN_UNITS+=*
  1210. endif
  1211. ifeq ($(FULL_TARGET),mips64el-linux)
  1212. override CLEAN_UNITS+=*
  1213. endif
  1214. ifeq ($(FULL_TARGET),jvm-java)
  1215. override CLEAN_UNITS+=*
  1216. endif
  1217. ifeq ($(FULL_TARGET),jvm-android)
  1218. override CLEAN_UNITS+=*
  1219. endif
  1220. ifeq ($(FULL_TARGET),i8086-embedded)
  1221. override CLEAN_UNITS+=*
  1222. endif
  1223. ifeq ($(FULL_TARGET),i8086-msdos)
  1224. override CLEAN_UNITS+=*
  1225. endif
  1226. ifeq ($(FULL_TARGET),i8086-win16)
  1227. override CLEAN_UNITS+=*
  1228. endif
  1229. ifeq ($(FULL_TARGET),aarch64-linux)
  1230. override CLEAN_UNITS+=*
  1231. endif
  1232. ifeq ($(FULL_TARGET),aarch64-darwin)
  1233. override CLEAN_UNITS+=*
  1234. endif
  1235. ifeq ($(FULL_TARGET),aarch64-win64)
  1236. override CLEAN_UNITS+=*
  1237. endif
  1238. ifeq ($(FULL_TARGET),aarch64-android)
  1239. override CLEAN_UNITS+=*
  1240. endif
  1241. ifeq ($(FULL_TARGET),aarch64-ios)
  1242. override CLEAN_UNITS+=*
  1243. endif
  1244. ifeq ($(FULL_TARGET),wasm-wasm)
  1245. override CLEAN_UNITS+=*
  1246. endif
  1247. ifeq ($(FULL_TARGET),sparc64-linux)
  1248. override CLEAN_UNITS+=*
  1249. endif
  1250. ifeq ($(FULL_TARGET),riscv32-linux)
  1251. override CLEAN_UNITS+=*
  1252. endif
  1253. ifeq ($(FULL_TARGET),riscv32-embedded)
  1254. override CLEAN_UNITS+=*
  1255. endif
  1256. ifeq ($(FULL_TARGET),riscv64-linux)
  1257. override CLEAN_UNITS+=*
  1258. endif
  1259. ifeq ($(FULL_TARGET),riscv64-embedded)
  1260. override CLEAN_UNITS+=*
  1261. endif
  1262. ifeq ($(FULL_TARGET),xtensa-linux)
  1263. override CLEAN_UNITS+=*
  1264. endif
  1265. ifeq ($(FULL_TARGET),xtensa-embedded)
  1266. override CLEAN_UNITS+=*
  1267. endif
  1268. ifeq ($(FULL_TARGET),xtensa-freertos)
  1269. override CLEAN_UNITS+=*
  1270. endif
  1271. ifeq ($(FULL_TARGET),z80-embedded)
  1272. override CLEAN_UNITS+=*
  1273. endif
  1274. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1275. override CLEAN_UNITS+=*
  1276. endif
  1277. ifeq ($(FULL_TARGET),z80-msxdos)
  1278. override CLEAN_UNITS+=*
  1279. endif
  1280. ifeq ($(FULL_TARGET),i386-linux)
  1281. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1282. endif
  1283. ifeq ($(FULL_TARGET),i386-go32v2)
  1284. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1285. endif
  1286. ifeq ($(FULL_TARGET),i386-win32)
  1287. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1288. endif
  1289. ifeq ($(FULL_TARGET),i386-os2)
  1290. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1291. endif
  1292. ifeq ($(FULL_TARGET),i386-freebsd)
  1293. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1294. endif
  1295. ifeq ($(FULL_TARGET),i386-beos)
  1296. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1297. endif
  1298. ifeq ($(FULL_TARGET),i386-haiku)
  1299. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1300. endif
  1301. ifeq ($(FULL_TARGET),i386-netbsd)
  1302. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1303. endif
  1304. ifeq ($(FULL_TARGET),i386-solaris)
  1305. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1306. endif
  1307. ifeq ($(FULL_TARGET),i386-netware)
  1308. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1309. endif
  1310. ifeq ($(FULL_TARGET),i386-openbsd)
  1311. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1312. endif
  1313. ifeq ($(FULL_TARGET),i386-wdosx)
  1314. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1315. endif
  1316. ifeq ($(FULL_TARGET),i386-darwin)
  1317. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1318. endif
  1319. ifeq ($(FULL_TARGET),i386-emx)
  1320. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1321. endif
  1322. ifeq ($(FULL_TARGET),i386-watcom)
  1323. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1324. endif
  1325. ifeq ($(FULL_TARGET),i386-netwlibc)
  1326. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1327. endif
  1328. ifeq ($(FULL_TARGET),i386-wince)
  1329. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1330. endif
  1331. ifeq ($(FULL_TARGET),i386-embedded)
  1332. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1333. endif
  1334. ifeq ($(FULL_TARGET),i386-symbian)
  1335. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1336. endif
  1337. ifeq ($(FULL_TARGET),i386-nativent)
  1338. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1339. endif
  1340. ifeq ($(FULL_TARGET),i386-iphonesim)
  1341. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1342. endif
  1343. ifeq ($(FULL_TARGET),i386-android)
  1344. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1345. endif
  1346. ifeq ($(FULL_TARGET),i386-aros)
  1347. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1348. endif
  1349. ifeq ($(FULL_TARGET),m68k-linux)
  1350. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1351. endif
  1352. ifeq ($(FULL_TARGET),m68k-netbsd)
  1353. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1354. endif
  1355. ifeq ($(FULL_TARGET),m68k-amiga)
  1356. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1357. endif
  1358. ifeq ($(FULL_TARGET),m68k-atari)
  1359. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1360. endif
  1361. ifeq ($(FULL_TARGET),m68k-palmos)
  1362. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1363. endif
  1364. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1365. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1366. endif
  1367. ifeq ($(FULL_TARGET),m68k-embedded)
  1368. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1369. endif
  1370. ifeq ($(FULL_TARGET),powerpc-linux)
  1371. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1372. endif
  1373. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1374. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1375. endif
  1376. ifeq ($(FULL_TARGET),powerpc-amiga)
  1377. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1378. endif
  1379. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1380. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1381. endif
  1382. ifeq ($(FULL_TARGET),powerpc-darwin)
  1383. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1384. endif
  1385. ifeq ($(FULL_TARGET),powerpc-morphos)
  1386. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1387. endif
  1388. ifeq ($(FULL_TARGET),powerpc-embedded)
  1389. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1390. endif
  1391. ifeq ($(FULL_TARGET),powerpc-wii)
  1392. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1393. endif
  1394. ifeq ($(FULL_TARGET),powerpc-aix)
  1395. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1396. endif
  1397. ifeq ($(FULL_TARGET),sparc-linux)
  1398. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1399. endif
  1400. ifeq ($(FULL_TARGET),sparc-netbsd)
  1401. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1402. endif
  1403. ifeq ($(FULL_TARGET),sparc-solaris)
  1404. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1405. endif
  1406. ifeq ($(FULL_TARGET),sparc-embedded)
  1407. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1408. endif
  1409. ifeq ($(FULL_TARGET),x86_64-linux)
  1410. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1411. endif
  1412. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1413. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1414. endif
  1415. ifeq ($(FULL_TARGET),x86_64-haiku)
  1416. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1417. endif
  1418. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1419. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1420. endif
  1421. ifeq ($(FULL_TARGET),x86_64-solaris)
  1422. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1423. endif
  1424. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1425. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1426. endif
  1427. ifeq ($(FULL_TARGET),x86_64-darwin)
  1428. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1429. endif
  1430. ifeq ($(FULL_TARGET),x86_64-win64)
  1431. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1432. endif
  1433. ifeq ($(FULL_TARGET),x86_64-embedded)
  1434. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1435. endif
  1436. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1437. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1438. endif
  1439. ifeq ($(FULL_TARGET),x86_64-android)
  1440. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1441. endif
  1442. ifeq ($(FULL_TARGET),x86_64-aros)
  1443. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1444. endif
  1445. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1446. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1447. endif
  1448. ifeq ($(FULL_TARGET),arm-linux)
  1449. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1450. endif
  1451. ifeq ($(FULL_TARGET),arm-netbsd)
  1452. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1453. endif
  1454. ifeq ($(FULL_TARGET),arm-palmos)
  1455. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1456. endif
  1457. ifeq ($(FULL_TARGET),arm-wince)
  1458. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1459. endif
  1460. ifeq ($(FULL_TARGET),arm-gba)
  1461. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1462. endif
  1463. ifeq ($(FULL_TARGET),arm-nds)
  1464. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1465. endif
  1466. ifeq ($(FULL_TARGET),arm-embedded)
  1467. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1468. endif
  1469. ifeq ($(FULL_TARGET),arm-symbian)
  1470. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1471. endif
  1472. ifeq ($(FULL_TARGET),arm-android)
  1473. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1474. endif
  1475. ifeq ($(FULL_TARGET),arm-aros)
  1476. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1477. endif
  1478. ifeq ($(FULL_TARGET),arm-freertos)
  1479. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1480. endif
  1481. ifeq ($(FULL_TARGET),arm-ios)
  1482. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1483. endif
  1484. ifeq ($(FULL_TARGET),powerpc64-linux)
  1485. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1486. endif
  1487. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1488. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1489. endif
  1490. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1491. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1492. endif
  1493. ifeq ($(FULL_TARGET),powerpc64-aix)
  1494. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1495. endif
  1496. ifeq ($(FULL_TARGET),avr-embedded)
  1497. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1498. endif
  1499. ifeq ($(FULL_TARGET),armeb-linux)
  1500. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1501. endif
  1502. ifeq ($(FULL_TARGET),armeb-embedded)
  1503. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1504. endif
  1505. ifeq ($(FULL_TARGET),mips-linux)
  1506. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1507. endif
  1508. ifeq ($(FULL_TARGET),mipsel-linux)
  1509. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1510. endif
  1511. ifeq ($(FULL_TARGET),mipsel-embedded)
  1512. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1513. endif
  1514. ifeq ($(FULL_TARGET),mipsel-android)
  1515. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1516. endif
  1517. ifeq ($(FULL_TARGET),mips64el-linux)
  1518. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1519. endif
  1520. ifeq ($(FULL_TARGET),jvm-java)
  1521. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1522. endif
  1523. ifeq ($(FULL_TARGET),jvm-android)
  1524. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1525. endif
  1526. ifeq ($(FULL_TARGET),i8086-embedded)
  1527. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1528. endif
  1529. ifeq ($(FULL_TARGET),i8086-msdos)
  1530. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1531. endif
  1532. ifeq ($(FULL_TARGET),i8086-win16)
  1533. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1534. endif
  1535. ifeq ($(FULL_TARGET),aarch64-linux)
  1536. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1537. endif
  1538. ifeq ($(FULL_TARGET),aarch64-darwin)
  1539. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1540. endif
  1541. ifeq ($(FULL_TARGET),aarch64-win64)
  1542. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1543. endif
  1544. ifeq ($(FULL_TARGET),aarch64-android)
  1545. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1546. endif
  1547. ifeq ($(FULL_TARGET),aarch64-ios)
  1548. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1549. endif
  1550. ifeq ($(FULL_TARGET),wasm-wasm)
  1551. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1552. endif
  1553. ifeq ($(FULL_TARGET),sparc64-linux)
  1554. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1555. endif
  1556. ifeq ($(FULL_TARGET),riscv32-linux)
  1557. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1558. endif
  1559. ifeq ($(FULL_TARGET),riscv32-embedded)
  1560. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1561. endif
  1562. ifeq ($(FULL_TARGET),riscv64-linux)
  1563. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1564. endif
  1565. ifeq ($(FULL_TARGET),riscv64-embedded)
  1566. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1567. endif
  1568. ifeq ($(FULL_TARGET),xtensa-linux)
  1569. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1570. endif
  1571. ifeq ($(FULL_TARGET),xtensa-embedded)
  1572. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1573. endif
  1574. ifeq ($(FULL_TARGET),xtensa-freertos)
  1575. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1576. endif
  1577. ifeq ($(FULL_TARGET),z80-embedded)
  1578. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1579. endif
  1580. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1581. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1582. endif
  1583. ifeq ($(FULL_TARGET),z80-msxdos)
  1584. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1585. endif
  1586. override INSTALL_FPCPACKAGE=y
  1587. ifeq ($(FULL_TARGET),i386-linux)
  1588. override COMPILER_OPTIONS+=-Xm
  1589. endif
  1590. ifeq ($(FULL_TARGET),i386-go32v2)
  1591. override COMPILER_OPTIONS+=-Xm
  1592. endif
  1593. ifeq ($(FULL_TARGET),i386-win32)
  1594. override COMPILER_OPTIONS+=-Xm
  1595. endif
  1596. ifeq ($(FULL_TARGET),i386-os2)
  1597. override COMPILER_OPTIONS+=-Xm
  1598. endif
  1599. ifeq ($(FULL_TARGET),i386-freebsd)
  1600. override COMPILER_OPTIONS+=-Xm
  1601. endif
  1602. ifeq ($(FULL_TARGET),i386-beos)
  1603. override COMPILER_OPTIONS+=-Xm
  1604. endif
  1605. ifeq ($(FULL_TARGET),i386-haiku)
  1606. override COMPILER_OPTIONS+=-Xm
  1607. endif
  1608. ifeq ($(FULL_TARGET),i386-netbsd)
  1609. override COMPILER_OPTIONS+=-Xm
  1610. endif
  1611. ifeq ($(FULL_TARGET),i386-solaris)
  1612. override COMPILER_OPTIONS+=-Xm
  1613. endif
  1614. ifeq ($(FULL_TARGET),i386-netware)
  1615. override COMPILER_OPTIONS+=-Xm
  1616. endif
  1617. ifeq ($(FULL_TARGET),i386-openbsd)
  1618. override COMPILER_OPTIONS+=-Xm
  1619. endif
  1620. ifeq ($(FULL_TARGET),i386-wdosx)
  1621. override COMPILER_OPTIONS+=-Xm
  1622. endif
  1623. ifeq ($(FULL_TARGET),i386-darwin)
  1624. override COMPILER_OPTIONS+=-Xm
  1625. endif
  1626. ifeq ($(FULL_TARGET),i386-emx)
  1627. override COMPILER_OPTIONS+=-Xm
  1628. endif
  1629. ifeq ($(FULL_TARGET),i386-watcom)
  1630. override COMPILER_OPTIONS+=-Xm
  1631. endif
  1632. ifeq ($(FULL_TARGET),i386-netwlibc)
  1633. override COMPILER_OPTIONS+=-Xm
  1634. endif
  1635. ifeq ($(FULL_TARGET),i386-wince)
  1636. override COMPILER_OPTIONS+=-Xm
  1637. endif
  1638. ifeq ($(FULL_TARGET),i386-embedded)
  1639. override COMPILER_OPTIONS+=-Xm
  1640. endif
  1641. ifeq ($(FULL_TARGET),i386-symbian)
  1642. override COMPILER_OPTIONS+=-Xm
  1643. endif
  1644. ifeq ($(FULL_TARGET),i386-nativent)
  1645. override COMPILER_OPTIONS+=-Xm
  1646. endif
  1647. ifeq ($(FULL_TARGET),i386-iphonesim)
  1648. override COMPILER_OPTIONS+=-Xm
  1649. endif
  1650. ifeq ($(FULL_TARGET),i386-android)
  1651. override COMPILER_OPTIONS+=-Xm
  1652. endif
  1653. ifeq ($(FULL_TARGET),i386-aros)
  1654. override COMPILER_OPTIONS+=-Xm
  1655. endif
  1656. ifeq ($(FULL_TARGET),m68k-linux)
  1657. override COMPILER_OPTIONS+=-Xm
  1658. endif
  1659. ifeq ($(FULL_TARGET),m68k-netbsd)
  1660. override COMPILER_OPTIONS+=-Xm
  1661. endif
  1662. ifeq ($(FULL_TARGET),m68k-amiga)
  1663. override COMPILER_OPTIONS+=-Xm
  1664. endif
  1665. ifeq ($(FULL_TARGET),m68k-atari)
  1666. override COMPILER_OPTIONS+=-Xm
  1667. endif
  1668. ifeq ($(FULL_TARGET),m68k-palmos)
  1669. override COMPILER_OPTIONS+=-Xm
  1670. endif
  1671. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1672. override COMPILER_OPTIONS+=-Xm
  1673. endif
  1674. ifeq ($(FULL_TARGET),m68k-embedded)
  1675. override COMPILER_OPTIONS+=-Xm
  1676. endif
  1677. ifeq ($(FULL_TARGET),powerpc-linux)
  1678. override COMPILER_OPTIONS+=-Xm
  1679. endif
  1680. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1681. override COMPILER_OPTIONS+=-Xm
  1682. endif
  1683. ifeq ($(FULL_TARGET),powerpc-amiga)
  1684. override COMPILER_OPTIONS+=-Xm
  1685. endif
  1686. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1687. override COMPILER_OPTIONS+=-Xm
  1688. endif
  1689. ifeq ($(FULL_TARGET),powerpc-darwin)
  1690. override COMPILER_OPTIONS+=-Xm
  1691. endif
  1692. ifeq ($(FULL_TARGET),powerpc-morphos)
  1693. override COMPILER_OPTIONS+=-Xm
  1694. endif
  1695. ifeq ($(FULL_TARGET),powerpc-embedded)
  1696. override COMPILER_OPTIONS+=-Xm
  1697. endif
  1698. ifeq ($(FULL_TARGET),powerpc-wii)
  1699. override COMPILER_OPTIONS+=-Xm
  1700. endif
  1701. ifeq ($(FULL_TARGET),powerpc-aix)
  1702. override COMPILER_OPTIONS+=-Xm
  1703. endif
  1704. ifeq ($(FULL_TARGET),sparc-linux)
  1705. override COMPILER_OPTIONS+=-Xm
  1706. endif
  1707. ifeq ($(FULL_TARGET),sparc-netbsd)
  1708. override COMPILER_OPTIONS+=-Xm
  1709. endif
  1710. ifeq ($(FULL_TARGET),sparc-solaris)
  1711. override COMPILER_OPTIONS+=-Xm
  1712. endif
  1713. ifeq ($(FULL_TARGET),sparc-embedded)
  1714. override COMPILER_OPTIONS+=-Xm
  1715. endif
  1716. ifeq ($(FULL_TARGET),x86_64-linux)
  1717. override COMPILER_OPTIONS+=-Xm
  1718. endif
  1719. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1720. override COMPILER_OPTIONS+=-Xm
  1721. endif
  1722. ifeq ($(FULL_TARGET),x86_64-haiku)
  1723. override COMPILER_OPTIONS+=-Xm
  1724. endif
  1725. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1726. override COMPILER_OPTIONS+=-Xm
  1727. endif
  1728. ifeq ($(FULL_TARGET),x86_64-solaris)
  1729. override COMPILER_OPTIONS+=-Xm
  1730. endif
  1731. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1732. override COMPILER_OPTIONS+=-Xm
  1733. endif
  1734. ifeq ($(FULL_TARGET),x86_64-darwin)
  1735. override COMPILER_OPTIONS+=-Xm
  1736. endif
  1737. ifeq ($(FULL_TARGET),x86_64-win64)
  1738. override COMPILER_OPTIONS+=-Xm
  1739. endif
  1740. ifeq ($(FULL_TARGET),x86_64-embedded)
  1741. override COMPILER_OPTIONS+=-Xm
  1742. endif
  1743. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1744. override COMPILER_OPTIONS+=-Xm
  1745. endif
  1746. ifeq ($(FULL_TARGET),x86_64-android)
  1747. override COMPILER_OPTIONS+=-Xm
  1748. endif
  1749. ifeq ($(FULL_TARGET),x86_64-aros)
  1750. override COMPILER_OPTIONS+=-Xm
  1751. endif
  1752. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1753. override COMPILER_OPTIONS+=-Xm
  1754. endif
  1755. ifeq ($(FULL_TARGET),arm-linux)
  1756. override COMPILER_OPTIONS+=-Xm
  1757. endif
  1758. ifeq ($(FULL_TARGET),arm-netbsd)
  1759. override COMPILER_OPTIONS+=-Xm
  1760. endif
  1761. ifeq ($(FULL_TARGET),arm-palmos)
  1762. override COMPILER_OPTIONS+=-Xm
  1763. endif
  1764. ifeq ($(FULL_TARGET),arm-wince)
  1765. override COMPILER_OPTIONS+=-Xm
  1766. endif
  1767. ifeq ($(FULL_TARGET),arm-gba)
  1768. override COMPILER_OPTIONS+=-Xm
  1769. endif
  1770. ifeq ($(FULL_TARGET),arm-nds)
  1771. override COMPILER_OPTIONS+=-Xm
  1772. endif
  1773. ifeq ($(FULL_TARGET),arm-embedded)
  1774. override COMPILER_OPTIONS+=-Xm
  1775. endif
  1776. ifeq ($(FULL_TARGET),arm-symbian)
  1777. override COMPILER_OPTIONS+=-Xm
  1778. endif
  1779. ifeq ($(FULL_TARGET),arm-android)
  1780. override COMPILER_OPTIONS+=-Xm
  1781. endif
  1782. ifeq ($(FULL_TARGET),arm-aros)
  1783. override COMPILER_OPTIONS+=-Xm
  1784. endif
  1785. ifeq ($(FULL_TARGET),arm-freertos)
  1786. override COMPILER_OPTIONS+=-Xm
  1787. endif
  1788. ifeq ($(FULL_TARGET),arm-ios)
  1789. override COMPILER_OPTIONS+=-Xm
  1790. endif
  1791. ifeq ($(FULL_TARGET),powerpc64-linux)
  1792. override COMPILER_OPTIONS+=-Xm
  1793. endif
  1794. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1795. override COMPILER_OPTIONS+=-Xm
  1796. endif
  1797. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1798. override COMPILER_OPTIONS+=-Xm
  1799. endif
  1800. ifeq ($(FULL_TARGET),powerpc64-aix)
  1801. override COMPILER_OPTIONS+=-Xm
  1802. endif
  1803. ifeq ($(FULL_TARGET),avr-embedded)
  1804. override COMPILER_OPTIONS+=-Xm
  1805. endif
  1806. ifeq ($(FULL_TARGET),armeb-linux)
  1807. override COMPILER_OPTIONS+=-Xm
  1808. endif
  1809. ifeq ($(FULL_TARGET),armeb-embedded)
  1810. override COMPILER_OPTIONS+=-Xm
  1811. endif
  1812. ifeq ($(FULL_TARGET),mips-linux)
  1813. override COMPILER_OPTIONS+=-Xm
  1814. endif
  1815. ifeq ($(FULL_TARGET),mipsel-linux)
  1816. override COMPILER_OPTIONS+=-Xm
  1817. endif
  1818. ifeq ($(FULL_TARGET),mipsel-embedded)
  1819. override COMPILER_OPTIONS+=-Xm
  1820. endif
  1821. ifeq ($(FULL_TARGET),mipsel-android)
  1822. override COMPILER_OPTIONS+=-Xm
  1823. endif
  1824. ifeq ($(FULL_TARGET),mips64el-linux)
  1825. override COMPILER_OPTIONS+=-Xm
  1826. endif
  1827. ifeq ($(FULL_TARGET),jvm-java)
  1828. override COMPILER_OPTIONS+=-Xm
  1829. endif
  1830. ifeq ($(FULL_TARGET),jvm-android)
  1831. override COMPILER_OPTIONS+=-Xm
  1832. endif
  1833. ifeq ($(FULL_TARGET),i8086-embedded)
  1834. override COMPILER_OPTIONS+=-Xm
  1835. endif
  1836. ifeq ($(FULL_TARGET),i8086-msdos)
  1837. override COMPILER_OPTIONS+=-Xm
  1838. endif
  1839. ifeq ($(FULL_TARGET),i8086-win16)
  1840. override COMPILER_OPTIONS+=-Xm
  1841. endif
  1842. ifeq ($(FULL_TARGET),aarch64-linux)
  1843. override COMPILER_OPTIONS+=-Xm
  1844. endif
  1845. ifeq ($(FULL_TARGET),aarch64-darwin)
  1846. override COMPILER_OPTIONS+=-Xm
  1847. endif
  1848. ifeq ($(FULL_TARGET),aarch64-win64)
  1849. override COMPILER_OPTIONS+=-Xm
  1850. endif
  1851. ifeq ($(FULL_TARGET),aarch64-android)
  1852. override COMPILER_OPTIONS+=-Xm
  1853. endif
  1854. ifeq ($(FULL_TARGET),aarch64-ios)
  1855. override COMPILER_OPTIONS+=-Xm
  1856. endif
  1857. ifeq ($(FULL_TARGET),wasm-wasm)
  1858. override COMPILER_OPTIONS+=-Xm
  1859. endif
  1860. ifeq ($(FULL_TARGET),sparc64-linux)
  1861. override COMPILER_OPTIONS+=-Xm
  1862. endif
  1863. ifeq ($(FULL_TARGET),riscv32-linux)
  1864. override COMPILER_OPTIONS+=-Xm
  1865. endif
  1866. ifeq ($(FULL_TARGET),riscv32-embedded)
  1867. override COMPILER_OPTIONS+=-Xm
  1868. endif
  1869. ifeq ($(FULL_TARGET),riscv64-linux)
  1870. override COMPILER_OPTIONS+=-Xm
  1871. endif
  1872. ifeq ($(FULL_TARGET),riscv64-embedded)
  1873. override COMPILER_OPTIONS+=-Xm
  1874. endif
  1875. ifeq ($(FULL_TARGET),xtensa-linux)
  1876. override COMPILER_OPTIONS+=-Xm
  1877. endif
  1878. ifeq ($(FULL_TARGET),xtensa-embedded)
  1879. override COMPILER_OPTIONS+=-Xm
  1880. endif
  1881. ifeq ($(FULL_TARGET),xtensa-freertos)
  1882. override COMPILER_OPTIONS+=-Xm
  1883. endif
  1884. ifeq ($(FULL_TARGET),z80-embedded)
  1885. override COMPILER_OPTIONS+=-Xm
  1886. endif
  1887. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1888. override COMPILER_OPTIONS+=-Xm
  1889. endif
  1890. ifeq ($(FULL_TARGET),z80-msxdos)
  1891. override COMPILER_OPTIONS+=-Xm
  1892. endif
  1893. ifeq ($(FULL_TARGET),i386-linux)
  1894. override COMPILER_TARGETDIR+=$(BIN)
  1895. endif
  1896. ifeq ($(FULL_TARGET),i386-go32v2)
  1897. override COMPILER_TARGETDIR+=$(BIN)
  1898. endif
  1899. ifeq ($(FULL_TARGET),i386-win32)
  1900. override COMPILER_TARGETDIR+=$(BIN)
  1901. endif
  1902. ifeq ($(FULL_TARGET),i386-os2)
  1903. override COMPILER_TARGETDIR+=$(BIN)
  1904. endif
  1905. ifeq ($(FULL_TARGET),i386-freebsd)
  1906. override COMPILER_TARGETDIR+=$(BIN)
  1907. endif
  1908. ifeq ($(FULL_TARGET),i386-beos)
  1909. override COMPILER_TARGETDIR+=$(BIN)
  1910. endif
  1911. ifeq ($(FULL_TARGET),i386-haiku)
  1912. override COMPILER_TARGETDIR+=$(BIN)
  1913. endif
  1914. ifeq ($(FULL_TARGET),i386-netbsd)
  1915. override COMPILER_TARGETDIR+=$(BIN)
  1916. endif
  1917. ifeq ($(FULL_TARGET),i386-solaris)
  1918. override COMPILER_TARGETDIR+=$(BIN)
  1919. endif
  1920. ifeq ($(FULL_TARGET),i386-netware)
  1921. override COMPILER_TARGETDIR+=$(BIN)
  1922. endif
  1923. ifeq ($(FULL_TARGET),i386-openbsd)
  1924. override COMPILER_TARGETDIR+=$(BIN)
  1925. endif
  1926. ifeq ($(FULL_TARGET),i386-wdosx)
  1927. override COMPILER_TARGETDIR+=$(BIN)
  1928. endif
  1929. ifeq ($(FULL_TARGET),i386-darwin)
  1930. override COMPILER_TARGETDIR+=$(BIN)
  1931. endif
  1932. ifeq ($(FULL_TARGET),i386-emx)
  1933. override COMPILER_TARGETDIR+=$(BIN)
  1934. endif
  1935. ifeq ($(FULL_TARGET),i386-watcom)
  1936. override COMPILER_TARGETDIR+=$(BIN)
  1937. endif
  1938. ifeq ($(FULL_TARGET),i386-netwlibc)
  1939. override COMPILER_TARGETDIR+=$(BIN)
  1940. endif
  1941. ifeq ($(FULL_TARGET),i386-wince)
  1942. override COMPILER_TARGETDIR+=$(BIN)
  1943. endif
  1944. ifeq ($(FULL_TARGET),i386-embedded)
  1945. override COMPILER_TARGETDIR+=$(BIN)
  1946. endif
  1947. ifeq ($(FULL_TARGET),i386-symbian)
  1948. override COMPILER_TARGETDIR+=$(BIN)
  1949. endif
  1950. ifeq ($(FULL_TARGET),i386-nativent)
  1951. override COMPILER_TARGETDIR+=$(BIN)
  1952. endif
  1953. ifeq ($(FULL_TARGET),i386-iphonesim)
  1954. override COMPILER_TARGETDIR+=$(BIN)
  1955. endif
  1956. ifeq ($(FULL_TARGET),i386-android)
  1957. override COMPILER_TARGETDIR+=$(BIN)
  1958. endif
  1959. ifeq ($(FULL_TARGET),i386-aros)
  1960. override COMPILER_TARGETDIR+=$(BIN)
  1961. endif
  1962. ifeq ($(FULL_TARGET),m68k-linux)
  1963. override COMPILER_TARGETDIR+=$(BIN)
  1964. endif
  1965. ifeq ($(FULL_TARGET),m68k-netbsd)
  1966. override COMPILER_TARGETDIR+=$(BIN)
  1967. endif
  1968. ifeq ($(FULL_TARGET),m68k-amiga)
  1969. override COMPILER_TARGETDIR+=$(BIN)
  1970. endif
  1971. ifeq ($(FULL_TARGET),m68k-atari)
  1972. override COMPILER_TARGETDIR+=$(BIN)
  1973. endif
  1974. ifeq ($(FULL_TARGET),m68k-palmos)
  1975. override COMPILER_TARGETDIR+=$(BIN)
  1976. endif
  1977. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1978. override COMPILER_TARGETDIR+=$(BIN)
  1979. endif
  1980. ifeq ($(FULL_TARGET),m68k-embedded)
  1981. override COMPILER_TARGETDIR+=$(BIN)
  1982. endif
  1983. ifeq ($(FULL_TARGET),powerpc-linux)
  1984. override COMPILER_TARGETDIR+=$(BIN)
  1985. endif
  1986. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1987. override COMPILER_TARGETDIR+=$(BIN)
  1988. endif
  1989. ifeq ($(FULL_TARGET),powerpc-amiga)
  1990. override COMPILER_TARGETDIR+=$(BIN)
  1991. endif
  1992. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1993. override COMPILER_TARGETDIR+=$(BIN)
  1994. endif
  1995. ifeq ($(FULL_TARGET),powerpc-darwin)
  1996. override COMPILER_TARGETDIR+=$(BIN)
  1997. endif
  1998. ifeq ($(FULL_TARGET),powerpc-morphos)
  1999. override COMPILER_TARGETDIR+=$(BIN)
  2000. endif
  2001. ifeq ($(FULL_TARGET),powerpc-embedded)
  2002. override COMPILER_TARGETDIR+=$(BIN)
  2003. endif
  2004. ifeq ($(FULL_TARGET),powerpc-wii)
  2005. override COMPILER_TARGETDIR+=$(BIN)
  2006. endif
  2007. ifeq ($(FULL_TARGET),powerpc-aix)
  2008. override COMPILER_TARGETDIR+=$(BIN)
  2009. endif
  2010. ifeq ($(FULL_TARGET),sparc-linux)
  2011. override COMPILER_TARGETDIR+=$(BIN)
  2012. endif
  2013. ifeq ($(FULL_TARGET),sparc-netbsd)
  2014. override COMPILER_TARGETDIR+=$(BIN)
  2015. endif
  2016. ifeq ($(FULL_TARGET),sparc-solaris)
  2017. override COMPILER_TARGETDIR+=$(BIN)
  2018. endif
  2019. ifeq ($(FULL_TARGET),sparc-embedded)
  2020. override COMPILER_TARGETDIR+=$(BIN)
  2021. endif
  2022. ifeq ($(FULL_TARGET),x86_64-linux)
  2023. override COMPILER_TARGETDIR+=$(BIN)
  2024. endif
  2025. ifeq ($(FULL_TARGET),x86_64-freebsd)
  2026. override COMPILER_TARGETDIR+=$(BIN)
  2027. endif
  2028. ifeq ($(FULL_TARGET),x86_64-haiku)
  2029. override COMPILER_TARGETDIR+=$(BIN)
  2030. endif
  2031. ifeq ($(FULL_TARGET),x86_64-netbsd)
  2032. override COMPILER_TARGETDIR+=$(BIN)
  2033. endif
  2034. ifeq ($(FULL_TARGET),x86_64-solaris)
  2035. override COMPILER_TARGETDIR+=$(BIN)
  2036. endif
  2037. ifeq ($(FULL_TARGET),x86_64-openbsd)
  2038. override COMPILER_TARGETDIR+=$(BIN)
  2039. endif
  2040. ifeq ($(FULL_TARGET),x86_64-darwin)
  2041. override COMPILER_TARGETDIR+=$(BIN)
  2042. endif
  2043. ifeq ($(FULL_TARGET),x86_64-win64)
  2044. override COMPILER_TARGETDIR+=$(BIN)
  2045. endif
  2046. ifeq ($(FULL_TARGET),x86_64-embedded)
  2047. override COMPILER_TARGETDIR+=$(BIN)
  2048. endif
  2049. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  2050. override COMPILER_TARGETDIR+=$(BIN)
  2051. endif
  2052. ifeq ($(FULL_TARGET),x86_64-android)
  2053. override COMPILER_TARGETDIR+=$(BIN)
  2054. endif
  2055. ifeq ($(FULL_TARGET),x86_64-aros)
  2056. override COMPILER_TARGETDIR+=$(BIN)
  2057. endif
  2058. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  2059. override COMPILER_TARGETDIR+=$(BIN)
  2060. endif
  2061. ifeq ($(FULL_TARGET),arm-linux)
  2062. override COMPILER_TARGETDIR+=$(BIN)
  2063. endif
  2064. ifeq ($(FULL_TARGET),arm-netbsd)
  2065. override COMPILER_TARGETDIR+=$(BIN)
  2066. endif
  2067. ifeq ($(FULL_TARGET),arm-palmos)
  2068. override COMPILER_TARGETDIR+=$(BIN)
  2069. endif
  2070. ifeq ($(FULL_TARGET),arm-wince)
  2071. override COMPILER_TARGETDIR+=$(BIN)
  2072. endif
  2073. ifeq ($(FULL_TARGET),arm-gba)
  2074. override COMPILER_TARGETDIR+=$(BIN)
  2075. endif
  2076. ifeq ($(FULL_TARGET),arm-nds)
  2077. override COMPILER_TARGETDIR+=$(BIN)
  2078. endif
  2079. ifeq ($(FULL_TARGET),arm-embedded)
  2080. override COMPILER_TARGETDIR+=$(BIN)
  2081. endif
  2082. ifeq ($(FULL_TARGET),arm-symbian)
  2083. override COMPILER_TARGETDIR+=$(BIN)
  2084. endif
  2085. ifeq ($(FULL_TARGET),arm-android)
  2086. override COMPILER_TARGETDIR+=$(BIN)
  2087. endif
  2088. ifeq ($(FULL_TARGET),arm-aros)
  2089. override COMPILER_TARGETDIR+=$(BIN)
  2090. endif
  2091. ifeq ($(FULL_TARGET),arm-freertos)
  2092. override COMPILER_TARGETDIR+=$(BIN)
  2093. endif
  2094. ifeq ($(FULL_TARGET),arm-ios)
  2095. override COMPILER_TARGETDIR+=$(BIN)
  2096. endif
  2097. ifeq ($(FULL_TARGET),powerpc64-linux)
  2098. override COMPILER_TARGETDIR+=$(BIN)
  2099. endif
  2100. ifeq ($(FULL_TARGET),powerpc64-darwin)
  2101. override COMPILER_TARGETDIR+=$(BIN)
  2102. endif
  2103. ifeq ($(FULL_TARGET),powerpc64-embedded)
  2104. override COMPILER_TARGETDIR+=$(BIN)
  2105. endif
  2106. ifeq ($(FULL_TARGET),powerpc64-aix)
  2107. override COMPILER_TARGETDIR+=$(BIN)
  2108. endif
  2109. ifeq ($(FULL_TARGET),avr-embedded)
  2110. override COMPILER_TARGETDIR+=$(BIN)
  2111. endif
  2112. ifeq ($(FULL_TARGET),armeb-linux)
  2113. override COMPILER_TARGETDIR+=$(BIN)
  2114. endif
  2115. ifeq ($(FULL_TARGET),armeb-embedded)
  2116. override COMPILER_TARGETDIR+=$(BIN)
  2117. endif
  2118. ifeq ($(FULL_TARGET),mips-linux)
  2119. override COMPILER_TARGETDIR+=$(BIN)
  2120. endif
  2121. ifeq ($(FULL_TARGET),mipsel-linux)
  2122. override COMPILER_TARGETDIR+=$(BIN)
  2123. endif
  2124. ifeq ($(FULL_TARGET),mipsel-embedded)
  2125. override COMPILER_TARGETDIR+=$(BIN)
  2126. endif
  2127. ifeq ($(FULL_TARGET),mipsel-android)
  2128. override COMPILER_TARGETDIR+=$(BIN)
  2129. endif
  2130. ifeq ($(FULL_TARGET),mips64el-linux)
  2131. override COMPILER_TARGETDIR+=$(BIN)
  2132. endif
  2133. ifeq ($(FULL_TARGET),jvm-java)
  2134. override COMPILER_TARGETDIR+=$(BIN)
  2135. endif
  2136. ifeq ($(FULL_TARGET),jvm-android)
  2137. override COMPILER_TARGETDIR+=$(BIN)
  2138. endif
  2139. ifeq ($(FULL_TARGET),i8086-embedded)
  2140. override COMPILER_TARGETDIR+=$(BIN)
  2141. endif
  2142. ifeq ($(FULL_TARGET),i8086-msdos)
  2143. override COMPILER_TARGETDIR+=$(BIN)
  2144. endif
  2145. ifeq ($(FULL_TARGET),i8086-win16)
  2146. override COMPILER_TARGETDIR+=$(BIN)
  2147. endif
  2148. ifeq ($(FULL_TARGET),aarch64-linux)
  2149. override COMPILER_TARGETDIR+=$(BIN)
  2150. endif
  2151. ifeq ($(FULL_TARGET),aarch64-darwin)
  2152. override COMPILER_TARGETDIR+=$(BIN)
  2153. endif
  2154. ifeq ($(FULL_TARGET),aarch64-win64)
  2155. override COMPILER_TARGETDIR+=$(BIN)
  2156. endif
  2157. ifeq ($(FULL_TARGET),aarch64-android)
  2158. override COMPILER_TARGETDIR+=$(BIN)
  2159. endif
  2160. ifeq ($(FULL_TARGET),aarch64-ios)
  2161. override COMPILER_TARGETDIR+=$(BIN)
  2162. endif
  2163. ifeq ($(FULL_TARGET),wasm-wasm)
  2164. override COMPILER_TARGETDIR+=$(BIN)
  2165. endif
  2166. ifeq ($(FULL_TARGET),sparc64-linux)
  2167. override COMPILER_TARGETDIR+=$(BIN)
  2168. endif
  2169. ifeq ($(FULL_TARGET),riscv32-linux)
  2170. override COMPILER_TARGETDIR+=$(BIN)
  2171. endif
  2172. ifeq ($(FULL_TARGET),riscv32-embedded)
  2173. override COMPILER_TARGETDIR+=$(BIN)
  2174. endif
  2175. ifeq ($(FULL_TARGET),riscv64-linux)
  2176. override COMPILER_TARGETDIR+=$(BIN)
  2177. endif
  2178. ifeq ($(FULL_TARGET),riscv64-embedded)
  2179. override COMPILER_TARGETDIR+=$(BIN)
  2180. endif
  2181. ifeq ($(FULL_TARGET),xtensa-linux)
  2182. override COMPILER_TARGETDIR+=$(BIN)
  2183. endif
  2184. ifeq ($(FULL_TARGET),xtensa-embedded)
  2185. override COMPILER_TARGETDIR+=$(BIN)
  2186. endif
  2187. ifeq ($(FULL_TARGET),xtensa-freertos)
  2188. override COMPILER_TARGETDIR+=$(BIN)
  2189. endif
  2190. ifeq ($(FULL_TARGET),z80-embedded)
  2191. override COMPILER_TARGETDIR+=$(BIN)
  2192. endif
  2193. ifeq ($(FULL_TARGET),z80-zxspectrum)
  2194. override COMPILER_TARGETDIR+=$(BIN)
  2195. endif
  2196. ifeq ($(FULL_TARGET),z80-msxdos)
  2197. override COMPILER_TARGETDIR+=$(BIN)
  2198. endif
  2199. ifeq ($(FULL_TARGET),i386-linux)
  2200. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2201. endif
  2202. ifeq ($(FULL_TARGET),i386-go32v2)
  2203. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2204. endif
  2205. ifeq ($(FULL_TARGET),i386-win32)
  2206. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2207. endif
  2208. ifeq ($(FULL_TARGET),i386-os2)
  2209. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2210. endif
  2211. ifeq ($(FULL_TARGET),i386-freebsd)
  2212. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2213. endif
  2214. ifeq ($(FULL_TARGET),i386-beos)
  2215. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2216. endif
  2217. ifeq ($(FULL_TARGET),i386-haiku)
  2218. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2219. endif
  2220. ifeq ($(FULL_TARGET),i386-netbsd)
  2221. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2222. endif
  2223. ifeq ($(FULL_TARGET),i386-solaris)
  2224. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2225. endif
  2226. ifeq ($(FULL_TARGET),i386-netware)
  2227. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2228. endif
  2229. ifeq ($(FULL_TARGET),i386-openbsd)
  2230. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2231. endif
  2232. ifeq ($(FULL_TARGET),i386-wdosx)
  2233. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2234. endif
  2235. ifeq ($(FULL_TARGET),i386-darwin)
  2236. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2237. endif
  2238. ifeq ($(FULL_TARGET),i386-emx)
  2239. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2240. endif
  2241. ifeq ($(FULL_TARGET),i386-watcom)
  2242. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2243. endif
  2244. ifeq ($(FULL_TARGET),i386-netwlibc)
  2245. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2246. endif
  2247. ifeq ($(FULL_TARGET),i386-wince)
  2248. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2249. endif
  2250. ifeq ($(FULL_TARGET),i386-embedded)
  2251. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2252. endif
  2253. ifeq ($(FULL_TARGET),i386-symbian)
  2254. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2255. endif
  2256. ifeq ($(FULL_TARGET),i386-nativent)
  2257. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2258. endif
  2259. ifeq ($(FULL_TARGET),i386-iphonesim)
  2260. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2261. endif
  2262. ifeq ($(FULL_TARGET),i386-android)
  2263. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2264. endif
  2265. ifeq ($(FULL_TARGET),i386-aros)
  2266. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2267. endif
  2268. ifeq ($(FULL_TARGET),m68k-linux)
  2269. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2270. endif
  2271. ifeq ($(FULL_TARGET),m68k-netbsd)
  2272. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2273. endif
  2274. ifeq ($(FULL_TARGET),m68k-amiga)
  2275. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2276. endif
  2277. ifeq ($(FULL_TARGET),m68k-atari)
  2278. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2279. endif
  2280. ifeq ($(FULL_TARGET),m68k-palmos)
  2281. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2282. endif
  2283. ifeq ($(FULL_TARGET),m68k-macosclassic)
  2284. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2285. endif
  2286. ifeq ($(FULL_TARGET),m68k-embedded)
  2287. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2288. endif
  2289. ifeq ($(FULL_TARGET),powerpc-linux)
  2290. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2291. endif
  2292. ifeq ($(FULL_TARGET),powerpc-netbsd)
  2293. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2294. endif
  2295. ifeq ($(FULL_TARGET),powerpc-amiga)
  2296. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2297. endif
  2298. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  2299. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2300. endif
  2301. ifeq ($(FULL_TARGET),powerpc-darwin)
  2302. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2303. endif
  2304. ifeq ($(FULL_TARGET),powerpc-morphos)
  2305. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2306. endif
  2307. ifeq ($(FULL_TARGET),powerpc-embedded)
  2308. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2309. endif
  2310. ifeq ($(FULL_TARGET),powerpc-wii)
  2311. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2312. endif
  2313. ifeq ($(FULL_TARGET),powerpc-aix)
  2314. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2315. endif
  2316. ifeq ($(FULL_TARGET),sparc-linux)
  2317. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2318. endif
  2319. ifeq ($(FULL_TARGET),sparc-netbsd)
  2320. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2321. endif
  2322. ifeq ($(FULL_TARGET),sparc-solaris)
  2323. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2324. endif
  2325. ifeq ($(FULL_TARGET),sparc-embedded)
  2326. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2327. endif
  2328. ifeq ($(FULL_TARGET),x86_64-linux)
  2329. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2330. endif
  2331. ifeq ($(FULL_TARGET),x86_64-freebsd)
  2332. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2333. endif
  2334. ifeq ($(FULL_TARGET),x86_64-haiku)
  2335. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2336. endif
  2337. ifeq ($(FULL_TARGET),x86_64-netbsd)
  2338. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2339. endif
  2340. ifeq ($(FULL_TARGET),x86_64-solaris)
  2341. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2342. endif
  2343. ifeq ($(FULL_TARGET),x86_64-openbsd)
  2344. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2345. endif
  2346. ifeq ($(FULL_TARGET),x86_64-darwin)
  2347. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2348. endif
  2349. ifeq ($(FULL_TARGET),x86_64-win64)
  2350. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2351. endif
  2352. ifeq ($(FULL_TARGET),x86_64-embedded)
  2353. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2354. endif
  2355. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  2356. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2357. endif
  2358. ifeq ($(FULL_TARGET),x86_64-android)
  2359. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2360. endif
  2361. ifeq ($(FULL_TARGET),x86_64-aros)
  2362. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2363. endif
  2364. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  2365. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2366. endif
  2367. ifeq ($(FULL_TARGET),arm-linux)
  2368. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2369. endif
  2370. ifeq ($(FULL_TARGET),arm-netbsd)
  2371. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2372. endif
  2373. ifeq ($(FULL_TARGET),arm-palmos)
  2374. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2375. endif
  2376. ifeq ($(FULL_TARGET),arm-wince)
  2377. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2378. endif
  2379. ifeq ($(FULL_TARGET),arm-gba)
  2380. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2381. endif
  2382. ifeq ($(FULL_TARGET),arm-nds)
  2383. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2384. endif
  2385. ifeq ($(FULL_TARGET),arm-embedded)
  2386. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2387. endif
  2388. ifeq ($(FULL_TARGET),arm-symbian)
  2389. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2390. endif
  2391. ifeq ($(FULL_TARGET),arm-android)
  2392. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2393. endif
  2394. ifeq ($(FULL_TARGET),arm-aros)
  2395. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2396. endif
  2397. ifeq ($(FULL_TARGET),arm-freertos)
  2398. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2399. endif
  2400. ifeq ($(FULL_TARGET),arm-ios)
  2401. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2402. endif
  2403. ifeq ($(FULL_TARGET),powerpc64-linux)
  2404. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2405. endif
  2406. ifeq ($(FULL_TARGET),powerpc64-darwin)
  2407. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2408. endif
  2409. ifeq ($(FULL_TARGET),powerpc64-embedded)
  2410. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2411. endif
  2412. ifeq ($(FULL_TARGET),powerpc64-aix)
  2413. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2414. endif
  2415. ifeq ($(FULL_TARGET),avr-embedded)
  2416. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2417. endif
  2418. ifeq ($(FULL_TARGET),armeb-linux)
  2419. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2420. endif
  2421. ifeq ($(FULL_TARGET),armeb-embedded)
  2422. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2423. endif
  2424. ifeq ($(FULL_TARGET),mips-linux)
  2425. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2426. endif
  2427. ifeq ($(FULL_TARGET),mipsel-linux)
  2428. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2429. endif
  2430. ifeq ($(FULL_TARGET),mipsel-embedded)
  2431. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2432. endif
  2433. ifeq ($(FULL_TARGET),mipsel-android)
  2434. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2435. endif
  2436. ifeq ($(FULL_TARGET),mips64el-linux)
  2437. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2438. endif
  2439. ifeq ($(FULL_TARGET),jvm-java)
  2440. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2441. endif
  2442. ifeq ($(FULL_TARGET),jvm-android)
  2443. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2444. endif
  2445. ifeq ($(FULL_TARGET),i8086-embedded)
  2446. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2447. endif
  2448. ifeq ($(FULL_TARGET),i8086-msdos)
  2449. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2450. endif
  2451. ifeq ($(FULL_TARGET),i8086-win16)
  2452. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2453. endif
  2454. ifeq ($(FULL_TARGET),aarch64-linux)
  2455. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2456. endif
  2457. ifeq ($(FULL_TARGET),aarch64-darwin)
  2458. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2459. endif
  2460. ifeq ($(FULL_TARGET),aarch64-win64)
  2461. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2462. endif
  2463. ifeq ($(FULL_TARGET),aarch64-android)
  2464. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2465. endif
  2466. ifeq ($(FULL_TARGET),aarch64-ios)
  2467. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2468. endif
  2469. ifeq ($(FULL_TARGET),wasm-wasm)
  2470. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2471. endif
  2472. ifeq ($(FULL_TARGET),sparc64-linux)
  2473. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2474. endif
  2475. ifeq ($(FULL_TARGET),riscv32-linux)
  2476. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2477. endif
  2478. ifeq ($(FULL_TARGET),riscv32-embedded)
  2479. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2480. endif
  2481. ifeq ($(FULL_TARGET),riscv64-linux)
  2482. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2483. endif
  2484. ifeq ($(FULL_TARGET),riscv64-embedded)
  2485. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2486. endif
  2487. ifeq ($(FULL_TARGET),xtensa-linux)
  2488. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2489. endif
  2490. ifeq ($(FULL_TARGET),xtensa-embedded)
  2491. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2492. endif
  2493. ifeq ($(FULL_TARGET),xtensa-freertos)
  2494. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2495. endif
  2496. ifeq ($(FULL_TARGET),z80-embedded)
  2497. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2498. endif
  2499. ifeq ($(FULL_TARGET),z80-zxspectrum)
  2500. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2501. endif
  2502. ifeq ($(FULL_TARGET),z80-msxdos)
  2503. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2504. endif
  2505. ifdef REQUIRE_UNITSDIR
  2506. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  2507. endif
  2508. ifdef REQUIRE_PACKAGESDIR
  2509. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  2510. endif
  2511. ifdef ZIPINSTALL
  2512. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  2513. UNIXHier=1
  2514. endif
  2515. else
  2516. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  2517. UNIXHier=1
  2518. endif
  2519. endif
  2520. ifndef INSTALL_PREFIX
  2521. ifdef PREFIX
  2522. INSTALL_PREFIX=$(PREFIX)
  2523. endif
  2524. endif
  2525. ifndef INSTALL_PREFIX
  2526. ifdef UNIXHier
  2527. INSTALL_PREFIX=/usr/local
  2528. else
  2529. ifdef INSTALL_FPCPACKAGE
  2530. INSTALL_BASEDIR:=/pp
  2531. else
  2532. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  2533. endif
  2534. endif
  2535. endif
  2536. export INSTALL_PREFIX
  2537. ifdef INSTALL_FPCSUBDIR
  2538. export INSTALL_FPCSUBDIR
  2539. endif
  2540. ifndef DIST_DESTDIR
  2541. DIST_DESTDIR:=$(BASEDIR)
  2542. endif
  2543. export DIST_DESTDIR
  2544. ifndef COMPILER_UNITTARGETDIR
  2545. ifdef PACKAGEDIR_MAIN
  2546. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  2547. else
  2548. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  2549. endif
  2550. endif
  2551. ifndef COMPILER_TARGETDIR
  2552. COMPILER_TARGETDIR=.
  2553. endif
  2554. ifndef INSTALL_BASEDIR
  2555. ifdef UNIXHier
  2556. ifdef INSTALL_FPCPACKAGE
  2557. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  2558. else
  2559. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  2560. endif
  2561. else
  2562. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  2563. endif
  2564. endif
  2565. ifndef INSTALL_BINDIR
  2566. ifdef UNIXHier
  2567. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  2568. else
  2569. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  2570. ifdef INSTALL_FPCPACKAGE
  2571. ifdef CROSSCOMPILE
  2572. ifdef CROSSINSTALL
  2573. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  2574. else
  2575. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  2576. endif
  2577. else
  2578. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  2579. endif
  2580. endif
  2581. endif
  2582. endif
  2583. ifndef INSTALL_UNITDIR
  2584. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  2585. ifdef INSTALL_FPCPACKAGE
  2586. ifdef PACKAGE_NAME
  2587. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  2588. endif
  2589. endif
  2590. endif
  2591. ifndef INSTALL_LIBDIR
  2592. ifdef UNIXHier
  2593. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  2594. else
  2595. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  2596. endif
  2597. endif
  2598. ifndef INSTALL_SOURCEDIR
  2599. ifdef UNIXHier
  2600. ifdef BSDhier
  2601. SRCPREFIXDIR=share/src
  2602. else
  2603. ifdef linuxHier
  2604. SRCPREFIXDIR=share/src
  2605. else
  2606. SRCPREFIXDIR=src
  2607. endif
  2608. endif
  2609. ifdef INSTALL_FPCPACKAGE
  2610. ifdef INSTALL_FPCSUBDIR
  2611. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  2612. else
  2613. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2614. endif
  2615. else
  2616. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2617. endif
  2618. else
  2619. ifdef INSTALL_FPCPACKAGE
  2620. ifdef INSTALL_FPCSUBDIR
  2621. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  2622. else
  2623. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  2624. endif
  2625. else
  2626. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  2627. endif
  2628. endif
  2629. endif
  2630. ifndef INSTALL_DOCDIR
  2631. ifdef UNIXHier
  2632. ifdef BSDhier
  2633. DOCPREFIXDIR=share/doc
  2634. else
  2635. ifdef linuxHier
  2636. DOCPREFIXDIR=share/doc
  2637. else
  2638. DOCPREFIXDIR=doc
  2639. endif
  2640. endif
  2641. ifdef INSTALL_FPCPACKAGE
  2642. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2643. else
  2644. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2645. endif
  2646. else
  2647. ifdef INSTALL_FPCPACKAGE
  2648. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  2649. else
  2650. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  2651. endif
  2652. endif
  2653. endif
  2654. ifndef INSTALL_EXAMPLEDIR
  2655. ifdef UNIXHier
  2656. ifdef INSTALL_FPCPACKAGE
  2657. ifdef BSDhier
  2658. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2659. else
  2660. ifdef linuxHier
  2661. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  2662. else
  2663. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  2664. endif
  2665. endif
  2666. else
  2667. ifdef BSDhier
  2668. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2669. else
  2670. ifdef linuxHier
  2671. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2672. else
  2673. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2674. endif
  2675. endif
  2676. endif
  2677. else
  2678. ifdef INSTALL_FPCPACKAGE
  2679. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  2680. else
  2681. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  2682. endif
  2683. endif
  2684. endif
  2685. ifndef INSTALL_DATADIR
  2686. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  2687. endif
  2688. ifndef INSTALL_SHAREDDIR
  2689. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  2690. endif
  2691. ifdef CROSSCOMPILE
  2692. ifndef CROSSBINDIR
  2693. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  2694. ifeq ($(CROSSBINDIR),)
  2695. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  2696. endif
  2697. endif
  2698. else
  2699. CROSSBINDIR=
  2700. endif
  2701. ifeq ($(OS_SOURCE),linux)
  2702. ifndef GCCLIBDIR
  2703. ifeq ($(CPU_TARGET),i386)
  2704. ifneq ($(findstring x86_64,$(shell uname -a)),)
  2705. ifeq ($(BINUTILSPREFIX),)
  2706. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2707. else
  2708. CROSSGCCOPT=-m32
  2709. endif
  2710. endif
  2711. endif
  2712. ifeq ($(CPU_TARGET),powerpc)
  2713. ifeq ($(BINUTILSPREFIX),)
  2714. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2715. else
  2716. CROSSGCCOPT=-m32
  2717. endif
  2718. endif
  2719. ifeq ($(CPU_TARGET),powerpc64)
  2720. ifeq ($(BINUTILSPREFIX),)
  2721. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  2722. else
  2723. CROSSGCCOPT=-m64
  2724. endif
  2725. endif
  2726. ifeq ($(CPU_TARGET),sparc)
  2727. ifneq ($(findstring sparc64,$(shell uname -a)),)
  2728. ifeq ($(BINUTILSPREFIX),)
  2729. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2730. else
  2731. CROSSGCCOPT=-m32
  2732. endif
  2733. endif
  2734. endif
  2735. endif
  2736. ifdef FPCFPMAKE
  2737. FPCFPMAKE_CPU_TARGET=$(shell $(FPCFPMAKE) -iTP)
  2738. ifeq ($(CPU_TARGET),$(FPCFPMAKE_CPU_TARGET))
  2739. FPCMAKEGCCLIBDIR:=$(GCCLIBDIR)
  2740. endif
  2741. endif
  2742. ifndef FPCMAKEGCCLIBDIR
  2743. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2744. endif
  2745. ifndef GCCLIBDIR
  2746. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  2747. ifneq ($(CROSSGCC),)
  2748. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
  2749. endif
  2750. endif
  2751. endif
  2752. ifdef inUnix
  2753. ifeq ($(OS_SOURCE),netbsd)
  2754. OTHERLIBDIR:=/usr/pkg/lib
  2755. endif
  2756. export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR
  2757. endif
  2758. BATCHEXT=.bat
  2759. LOADEREXT=.as
  2760. EXEEXT=.exe
  2761. PPLEXT=.ppl
  2762. PPUEXT=.ppu
  2763. OEXT=.o
  2764. LTOEXT=.bc
  2765. ASMEXT=.s
  2766. SMARTEXT=.sl
  2767. STATICLIBEXT=.a
  2768. SHAREDLIBEXT=.so
  2769. SHAREDLIBPREFIX=libfp
  2770. STATICLIBPREFIX=libp
  2771. IMPORTLIBPREFIX=libimp
  2772. RSTEXT=.rst
  2773. EXEDBGEXT=.dbg
  2774. ifeq ($(OS_TARGET),go32v1)
  2775. STATICLIBPREFIX=
  2776. SHORTSUFFIX=v1
  2777. endif
  2778. ifeq ($(OS_TARGET),go32v2)
  2779. STATICLIBPREFIX=
  2780. SHORTSUFFIX=dos
  2781. IMPORTLIBPREFIX=
  2782. endif
  2783. ifeq ($(OS_TARGET),watcom)
  2784. STATICLIBPREFIX=
  2785. OEXT=.obj
  2786. ASMEXT=.asm
  2787. SHAREDLIBEXT=.dll
  2788. SHORTSUFFIX=wat
  2789. IMPORTLIBPREFIX=
  2790. endif
  2791. ifneq ($(CPU_TARGET),jvm)
  2792. ifeq ($(OS_TARGET),android)
  2793. BATCHEXT=.sh
  2794. EXEEXT=
  2795. HASSHAREDLIB=1
  2796. SHORTSUFFIX=lnx
  2797. endif
  2798. endif
  2799. ifeq ($(OS_TARGET),linux)
  2800. BATCHEXT=.sh
  2801. EXEEXT=
  2802. HASSHAREDLIB=1
  2803. SHORTSUFFIX=lnx
  2804. endif
  2805. ifeq ($(OS_TARGET),dragonfly)
  2806. BATCHEXT=.sh
  2807. EXEEXT=
  2808. HASSHAREDLIB=1
  2809. SHORTSUFFIX=df
  2810. endif
  2811. ifeq ($(OS_TARGET),freebsd)
  2812. BATCHEXT=.sh
  2813. EXEEXT=
  2814. HASSHAREDLIB=1
  2815. SHORTSUFFIX=fbs
  2816. endif
  2817. ifeq ($(OS_TARGET),netbsd)
  2818. BATCHEXT=.sh
  2819. EXEEXT=
  2820. HASSHAREDLIB=1
  2821. SHORTSUFFIX=nbs
  2822. endif
  2823. ifeq ($(OS_TARGET),openbsd)
  2824. BATCHEXT=.sh
  2825. EXEEXT=
  2826. HASSHAREDLIB=1
  2827. SHORTSUFFIX=obs
  2828. endif
  2829. ifeq ($(OS_TARGET),win32)
  2830. SHAREDLIBEXT=.dll
  2831. SHORTSUFFIX=w32
  2832. endif
  2833. ifeq ($(OS_TARGET),os2)
  2834. BATCHEXT=.cmd
  2835. AOUTEXT=.out
  2836. STATICLIBPREFIX=
  2837. SHAREDLIBEXT=.dll
  2838. SHORTSUFFIX=os2
  2839. ECHO=echo
  2840. IMPORTLIBPREFIX=
  2841. endif
  2842. ifeq ($(OS_TARGET),emx)
  2843. BATCHEXT=.cmd
  2844. AOUTEXT=.out
  2845. STATICLIBPREFIX=
  2846. SHAREDLIBEXT=.dll
  2847. SHORTSUFFIX=emx
  2848. ECHO=echo
  2849. IMPORTLIBPREFIX=
  2850. endif
  2851. ifeq ($(OS_TARGET),amiga)
  2852. EXEEXT=
  2853. SHAREDLIBEXT=.library
  2854. SHORTSUFFIX=amg
  2855. endif
  2856. ifeq ($(OS_TARGET),aros)
  2857. EXEEXT=
  2858. SHAREDLIBEXT=.library
  2859. SHORTSUFFIX=aros
  2860. endif
  2861. ifeq ($(OS_TARGET),morphos)
  2862. EXEEXT=
  2863. SHAREDLIBEXT=.library
  2864. SHORTSUFFIX=mos
  2865. endif
  2866. ifeq ($(OS_TARGET),atari)
  2867. EXEEXT=.ttp
  2868. SHORTSUFFIX=ata
  2869. endif
  2870. ifeq ($(OS_TARGET),beos)
  2871. BATCHEXT=.sh
  2872. EXEEXT=
  2873. SHORTSUFFIX=be
  2874. endif
  2875. ifeq ($(OS_TARGET),haiku)
  2876. BATCHEXT=.sh
  2877. EXEEXT=
  2878. SHORTSUFFIX=hai
  2879. endif
  2880. ifeq ($(OS_TARGET),solaris)
  2881. BATCHEXT=.sh
  2882. EXEEXT=
  2883. SHORTSUFFIX=sun
  2884. endif
  2885. ifeq ($(OS_TARGET),qnx)
  2886. BATCHEXT=.sh
  2887. EXEEXT=
  2888. SHORTSUFFIX=qnx
  2889. endif
  2890. ifeq ($(OS_TARGET),netware)
  2891. EXEEXT=.nlm
  2892. STATICLIBPREFIX=
  2893. SHORTSUFFIX=nw
  2894. IMPORTLIBPREFIX=imp
  2895. endif
  2896. ifeq ($(OS_TARGET),netwlibc)
  2897. EXEEXT=.nlm
  2898. STATICLIBPREFIX=
  2899. SHORTSUFFIX=nwl
  2900. IMPORTLIBPREFIX=imp
  2901. endif
  2902. ifeq ($(OS_TARGET),macosclassic)
  2903. BATCHEXT=
  2904. EXEEXT=
  2905. DEBUGSYMEXT=.xcoff
  2906. SHORTSUFFIX=mac
  2907. IMPORTLIBPREFIX=imp
  2908. endif
  2909. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  2910. BATCHEXT=.sh
  2911. EXEEXT=
  2912. HASSHAREDLIB=1
  2913. SHORTSUFFIX=dwn
  2914. EXEDBGEXT=.dSYM
  2915. endif
  2916. ifeq ($(OS_TARGET),gba)
  2917. EXEEXT=.gba
  2918. SHAREDLIBEXT=.so
  2919. SHORTSUFFIX=gba
  2920. endif
  2921. ifeq ($(OS_TARGET),symbian)
  2922. SHAREDLIBEXT=.dll
  2923. SHORTSUFFIX=symbian
  2924. endif
  2925. ifeq ($(OS_TARGET),NativeNT)
  2926. SHAREDLIBEXT=.dll
  2927. SHORTSUFFIX=nativent
  2928. endif
  2929. ifeq ($(OS_TARGET),wii)
  2930. EXEEXT=.dol
  2931. SHAREDLIBEXT=.so
  2932. SHORTSUFFIX=wii
  2933. endif
  2934. ifeq ($(OS_TARGET),aix)
  2935. BATCHEXT=.sh
  2936. EXEEXT=
  2937. SHAREDLIBEXT=.a
  2938. SHORTSUFFIX=aix
  2939. endif
  2940. ifeq ($(OS_TARGET),java)
  2941. OEXT=.class
  2942. ASMEXT=.j
  2943. SHAREDLIBEXT=.jar
  2944. SHORTSUFFIX=java
  2945. endif
  2946. ifeq ($(CPU_TARGET),jvm)
  2947. ifeq ($(OS_TARGET),android)
  2948. OEXT=.class
  2949. ASMEXT=.j
  2950. SHAREDLIBEXT=.jar
  2951. SHORTSUFFIX=android
  2952. endif
  2953. endif
  2954. ifeq ($(OS_TARGET),msdos)
  2955. STATICLIBPREFIX=
  2956. STATICLIBEXT=.a
  2957. SHORTSUFFIX=d16
  2958. endif
  2959. ifeq ($(OS_TARGET),msxdos)
  2960. STATICLIBPREFIX=
  2961. STATICLIBEXT=.a
  2962. SHORTSUFFIX=msd
  2963. endif
  2964. ifeq ($(OS_TARGET),embedded)
  2965. ifeq ($(CPU_TARGET),i8086)
  2966. STATICLIBPREFIX=
  2967. STATICLIBEXT=.a
  2968. else
  2969. EXEEXT=.bin
  2970. endif
  2971. ifeq ($(CPU_TARGET),z80)
  2972. OEXT=.rel
  2973. endif
  2974. SHORTSUFFIX=emb
  2975. endif
  2976. ifeq ($(OS_TARGET),win16)
  2977. STATICLIBPREFIX=
  2978. STATICLIBEXT=.a
  2979. SHAREDLIBEXT=.dll
  2980. SHORTSUFFIX=w16
  2981. endif
  2982. ifeq ($(OS_TARGET),zxspectrum)
  2983. OEXT=.rel
  2984. endif
  2985. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  2986. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2987. ZIPSUFFIX=$(SHORTSUFFIX)
  2988. ZIPCROSSPREFIX=
  2989. ZIPSOURCESUFFIX=src
  2990. ZIPEXAMPLESUFFIX=exm
  2991. else
  2992. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2993. ZIPSOURCESUFFIX=.source
  2994. ZIPEXAMPLESUFFIX=.examples
  2995. ifdef CROSSCOMPILE
  2996. ZIPSUFFIX=.$(SOURCESUFFIX)
  2997. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2998. else
  2999. ZIPSUFFIX=.$(TARGETSUFFIX)
  3000. ZIPCROSSPREFIX=
  3001. endif
  3002. endif
  3003. ifndef ECHO
  3004. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  3005. ifeq ($(ECHO),)
  3006. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  3007. ifeq ($(ECHO),)
  3008. ECHO= __missing_command_ECHO
  3009. else
  3010. ECHO:=$(firstword $(ECHO))
  3011. endif
  3012. else
  3013. ECHO:=$(firstword $(ECHO))
  3014. endif
  3015. endif
  3016. export ECHO
  3017. ifndef DATE
  3018. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  3019. ifeq ($(DATE),)
  3020. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  3021. ifeq ($(DATE),)
  3022. DATE= __missing_command_DATE
  3023. else
  3024. DATE:=$(firstword $(DATE))
  3025. endif
  3026. else
  3027. DATE:=$(firstword $(DATE))
  3028. endif
  3029. endif
  3030. export DATE
  3031. ifndef GINSTALL
  3032. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  3033. ifeq ($(GINSTALL),)
  3034. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  3035. ifeq ($(GINSTALL),)
  3036. GINSTALL= __missing_command_GINSTALL
  3037. else
  3038. GINSTALL:=$(firstword $(GINSTALL))
  3039. endif
  3040. else
  3041. GINSTALL:=$(firstword $(GINSTALL))
  3042. endif
  3043. endif
  3044. export GINSTALL
  3045. ifndef CPPROG
  3046. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  3047. ifeq ($(CPPROG),)
  3048. CPPROG= __missing_command_CPPROG
  3049. else
  3050. CPPROG:=$(firstword $(CPPROG))
  3051. endif
  3052. endif
  3053. export CPPROG
  3054. ifndef RMPROG
  3055. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  3056. ifeq ($(RMPROG),)
  3057. RMPROG= __missing_command_RMPROG
  3058. else
  3059. RMPROG:=$(firstword $(RMPROG))
  3060. endif
  3061. endif
  3062. export RMPROG
  3063. ifndef MVPROG
  3064. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  3065. ifeq ($(MVPROG),)
  3066. MVPROG= __missing_command_MVPROG
  3067. else
  3068. MVPROG:=$(firstword $(MVPROG))
  3069. endif
  3070. endif
  3071. export MVPROG
  3072. ifndef MKDIRPROG
  3073. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  3074. ifeq ($(MKDIRPROG),)
  3075. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  3076. ifeq ($(MKDIRPROG),)
  3077. MKDIRPROG= __missing_command_MKDIRPROG
  3078. else
  3079. MKDIRPROG:=$(firstword $(MKDIRPROG))
  3080. endif
  3081. else
  3082. MKDIRPROG:=$(firstword $(MKDIRPROG))
  3083. endif
  3084. endif
  3085. export MKDIRPROG
  3086. ifndef ECHOREDIR
  3087. ifndef inUnix
  3088. ECHOREDIR=echo
  3089. else
  3090. ECHOREDIR=$(ECHO)
  3091. endif
  3092. endif
  3093. ifndef COPY
  3094. COPY:=$(CPPROG) -fp
  3095. endif
  3096. ifndef COPYTREE
  3097. COPYTREE:=$(CPPROG) -Rfp
  3098. endif
  3099. ifndef MKDIRTREE
  3100. MKDIRTREE:=$(MKDIRPROG) -p
  3101. endif
  3102. ifndef MOVE
  3103. MOVE:=$(MVPROG) -f
  3104. endif
  3105. ifndef DEL
  3106. DEL:=$(RMPROG) -f
  3107. endif
  3108. ifndef DELTREE
  3109. DELTREE:=$(RMPROG) -rf
  3110. endif
  3111. ifndef INSTALL
  3112. ifdef inUnix
  3113. INSTALL:=$(GINSTALL) -c -m 644
  3114. else
  3115. INSTALL:=$(COPY)
  3116. endif
  3117. endif
  3118. ifndef INSTALLEXE
  3119. ifdef inUnix
  3120. INSTALLEXE:=$(GINSTALL) -c -m 755
  3121. else
  3122. INSTALLEXE:=$(COPY)
  3123. endif
  3124. endif
  3125. ifndef MKDIR
  3126. MKDIR:=$(GINSTALL) -m 755 -d
  3127. endif
  3128. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  3129. ifndef PPUMOVE
  3130. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  3131. ifeq ($(PPUMOVE),)
  3132. PPUMOVE= __missing_command_PPUMOVE
  3133. else
  3134. PPUMOVE:=$(firstword $(PPUMOVE))
  3135. endif
  3136. endif
  3137. export PPUMOVE
  3138. ifndef FPCMAKE
  3139. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  3140. ifeq ($(FPCMAKE),)
  3141. FPCMAKE= __missing_command_FPCMAKE
  3142. else
  3143. FPCMAKE:=$(firstword $(FPCMAKE))
  3144. endif
  3145. endif
  3146. export FPCMAKE
  3147. ifndef ZIPPROG
  3148. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  3149. ifeq ($(ZIPPROG),)
  3150. ZIPPROG= __missing_command_ZIPPROG
  3151. else
  3152. ZIPPROG:=$(firstword $(ZIPPROG))
  3153. endif
  3154. endif
  3155. export ZIPPROG
  3156. ifndef TARPROG
  3157. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  3158. ifeq ($(TARPROG),)
  3159. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  3160. ifeq ($(TARPROG),)
  3161. TARPROG= __missing_command_TARPROG
  3162. else
  3163. TARPROG:=$(firstword $(TARPROG))
  3164. endif
  3165. else
  3166. TARPROG:=$(firstword $(TARPROG))
  3167. endif
  3168. endif
  3169. export TARPROG
  3170. ASNAME=$(BINUTILSPREFIX)as
  3171. LDNAME=$(BINUTILSPREFIX)ld
  3172. ARNAME=$(BINUTILSPREFIX)ar
  3173. RCNAME=$(BINUTILSPREFIX)rc
  3174. NASMNAME=$(BINUTILSPREFIX)nasm
  3175. ifndef ASPROG
  3176. ifdef CROSSBINDIR
  3177. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  3178. else
  3179. ASPROG=$(ASNAME)
  3180. endif
  3181. endif
  3182. ifndef LDPROG
  3183. ifdef CROSSBINDIR
  3184. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  3185. else
  3186. LDPROG=$(LDNAME)
  3187. endif
  3188. endif
  3189. ifndef RCPROG
  3190. ifdef CROSSBINDIR
  3191. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  3192. else
  3193. RCPROG=$(RCNAME)
  3194. endif
  3195. endif
  3196. ifndef ARPROG
  3197. ifdef CROSSBINDIR
  3198. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  3199. else
  3200. ARPROG=$(ARNAME)
  3201. endif
  3202. endif
  3203. ifndef NASMPROG
  3204. ifdef CROSSBINDIR
  3205. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  3206. else
  3207. NASMPROG=$(NASMNAME)
  3208. endif
  3209. endif
  3210. AS=$(ASPROG)
  3211. LD=$(LDPROG)
  3212. RC=$(RCPROG)
  3213. AR=$(ARPROG)
  3214. NASM=$(NASMPROG)
  3215. ifdef inUnix
  3216. PPAS=./ppas$(SRCBATCHEXT)
  3217. else
  3218. PPAS=ppas$(SRCBATCHEXT)
  3219. endif
  3220. ifdef inUnix
  3221. LDCONFIG=ldconfig
  3222. else
  3223. LDCONFIG=
  3224. endif
  3225. ifdef DATE
  3226. DATESTR:=$(shell $(DATE) +%Y%m%d)
  3227. else
  3228. DATESTR=
  3229. endif
  3230. ZIPOPT=-9
  3231. ZIPEXT=.zip
  3232. ifeq ($(USETAR),bz2)
  3233. TAROPT=vj
  3234. TAREXT=.tar.bz2
  3235. else
  3236. TAROPT=vz
  3237. TAREXT=.tar.gz
  3238. endif
  3239. override REQUIRE_PACKAGES=libndsfpc
  3240. ifeq ($(FULL_TARGET),i386-linux)
  3241. REQUIRE_PACKAGES_RTL=1
  3242. REQUIRE_PACKAGES_PASZLIB=1
  3243. REQUIRE_PACKAGES_FCL-PROCESS=1
  3244. REQUIRE_PACKAGES_HASH=1
  3245. REQUIRE_PACKAGES_LIBTAR=1
  3246. REQUIRE_PACKAGES_FPMKUNIT=1
  3247. REQUIRE_PACKAGES_LIBNDSFPC=1
  3248. endif
  3249. ifeq ($(FULL_TARGET),i386-go32v2)
  3250. REQUIRE_PACKAGES_RTL=1
  3251. REQUIRE_PACKAGES_PASZLIB=1
  3252. REQUIRE_PACKAGES_FCL-PROCESS=1
  3253. REQUIRE_PACKAGES_HASH=1
  3254. REQUIRE_PACKAGES_LIBTAR=1
  3255. REQUIRE_PACKAGES_FPMKUNIT=1
  3256. REQUIRE_PACKAGES_LIBNDSFPC=1
  3257. endif
  3258. ifeq ($(FULL_TARGET),i386-win32)
  3259. REQUIRE_PACKAGES_RTL=1
  3260. REQUIRE_PACKAGES_PASZLIB=1
  3261. REQUIRE_PACKAGES_FCL-PROCESS=1
  3262. REQUIRE_PACKAGES_HASH=1
  3263. REQUIRE_PACKAGES_LIBTAR=1
  3264. REQUIRE_PACKAGES_FPMKUNIT=1
  3265. REQUIRE_PACKAGES_LIBNDSFPC=1
  3266. endif
  3267. ifeq ($(FULL_TARGET),i386-os2)
  3268. REQUIRE_PACKAGES_RTL=1
  3269. REQUIRE_PACKAGES_PASZLIB=1
  3270. REQUIRE_PACKAGES_FCL-PROCESS=1
  3271. REQUIRE_PACKAGES_HASH=1
  3272. REQUIRE_PACKAGES_LIBTAR=1
  3273. REQUIRE_PACKAGES_FPMKUNIT=1
  3274. REQUIRE_PACKAGES_LIBNDSFPC=1
  3275. endif
  3276. ifeq ($(FULL_TARGET),i386-freebsd)
  3277. REQUIRE_PACKAGES_RTL=1
  3278. REQUIRE_PACKAGES_PASZLIB=1
  3279. REQUIRE_PACKAGES_FCL-PROCESS=1
  3280. REQUIRE_PACKAGES_HASH=1
  3281. REQUIRE_PACKAGES_LIBTAR=1
  3282. REQUIRE_PACKAGES_FPMKUNIT=1
  3283. REQUIRE_PACKAGES_LIBNDSFPC=1
  3284. endif
  3285. ifeq ($(FULL_TARGET),i386-beos)
  3286. REQUIRE_PACKAGES_RTL=1
  3287. REQUIRE_PACKAGES_PASZLIB=1
  3288. REQUIRE_PACKAGES_FCL-PROCESS=1
  3289. REQUIRE_PACKAGES_HASH=1
  3290. REQUIRE_PACKAGES_LIBTAR=1
  3291. REQUIRE_PACKAGES_FPMKUNIT=1
  3292. REQUIRE_PACKAGES_LIBNDSFPC=1
  3293. endif
  3294. ifeq ($(FULL_TARGET),i386-haiku)
  3295. REQUIRE_PACKAGES_RTL=1
  3296. REQUIRE_PACKAGES_PASZLIB=1
  3297. REQUIRE_PACKAGES_FCL-PROCESS=1
  3298. REQUIRE_PACKAGES_HASH=1
  3299. REQUIRE_PACKAGES_LIBTAR=1
  3300. REQUIRE_PACKAGES_FPMKUNIT=1
  3301. REQUIRE_PACKAGES_LIBNDSFPC=1
  3302. endif
  3303. ifeq ($(FULL_TARGET),i386-netbsd)
  3304. REQUIRE_PACKAGES_RTL=1
  3305. REQUIRE_PACKAGES_PASZLIB=1
  3306. REQUIRE_PACKAGES_FCL-PROCESS=1
  3307. REQUIRE_PACKAGES_HASH=1
  3308. REQUIRE_PACKAGES_LIBTAR=1
  3309. REQUIRE_PACKAGES_FPMKUNIT=1
  3310. REQUIRE_PACKAGES_LIBNDSFPC=1
  3311. endif
  3312. ifeq ($(FULL_TARGET),i386-solaris)
  3313. REQUIRE_PACKAGES_RTL=1
  3314. REQUIRE_PACKAGES_PASZLIB=1
  3315. REQUIRE_PACKAGES_FCL-PROCESS=1
  3316. REQUIRE_PACKAGES_HASH=1
  3317. REQUIRE_PACKAGES_LIBTAR=1
  3318. REQUIRE_PACKAGES_FPMKUNIT=1
  3319. REQUIRE_PACKAGES_LIBNDSFPC=1
  3320. endif
  3321. ifeq ($(FULL_TARGET),i386-netware)
  3322. REQUIRE_PACKAGES_RTL=1
  3323. REQUIRE_PACKAGES_PASZLIB=1
  3324. REQUIRE_PACKAGES_FCL-PROCESS=1
  3325. REQUIRE_PACKAGES_HASH=1
  3326. REQUIRE_PACKAGES_LIBTAR=1
  3327. REQUIRE_PACKAGES_FPMKUNIT=1
  3328. REQUIRE_PACKAGES_LIBNDSFPC=1
  3329. endif
  3330. ifeq ($(FULL_TARGET),i386-openbsd)
  3331. REQUIRE_PACKAGES_RTL=1
  3332. REQUIRE_PACKAGES_PASZLIB=1
  3333. REQUIRE_PACKAGES_FCL-PROCESS=1
  3334. REQUIRE_PACKAGES_HASH=1
  3335. REQUIRE_PACKAGES_LIBTAR=1
  3336. REQUIRE_PACKAGES_FPMKUNIT=1
  3337. REQUIRE_PACKAGES_LIBNDSFPC=1
  3338. endif
  3339. ifeq ($(FULL_TARGET),i386-wdosx)
  3340. REQUIRE_PACKAGES_RTL=1
  3341. REQUIRE_PACKAGES_PASZLIB=1
  3342. REQUIRE_PACKAGES_FCL-PROCESS=1
  3343. REQUIRE_PACKAGES_HASH=1
  3344. REQUIRE_PACKAGES_LIBTAR=1
  3345. REQUIRE_PACKAGES_FPMKUNIT=1
  3346. REQUIRE_PACKAGES_LIBNDSFPC=1
  3347. endif
  3348. ifeq ($(FULL_TARGET),i386-darwin)
  3349. REQUIRE_PACKAGES_RTL=1
  3350. REQUIRE_PACKAGES_PASZLIB=1
  3351. REQUIRE_PACKAGES_FCL-PROCESS=1
  3352. REQUIRE_PACKAGES_HASH=1
  3353. REQUIRE_PACKAGES_LIBTAR=1
  3354. REQUIRE_PACKAGES_FPMKUNIT=1
  3355. REQUIRE_PACKAGES_LIBNDSFPC=1
  3356. endif
  3357. ifeq ($(FULL_TARGET),i386-emx)
  3358. REQUIRE_PACKAGES_RTL=1
  3359. REQUIRE_PACKAGES_PASZLIB=1
  3360. REQUIRE_PACKAGES_FCL-PROCESS=1
  3361. REQUIRE_PACKAGES_HASH=1
  3362. REQUIRE_PACKAGES_LIBTAR=1
  3363. REQUIRE_PACKAGES_FPMKUNIT=1
  3364. REQUIRE_PACKAGES_LIBNDSFPC=1
  3365. endif
  3366. ifeq ($(FULL_TARGET),i386-watcom)
  3367. REQUIRE_PACKAGES_RTL=1
  3368. REQUIRE_PACKAGES_PASZLIB=1
  3369. REQUIRE_PACKAGES_FCL-PROCESS=1
  3370. REQUIRE_PACKAGES_HASH=1
  3371. REQUIRE_PACKAGES_LIBTAR=1
  3372. REQUIRE_PACKAGES_FPMKUNIT=1
  3373. REQUIRE_PACKAGES_LIBNDSFPC=1
  3374. endif
  3375. ifeq ($(FULL_TARGET),i386-netwlibc)
  3376. REQUIRE_PACKAGES_RTL=1
  3377. REQUIRE_PACKAGES_PASZLIB=1
  3378. REQUIRE_PACKAGES_FCL-PROCESS=1
  3379. REQUIRE_PACKAGES_HASH=1
  3380. REQUIRE_PACKAGES_LIBTAR=1
  3381. REQUIRE_PACKAGES_FPMKUNIT=1
  3382. REQUIRE_PACKAGES_LIBNDSFPC=1
  3383. endif
  3384. ifeq ($(FULL_TARGET),i386-wince)
  3385. REQUIRE_PACKAGES_RTL=1
  3386. REQUIRE_PACKAGES_PASZLIB=1
  3387. REQUIRE_PACKAGES_FCL-PROCESS=1
  3388. REQUIRE_PACKAGES_HASH=1
  3389. REQUIRE_PACKAGES_LIBTAR=1
  3390. REQUIRE_PACKAGES_FPMKUNIT=1
  3391. REQUIRE_PACKAGES_LIBNDSFPC=1
  3392. endif
  3393. ifeq ($(FULL_TARGET),i386-embedded)
  3394. REQUIRE_PACKAGES_RTL=1
  3395. REQUIRE_PACKAGES_PASZLIB=1
  3396. REQUIRE_PACKAGES_FCL-PROCESS=1
  3397. REQUIRE_PACKAGES_HASH=1
  3398. REQUIRE_PACKAGES_LIBTAR=1
  3399. REQUIRE_PACKAGES_FPMKUNIT=1
  3400. REQUIRE_PACKAGES_LIBNDSFPC=1
  3401. endif
  3402. ifeq ($(FULL_TARGET),i386-symbian)
  3403. REQUIRE_PACKAGES_RTL=1
  3404. REQUIRE_PACKAGES_PASZLIB=1
  3405. REQUIRE_PACKAGES_FCL-PROCESS=1
  3406. REQUIRE_PACKAGES_HASH=1
  3407. REQUIRE_PACKAGES_LIBTAR=1
  3408. REQUIRE_PACKAGES_FPMKUNIT=1
  3409. REQUIRE_PACKAGES_LIBNDSFPC=1
  3410. endif
  3411. ifeq ($(FULL_TARGET),i386-nativent)
  3412. REQUIRE_PACKAGES_RTL=1
  3413. REQUIRE_PACKAGES_PASZLIB=1
  3414. REQUIRE_PACKAGES_FCL-PROCESS=1
  3415. REQUIRE_PACKAGES_HASH=1
  3416. REQUIRE_PACKAGES_LIBTAR=1
  3417. REQUIRE_PACKAGES_FPMKUNIT=1
  3418. REQUIRE_PACKAGES_LIBNDSFPC=1
  3419. endif
  3420. ifeq ($(FULL_TARGET),i386-iphonesim)
  3421. REQUIRE_PACKAGES_RTL=1
  3422. REQUIRE_PACKAGES_PASZLIB=1
  3423. REQUIRE_PACKAGES_FCL-PROCESS=1
  3424. REQUIRE_PACKAGES_HASH=1
  3425. REQUIRE_PACKAGES_LIBTAR=1
  3426. REQUIRE_PACKAGES_FPMKUNIT=1
  3427. REQUIRE_PACKAGES_LIBNDSFPC=1
  3428. endif
  3429. ifeq ($(FULL_TARGET),i386-android)
  3430. REQUIRE_PACKAGES_RTL=1
  3431. REQUIRE_PACKAGES_PASZLIB=1
  3432. REQUIRE_PACKAGES_FCL-PROCESS=1
  3433. REQUIRE_PACKAGES_HASH=1
  3434. REQUIRE_PACKAGES_LIBTAR=1
  3435. REQUIRE_PACKAGES_FPMKUNIT=1
  3436. REQUIRE_PACKAGES_LIBNDSFPC=1
  3437. endif
  3438. ifeq ($(FULL_TARGET),i386-aros)
  3439. REQUIRE_PACKAGES_RTL=1
  3440. REQUIRE_PACKAGES_PASZLIB=1
  3441. REQUIRE_PACKAGES_FCL-PROCESS=1
  3442. REQUIRE_PACKAGES_HASH=1
  3443. REQUIRE_PACKAGES_LIBTAR=1
  3444. REQUIRE_PACKAGES_FPMKUNIT=1
  3445. REQUIRE_PACKAGES_LIBNDSFPC=1
  3446. endif
  3447. ifeq ($(FULL_TARGET),m68k-linux)
  3448. REQUIRE_PACKAGES_RTL=1
  3449. REQUIRE_PACKAGES_PASZLIB=1
  3450. REQUIRE_PACKAGES_FCL-PROCESS=1
  3451. REQUIRE_PACKAGES_HASH=1
  3452. REQUIRE_PACKAGES_LIBTAR=1
  3453. REQUIRE_PACKAGES_FPMKUNIT=1
  3454. REQUIRE_PACKAGES_LIBNDSFPC=1
  3455. endif
  3456. ifeq ($(FULL_TARGET),m68k-netbsd)
  3457. REQUIRE_PACKAGES_RTL=1
  3458. REQUIRE_PACKAGES_PASZLIB=1
  3459. REQUIRE_PACKAGES_FCL-PROCESS=1
  3460. REQUIRE_PACKAGES_HASH=1
  3461. REQUIRE_PACKAGES_LIBTAR=1
  3462. REQUIRE_PACKAGES_FPMKUNIT=1
  3463. REQUIRE_PACKAGES_LIBNDSFPC=1
  3464. endif
  3465. ifeq ($(FULL_TARGET),m68k-amiga)
  3466. REQUIRE_PACKAGES_RTL=1
  3467. REQUIRE_PACKAGES_PASZLIB=1
  3468. REQUIRE_PACKAGES_FCL-PROCESS=1
  3469. REQUIRE_PACKAGES_HASH=1
  3470. REQUIRE_PACKAGES_LIBTAR=1
  3471. REQUIRE_PACKAGES_FPMKUNIT=1
  3472. REQUIRE_PACKAGES_LIBNDSFPC=1
  3473. endif
  3474. ifeq ($(FULL_TARGET),m68k-atari)
  3475. REQUIRE_PACKAGES_RTL=1
  3476. REQUIRE_PACKAGES_PASZLIB=1
  3477. REQUIRE_PACKAGES_FCL-PROCESS=1
  3478. REQUIRE_PACKAGES_HASH=1
  3479. REQUIRE_PACKAGES_LIBTAR=1
  3480. REQUIRE_PACKAGES_FPMKUNIT=1
  3481. REQUIRE_PACKAGES_LIBNDSFPC=1
  3482. endif
  3483. ifeq ($(FULL_TARGET),m68k-palmos)
  3484. REQUIRE_PACKAGES_RTL=1
  3485. REQUIRE_PACKAGES_PASZLIB=1
  3486. REQUIRE_PACKAGES_FCL-PROCESS=1
  3487. REQUIRE_PACKAGES_HASH=1
  3488. REQUIRE_PACKAGES_LIBTAR=1
  3489. REQUIRE_PACKAGES_FPMKUNIT=1
  3490. REQUIRE_PACKAGES_LIBNDSFPC=1
  3491. endif
  3492. ifeq ($(FULL_TARGET),m68k-macosclassic)
  3493. REQUIRE_PACKAGES_RTL=1
  3494. REQUIRE_PACKAGES_PASZLIB=1
  3495. REQUIRE_PACKAGES_FCL-PROCESS=1
  3496. REQUIRE_PACKAGES_HASH=1
  3497. REQUIRE_PACKAGES_LIBTAR=1
  3498. REQUIRE_PACKAGES_FPMKUNIT=1
  3499. REQUIRE_PACKAGES_LIBNDSFPC=1
  3500. endif
  3501. ifeq ($(FULL_TARGET),m68k-embedded)
  3502. REQUIRE_PACKAGES_RTL=1
  3503. REQUIRE_PACKAGES_PASZLIB=1
  3504. REQUIRE_PACKAGES_FCL-PROCESS=1
  3505. REQUIRE_PACKAGES_HASH=1
  3506. REQUIRE_PACKAGES_LIBTAR=1
  3507. REQUIRE_PACKAGES_FPMKUNIT=1
  3508. REQUIRE_PACKAGES_LIBNDSFPC=1
  3509. endif
  3510. ifeq ($(FULL_TARGET),powerpc-linux)
  3511. REQUIRE_PACKAGES_RTL=1
  3512. REQUIRE_PACKAGES_PASZLIB=1
  3513. REQUIRE_PACKAGES_FCL-PROCESS=1
  3514. REQUIRE_PACKAGES_HASH=1
  3515. REQUIRE_PACKAGES_LIBTAR=1
  3516. REQUIRE_PACKAGES_FPMKUNIT=1
  3517. REQUIRE_PACKAGES_LIBNDSFPC=1
  3518. endif
  3519. ifeq ($(FULL_TARGET),powerpc-netbsd)
  3520. REQUIRE_PACKAGES_RTL=1
  3521. REQUIRE_PACKAGES_PASZLIB=1
  3522. REQUIRE_PACKAGES_FCL-PROCESS=1
  3523. REQUIRE_PACKAGES_HASH=1
  3524. REQUIRE_PACKAGES_LIBTAR=1
  3525. REQUIRE_PACKAGES_FPMKUNIT=1
  3526. REQUIRE_PACKAGES_LIBNDSFPC=1
  3527. endif
  3528. ifeq ($(FULL_TARGET),powerpc-amiga)
  3529. REQUIRE_PACKAGES_RTL=1
  3530. REQUIRE_PACKAGES_PASZLIB=1
  3531. REQUIRE_PACKAGES_FCL-PROCESS=1
  3532. REQUIRE_PACKAGES_HASH=1
  3533. REQUIRE_PACKAGES_LIBTAR=1
  3534. REQUIRE_PACKAGES_FPMKUNIT=1
  3535. REQUIRE_PACKAGES_LIBNDSFPC=1
  3536. endif
  3537. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  3538. REQUIRE_PACKAGES_RTL=1
  3539. REQUIRE_PACKAGES_PASZLIB=1
  3540. REQUIRE_PACKAGES_FCL-PROCESS=1
  3541. REQUIRE_PACKAGES_HASH=1
  3542. REQUIRE_PACKAGES_LIBTAR=1
  3543. REQUIRE_PACKAGES_FPMKUNIT=1
  3544. REQUIRE_PACKAGES_LIBNDSFPC=1
  3545. endif
  3546. ifeq ($(FULL_TARGET),powerpc-darwin)
  3547. REQUIRE_PACKAGES_RTL=1
  3548. REQUIRE_PACKAGES_PASZLIB=1
  3549. REQUIRE_PACKAGES_FCL-PROCESS=1
  3550. REQUIRE_PACKAGES_HASH=1
  3551. REQUIRE_PACKAGES_LIBTAR=1
  3552. REQUIRE_PACKAGES_FPMKUNIT=1
  3553. REQUIRE_PACKAGES_LIBNDSFPC=1
  3554. endif
  3555. ifeq ($(FULL_TARGET),powerpc-morphos)
  3556. REQUIRE_PACKAGES_RTL=1
  3557. REQUIRE_PACKAGES_PASZLIB=1
  3558. REQUIRE_PACKAGES_FCL-PROCESS=1
  3559. REQUIRE_PACKAGES_HASH=1
  3560. REQUIRE_PACKAGES_LIBTAR=1
  3561. REQUIRE_PACKAGES_FPMKUNIT=1
  3562. REQUIRE_PACKAGES_LIBNDSFPC=1
  3563. endif
  3564. ifeq ($(FULL_TARGET),powerpc-embedded)
  3565. REQUIRE_PACKAGES_RTL=1
  3566. REQUIRE_PACKAGES_PASZLIB=1
  3567. REQUIRE_PACKAGES_FCL-PROCESS=1
  3568. REQUIRE_PACKAGES_HASH=1
  3569. REQUIRE_PACKAGES_LIBTAR=1
  3570. REQUIRE_PACKAGES_FPMKUNIT=1
  3571. REQUIRE_PACKAGES_LIBNDSFPC=1
  3572. endif
  3573. ifeq ($(FULL_TARGET),powerpc-wii)
  3574. REQUIRE_PACKAGES_RTL=1
  3575. REQUIRE_PACKAGES_PASZLIB=1
  3576. REQUIRE_PACKAGES_FCL-PROCESS=1
  3577. REQUIRE_PACKAGES_HASH=1
  3578. REQUIRE_PACKAGES_LIBTAR=1
  3579. REQUIRE_PACKAGES_FPMKUNIT=1
  3580. REQUIRE_PACKAGES_LIBNDSFPC=1
  3581. endif
  3582. ifeq ($(FULL_TARGET),powerpc-aix)
  3583. REQUIRE_PACKAGES_RTL=1
  3584. REQUIRE_PACKAGES_PASZLIB=1
  3585. REQUIRE_PACKAGES_FCL-PROCESS=1
  3586. REQUIRE_PACKAGES_HASH=1
  3587. REQUIRE_PACKAGES_LIBTAR=1
  3588. REQUIRE_PACKAGES_FPMKUNIT=1
  3589. REQUIRE_PACKAGES_LIBNDSFPC=1
  3590. endif
  3591. ifeq ($(FULL_TARGET),sparc-linux)
  3592. REQUIRE_PACKAGES_RTL=1
  3593. REQUIRE_PACKAGES_PASZLIB=1
  3594. REQUIRE_PACKAGES_FCL-PROCESS=1
  3595. REQUIRE_PACKAGES_HASH=1
  3596. REQUIRE_PACKAGES_LIBTAR=1
  3597. REQUIRE_PACKAGES_FPMKUNIT=1
  3598. REQUIRE_PACKAGES_LIBNDSFPC=1
  3599. endif
  3600. ifeq ($(FULL_TARGET),sparc-netbsd)
  3601. REQUIRE_PACKAGES_RTL=1
  3602. REQUIRE_PACKAGES_PASZLIB=1
  3603. REQUIRE_PACKAGES_FCL-PROCESS=1
  3604. REQUIRE_PACKAGES_HASH=1
  3605. REQUIRE_PACKAGES_LIBTAR=1
  3606. REQUIRE_PACKAGES_FPMKUNIT=1
  3607. REQUIRE_PACKAGES_LIBNDSFPC=1
  3608. endif
  3609. ifeq ($(FULL_TARGET),sparc-solaris)
  3610. REQUIRE_PACKAGES_RTL=1
  3611. REQUIRE_PACKAGES_PASZLIB=1
  3612. REQUIRE_PACKAGES_FCL-PROCESS=1
  3613. REQUIRE_PACKAGES_HASH=1
  3614. REQUIRE_PACKAGES_LIBTAR=1
  3615. REQUIRE_PACKAGES_FPMKUNIT=1
  3616. REQUIRE_PACKAGES_LIBNDSFPC=1
  3617. endif
  3618. ifeq ($(FULL_TARGET),sparc-embedded)
  3619. REQUIRE_PACKAGES_RTL=1
  3620. REQUIRE_PACKAGES_PASZLIB=1
  3621. REQUIRE_PACKAGES_FCL-PROCESS=1
  3622. REQUIRE_PACKAGES_HASH=1
  3623. REQUIRE_PACKAGES_LIBTAR=1
  3624. REQUIRE_PACKAGES_FPMKUNIT=1
  3625. REQUIRE_PACKAGES_LIBNDSFPC=1
  3626. endif
  3627. ifeq ($(FULL_TARGET),x86_64-linux)
  3628. REQUIRE_PACKAGES_RTL=1
  3629. REQUIRE_PACKAGES_PASZLIB=1
  3630. REQUIRE_PACKAGES_FCL-PROCESS=1
  3631. REQUIRE_PACKAGES_HASH=1
  3632. REQUIRE_PACKAGES_LIBTAR=1
  3633. REQUIRE_PACKAGES_FPMKUNIT=1
  3634. REQUIRE_PACKAGES_LIBNDSFPC=1
  3635. endif
  3636. ifeq ($(FULL_TARGET),x86_64-freebsd)
  3637. REQUIRE_PACKAGES_RTL=1
  3638. REQUIRE_PACKAGES_PASZLIB=1
  3639. REQUIRE_PACKAGES_FCL-PROCESS=1
  3640. REQUIRE_PACKAGES_HASH=1
  3641. REQUIRE_PACKAGES_LIBTAR=1
  3642. REQUIRE_PACKAGES_FPMKUNIT=1
  3643. REQUIRE_PACKAGES_LIBNDSFPC=1
  3644. endif
  3645. ifeq ($(FULL_TARGET),x86_64-haiku)
  3646. REQUIRE_PACKAGES_RTL=1
  3647. REQUIRE_PACKAGES_PASZLIB=1
  3648. REQUIRE_PACKAGES_FCL-PROCESS=1
  3649. REQUIRE_PACKAGES_HASH=1
  3650. REQUIRE_PACKAGES_LIBTAR=1
  3651. REQUIRE_PACKAGES_FPMKUNIT=1
  3652. REQUIRE_PACKAGES_LIBNDSFPC=1
  3653. endif
  3654. ifeq ($(FULL_TARGET),x86_64-netbsd)
  3655. REQUIRE_PACKAGES_RTL=1
  3656. REQUIRE_PACKAGES_PASZLIB=1
  3657. REQUIRE_PACKAGES_FCL-PROCESS=1
  3658. REQUIRE_PACKAGES_HASH=1
  3659. REQUIRE_PACKAGES_LIBTAR=1
  3660. REQUIRE_PACKAGES_FPMKUNIT=1
  3661. REQUIRE_PACKAGES_LIBNDSFPC=1
  3662. endif
  3663. ifeq ($(FULL_TARGET),x86_64-solaris)
  3664. REQUIRE_PACKAGES_RTL=1
  3665. REQUIRE_PACKAGES_PASZLIB=1
  3666. REQUIRE_PACKAGES_FCL-PROCESS=1
  3667. REQUIRE_PACKAGES_HASH=1
  3668. REQUIRE_PACKAGES_LIBTAR=1
  3669. REQUIRE_PACKAGES_FPMKUNIT=1
  3670. REQUIRE_PACKAGES_LIBNDSFPC=1
  3671. endif
  3672. ifeq ($(FULL_TARGET),x86_64-openbsd)
  3673. REQUIRE_PACKAGES_RTL=1
  3674. REQUIRE_PACKAGES_PASZLIB=1
  3675. REQUIRE_PACKAGES_FCL-PROCESS=1
  3676. REQUIRE_PACKAGES_HASH=1
  3677. REQUIRE_PACKAGES_LIBTAR=1
  3678. REQUIRE_PACKAGES_FPMKUNIT=1
  3679. REQUIRE_PACKAGES_LIBNDSFPC=1
  3680. endif
  3681. ifeq ($(FULL_TARGET),x86_64-darwin)
  3682. REQUIRE_PACKAGES_RTL=1
  3683. REQUIRE_PACKAGES_PASZLIB=1
  3684. REQUIRE_PACKAGES_FCL-PROCESS=1
  3685. REQUIRE_PACKAGES_HASH=1
  3686. REQUIRE_PACKAGES_LIBTAR=1
  3687. REQUIRE_PACKAGES_FPMKUNIT=1
  3688. REQUIRE_PACKAGES_LIBNDSFPC=1
  3689. endif
  3690. ifeq ($(FULL_TARGET),x86_64-win64)
  3691. REQUIRE_PACKAGES_RTL=1
  3692. REQUIRE_PACKAGES_PASZLIB=1
  3693. REQUIRE_PACKAGES_FCL-PROCESS=1
  3694. REQUIRE_PACKAGES_HASH=1
  3695. REQUIRE_PACKAGES_LIBTAR=1
  3696. REQUIRE_PACKAGES_FPMKUNIT=1
  3697. REQUIRE_PACKAGES_LIBNDSFPC=1
  3698. endif
  3699. ifeq ($(FULL_TARGET),x86_64-embedded)
  3700. REQUIRE_PACKAGES_RTL=1
  3701. REQUIRE_PACKAGES_PASZLIB=1
  3702. REQUIRE_PACKAGES_FCL-PROCESS=1
  3703. REQUIRE_PACKAGES_HASH=1
  3704. REQUIRE_PACKAGES_LIBTAR=1
  3705. REQUIRE_PACKAGES_FPMKUNIT=1
  3706. REQUIRE_PACKAGES_LIBNDSFPC=1
  3707. endif
  3708. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  3709. REQUIRE_PACKAGES_RTL=1
  3710. REQUIRE_PACKAGES_PASZLIB=1
  3711. REQUIRE_PACKAGES_FCL-PROCESS=1
  3712. REQUIRE_PACKAGES_HASH=1
  3713. REQUIRE_PACKAGES_LIBTAR=1
  3714. REQUIRE_PACKAGES_FPMKUNIT=1
  3715. REQUIRE_PACKAGES_LIBNDSFPC=1
  3716. endif
  3717. ifeq ($(FULL_TARGET),x86_64-android)
  3718. REQUIRE_PACKAGES_RTL=1
  3719. REQUIRE_PACKAGES_PASZLIB=1
  3720. REQUIRE_PACKAGES_FCL-PROCESS=1
  3721. REQUIRE_PACKAGES_HASH=1
  3722. REQUIRE_PACKAGES_LIBTAR=1
  3723. REQUIRE_PACKAGES_FPMKUNIT=1
  3724. REQUIRE_PACKAGES_LIBNDSFPC=1
  3725. endif
  3726. ifeq ($(FULL_TARGET),x86_64-aros)
  3727. REQUIRE_PACKAGES_RTL=1
  3728. REQUIRE_PACKAGES_PASZLIB=1
  3729. REQUIRE_PACKAGES_FCL-PROCESS=1
  3730. REQUIRE_PACKAGES_HASH=1
  3731. REQUIRE_PACKAGES_LIBTAR=1
  3732. REQUIRE_PACKAGES_FPMKUNIT=1
  3733. REQUIRE_PACKAGES_LIBNDSFPC=1
  3734. endif
  3735. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  3736. REQUIRE_PACKAGES_RTL=1
  3737. REQUIRE_PACKAGES_PASZLIB=1
  3738. REQUIRE_PACKAGES_FCL-PROCESS=1
  3739. REQUIRE_PACKAGES_HASH=1
  3740. REQUIRE_PACKAGES_LIBTAR=1
  3741. REQUIRE_PACKAGES_FPMKUNIT=1
  3742. REQUIRE_PACKAGES_LIBNDSFPC=1
  3743. endif
  3744. ifeq ($(FULL_TARGET),arm-linux)
  3745. REQUIRE_PACKAGES_RTL=1
  3746. REQUIRE_PACKAGES_PASZLIB=1
  3747. REQUIRE_PACKAGES_FCL-PROCESS=1
  3748. REQUIRE_PACKAGES_HASH=1
  3749. REQUIRE_PACKAGES_LIBTAR=1
  3750. REQUIRE_PACKAGES_FPMKUNIT=1
  3751. REQUIRE_PACKAGES_LIBNDSFPC=1
  3752. endif
  3753. ifeq ($(FULL_TARGET),arm-netbsd)
  3754. REQUIRE_PACKAGES_RTL=1
  3755. REQUIRE_PACKAGES_PASZLIB=1
  3756. REQUIRE_PACKAGES_FCL-PROCESS=1
  3757. REQUIRE_PACKAGES_HASH=1
  3758. REQUIRE_PACKAGES_LIBTAR=1
  3759. REQUIRE_PACKAGES_FPMKUNIT=1
  3760. REQUIRE_PACKAGES_LIBNDSFPC=1
  3761. endif
  3762. ifeq ($(FULL_TARGET),arm-palmos)
  3763. REQUIRE_PACKAGES_RTL=1
  3764. REQUIRE_PACKAGES_PASZLIB=1
  3765. REQUIRE_PACKAGES_FCL-PROCESS=1
  3766. REQUIRE_PACKAGES_HASH=1
  3767. REQUIRE_PACKAGES_LIBTAR=1
  3768. REQUIRE_PACKAGES_FPMKUNIT=1
  3769. REQUIRE_PACKAGES_LIBNDSFPC=1
  3770. endif
  3771. ifeq ($(FULL_TARGET),arm-wince)
  3772. REQUIRE_PACKAGES_RTL=1
  3773. REQUIRE_PACKAGES_PASZLIB=1
  3774. REQUIRE_PACKAGES_FCL-PROCESS=1
  3775. REQUIRE_PACKAGES_HASH=1
  3776. REQUIRE_PACKAGES_LIBTAR=1
  3777. REQUIRE_PACKAGES_FPMKUNIT=1
  3778. REQUIRE_PACKAGES_LIBNDSFPC=1
  3779. endif
  3780. ifeq ($(FULL_TARGET),arm-gba)
  3781. REQUIRE_PACKAGES_RTL=1
  3782. REQUIRE_PACKAGES_PASZLIB=1
  3783. REQUIRE_PACKAGES_FCL-PROCESS=1
  3784. REQUIRE_PACKAGES_HASH=1
  3785. REQUIRE_PACKAGES_LIBTAR=1
  3786. REQUIRE_PACKAGES_FPMKUNIT=1
  3787. REQUIRE_PACKAGES_LIBNDSFPC=1
  3788. endif
  3789. ifeq ($(FULL_TARGET),arm-nds)
  3790. REQUIRE_PACKAGES_RTL=1
  3791. REQUIRE_PACKAGES_PASZLIB=1
  3792. REQUIRE_PACKAGES_FCL-PROCESS=1
  3793. REQUIRE_PACKAGES_HASH=1
  3794. REQUIRE_PACKAGES_LIBTAR=1
  3795. REQUIRE_PACKAGES_FPMKUNIT=1
  3796. REQUIRE_PACKAGES_LIBNDSFPC=1
  3797. endif
  3798. ifeq ($(FULL_TARGET),arm-embedded)
  3799. REQUIRE_PACKAGES_RTL=1
  3800. REQUIRE_PACKAGES_PASZLIB=1
  3801. REQUIRE_PACKAGES_FCL-PROCESS=1
  3802. REQUIRE_PACKAGES_HASH=1
  3803. REQUIRE_PACKAGES_LIBTAR=1
  3804. REQUIRE_PACKAGES_FPMKUNIT=1
  3805. REQUIRE_PACKAGES_LIBNDSFPC=1
  3806. endif
  3807. ifeq ($(FULL_TARGET),arm-symbian)
  3808. REQUIRE_PACKAGES_RTL=1
  3809. REQUIRE_PACKAGES_PASZLIB=1
  3810. REQUIRE_PACKAGES_FCL-PROCESS=1
  3811. REQUIRE_PACKAGES_HASH=1
  3812. REQUIRE_PACKAGES_LIBTAR=1
  3813. REQUIRE_PACKAGES_FPMKUNIT=1
  3814. REQUIRE_PACKAGES_LIBNDSFPC=1
  3815. endif
  3816. ifeq ($(FULL_TARGET),arm-android)
  3817. REQUIRE_PACKAGES_RTL=1
  3818. REQUIRE_PACKAGES_PASZLIB=1
  3819. REQUIRE_PACKAGES_FCL-PROCESS=1
  3820. REQUIRE_PACKAGES_HASH=1
  3821. REQUIRE_PACKAGES_LIBTAR=1
  3822. REQUIRE_PACKAGES_FPMKUNIT=1
  3823. REQUIRE_PACKAGES_LIBNDSFPC=1
  3824. endif
  3825. ifeq ($(FULL_TARGET),arm-aros)
  3826. REQUIRE_PACKAGES_RTL=1
  3827. REQUIRE_PACKAGES_PASZLIB=1
  3828. REQUIRE_PACKAGES_FCL-PROCESS=1
  3829. REQUIRE_PACKAGES_HASH=1
  3830. REQUIRE_PACKAGES_LIBTAR=1
  3831. REQUIRE_PACKAGES_FPMKUNIT=1
  3832. REQUIRE_PACKAGES_LIBNDSFPC=1
  3833. endif
  3834. ifeq ($(FULL_TARGET),arm-freertos)
  3835. REQUIRE_PACKAGES_RTL=1
  3836. REQUIRE_PACKAGES_PASZLIB=1
  3837. REQUIRE_PACKAGES_FCL-PROCESS=1
  3838. REQUIRE_PACKAGES_HASH=1
  3839. REQUIRE_PACKAGES_LIBTAR=1
  3840. REQUIRE_PACKAGES_FPMKUNIT=1
  3841. REQUIRE_PACKAGES_LIBNDSFPC=1
  3842. endif
  3843. ifeq ($(FULL_TARGET),arm-ios)
  3844. REQUIRE_PACKAGES_RTL=1
  3845. REQUIRE_PACKAGES_PASZLIB=1
  3846. REQUIRE_PACKAGES_FCL-PROCESS=1
  3847. REQUIRE_PACKAGES_HASH=1
  3848. REQUIRE_PACKAGES_LIBTAR=1
  3849. REQUIRE_PACKAGES_FPMKUNIT=1
  3850. REQUIRE_PACKAGES_LIBNDSFPC=1
  3851. endif
  3852. ifeq ($(FULL_TARGET),powerpc64-linux)
  3853. REQUIRE_PACKAGES_RTL=1
  3854. REQUIRE_PACKAGES_PASZLIB=1
  3855. REQUIRE_PACKAGES_FCL-PROCESS=1
  3856. REQUIRE_PACKAGES_HASH=1
  3857. REQUIRE_PACKAGES_LIBTAR=1
  3858. REQUIRE_PACKAGES_FPMKUNIT=1
  3859. REQUIRE_PACKAGES_LIBNDSFPC=1
  3860. endif
  3861. ifeq ($(FULL_TARGET),powerpc64-darwin)
  3862. REQUIRE_PACKAGES_RTL=1
  3863. REQUIRE_PACKAGES_PASZLIB=1
  3864. REQUIRE_PACKAGES_FCL-PROCESS=1
  3865. REQUIRE_PACKAGES_HASH=1
  3866. REQUIRE_PACKAGES_LIBTAR=1
  3867. REQUIRE_PACKAGES_FPMKUNIT=1
  3868. REQUIRE_PACKAGES_LIBNDSFPC=1
  3869. endif
  3870. ifeq ($(FULL_TARGET),powerpc64-embedded)
  3871. REQUIRE_PACKAGES_RTL=1
  3872. REQUIRE_PACKAGES_PASZLIB=1
  3873. REQUIRE_PACKAGES_FCL-PROCESS=1
  3874. REQUIRE_PACKAGES_HASH=1
  3875. REQUIRE_PACKAGES_LIBTAR=1
  3876. REQUIRE_PACKAGES_FPMKUNIT=1
  3877. REQUIRE_PACKAGES_LIBNDSFPC=1
  3878. endif
  3879. ifeq ($(FULL_TARGET),powerpc64-aix)
  3880. REQUIRE_PACKAGES_RTL=1
  3881. REQUIRE_PACKAGES_PASZLIB=1
  3882. REQUIRE_PACKAGES_FCL-PROCESS=1
  3883. REQUIRE_PACKAGES_HASH=1
  3884. REQUIRE_PACKAGES_LIBTAR=1
  3885. REQUIRE_PACKAGES_FPMKUNIT=1
  3886. REQUIRE_PACKAGES_LIBNDSFPC=1
  3887. endif
  3888. ifeq ($(FULL_TARGET),avr-embedded)
  3889. REQUIRE_PACKAGES_RTL=1
  3890. REQUIRE_PACKAGES_PASZLIB=1
  3891. REQUIRE_PACKAGES_FCL-PROCESS=1
  3892. REQUIRE_PACKAGES_HASH=1
  3893. REQUIRE_PACKAGES_LIBTAR=1
  3894. REQUIRE_PACKAGES_FPMKUNIT=1
  3895. REQUIRE_PACKAGES_LIBNDSFPC=1
  3896. endif
  3897. ifeq ($(FULL_TARGET),armeb-linux)
  3898. REQUIRE_PACKAGES_RTL=1
  3899. REQUIRE_PACKAGES_PASZLIB=1
  3900. REQUIRE_PACKAGES_FCL-PROCESS=1
  3901. REQUIRE_PACKAGES_HASH=1
  3902. REQUIRE_PACKAGES_LIBTAR=1
  3903. REQUIRE_PACKAGES_FPMKUNIT=1
  3904. REQUIRE_PACKAGES_LIBNDSFPC=1
  3905. endif
  3906. ifeq ($(FULL_TARGET),armeb-embedded)
  3907. REQUIRE_PACKAGES_RTL=1
  3908. REQUIRE_PACKAGES_PASZLIB=1
  3909. REQUIRE_PACKAGES_FCL-PROCESS=1
  3910. REQUIRE_PACKAGES_HASH=1
  3911. REQUIRE_PACKAGES_LIBTAR=1
  3912. REQUIRE_PACKAGES_FPMKUNIT=1
  3913. REQUIRE_PACKAGES_LIBNDSFPC=1
  3914. endif
  3915. ifeq ($(FULL_TARGET),mips-linux)
  3916. REQUIRE_PACKAGES_RTL=1
  3917. REQUIRE_PACKAGES_PASZLIB=1
  3918. REQUIRE_PACKAGES_FCL-PROCESS=1
  3919. REQUIRE_PACKAGES_HASH=1
  3920. REQUIRE_PACKAGES_LIBTAR=1
  3921. REQUIRE_PACKAGES_FPMKUNIT=1
  3922. REQUIRE_PACKAGES_LIBNDSFPC=1
  3923. endif
  3924. ifeq ($(FULL_TARGET),mipsel-linux)
  3925. REQUIRE_PACKAGES_RTL=1
  3926. REQUIRE_PACKAGES_PASZLIB=1
  3927. REQUIRE_PACKAGES_FCL-PROCESS=1
  3928. REQUIRE_PACKAGES_HASH=1
  3929. REQUIRE_PACKAGES_LIBTAR=1
  3930. REQUIRE_PACKAGES_FPMKUNIT=1
  3931. REQUIRE_PACKAGES_LIBNDSFPC=1
  3932. endif
  3933. ifeq ($(FULL_TARGET),mipsel-embedded)
  3934. REQUIRE_PACKAGES_RTL=1
  3935. REQUIRE_PACKAGES_PASZLIB=1
  3936. REQUIRE_PACKAGES_FCL-PROCESS=1
  3937. REQUIRE_PACKAGES_HASH=1
  3938. REQUIRE_PACKAGES_LIBTAR=1
  3939. REQUIRE_PACKAGES_FPMKUNIT=1
  3940. REQUIRE_PACKAGES_LIBNDSFPC=1
  3941. endif
  3942. ifeq ($(FULL_TARGET),mipsel-android)
  3943. REQUIRE_PACKAGES_RTL=1
  3944. REQUIRE_PACKAGES_PASZLIB=1
  3945. REQUIRE_PACKAGES_FCL-PROCESS=1
  3946. REQUIRE_PACKAGES_HASH=1
  3947. REQUIRE_PACKAGES_LIBTAR=1
  3948. REQUIRE_PACKAGES_FPMKUNIT=1
  3949. REQUIRE_PACKAGES_LIBNDSFPC=1
  3950. endif
  3951. ifeq ($(FULL_TARGET),mips64el-linux)
  3952. REQUIRE_PACKAGES_RTL=1
  3953. REQUIRE_PACKAGES_PASZLIB=1
  3954. REQUIRE_PACKAGES_FCL-PROCESS=1
  3955. REQUIRE_PACKAGES_HASH=1
  3956. REQUIRE_PACKAGES_LIBTAR=1
  3957. REQUIRE_PACKAGES_FPMKUNIT=1
  3958. REQUIRE_PACKAGES_LIBNDSFPC=1
  3959. endif
  3960. ifeq ($(FULL_TARGET),jvm-java)
  3961. REQUIRE_PACKAGES_RTL=1
  3962. REQUIRE_PACKAGES_PASZLIB=1
  3963. REQUIRE_PACKAGES_FCL-PROCESS=1
  3964. REQUIRE_PACKAGES_HASH=1
  3965. REQUIRE_PACKAGES_LIBTAR=1
  3966. REQUIRE_PACKAGES_FPMKUNIT=1
  3967. REQUIRE_PACKAGES_LIBNDSFPC=1
  3968. endif
  3969. ifeq ($(FULL_TARGET),jvm-android)
  3970. REQUIRE_PACKAGES_RTL=1
  3971. REQUIRE_PACKAGES_PASZLIB=1
  3972. REQUIRE_PACKAGES_FCL-PROCESS=1
  3973. REQUIRE_PACKAGES_HASH=1
  3974. REQUIRE_PACKAGES_LIBTAR=1
  3975. REQUIRE_PACKAGES_FPMKUNIT=1
  3976. REQUIRE_PACKAGES_LIBNDSFPC=1
  3977. endif
  3978. ifeq ($(FULL_TARGET),i8086-embedded)
  3979. REQUIRE_PACKAGES_RTL=1
  3980. REQUIRE_PACKAGES_PASZLIB=1
  3981. REQUIRE_PACKAGES_FCL-PROCESS=1
  3982. REQUIRE_PACKAGES_HASH=1
  3983. REQUIRE_PACKAGES_LIBTAR=1
  3984. REQUIRE_PACKAGES_FPMKUNIT=1
  3985. REQUIRE_PACKAGES_LIBNDSFPC=1
  3986. endif
  3987. ifeq ($(FULL_TARGET),i8086-msdos)
  3988. REQUIRE_PACKAGES_RTL=1
  3989. REQUIRE_PACKAGES_PASZLIB=1
  3990. REQUIRE_PACKAGES_FCL-PROCESS=1
  3991. REQUIRE_PACKAGES_HASH=1
  3992. REQUIRE_PACKAGES_LIBTAR=1
  3993. REQUIRE_PACKAGES_FPMKUNIT=1
  3994. REQUIRE_PACKAGES_LIBNDSFPC=1
  3995. endif
  3996. ifeq ($(FULL_TARGET),i8086-win16)
  3997. REQUIRE_PACKAGES_RTL=1
  3998. REQUIRE_PACKAGES_PASZLIB=1
  3999. REQUIRE_PACKAGES_FCL-PROCESS=1
  4000. REQUIRE_PACKAGES_HASH=1
  4001. REQUIRE_PACKAGES_LIBTAR=1
  4002. REQUIRE_PACKAGES_FPMKUNIT=1
  4003. REQUIRE_PACKAGES_LIBNDSFPC=1
  4004. endif
  4005. ifeq ($(FULL_TARGET),aarch64-linux)
  4006. REQUIRE_PACKAGES_RTL=1
  4007. REQUIRE_PACKAGES_PASZLIB=1
  4008. REQUIRE_PACKAGES_FCL-PROCESS=1
  4009. REQUIRE_PACKAGES_HASH=1
  4010. REQUIRE_PACKAGES_LIBTAR=1
  4011. REQUIRE_PACKAGES_FPMKUNIT=1
  4012. REQUIRE_PACKAGES_LIBNDSFPC=1
  4013. endif
  4014. ifeq ($(FULL_TARGET),aarch64-darwin)
  4015. REQUIRE_PACKAGES_RTL=1
  4016. REQUIRE_PACKAGES_PASZLIB=1
  4017. REQUIRE_PACKAGES_FCL-PROCESS=1
  4018. REQUIRE_PACKAGES_HASH=1
  4019. REQUIRE_PACKAGES_LIBTAR=1
  4020. REQUIRE_PACKAGES_FPMKUNIT=1
  4021. REQUIRE_PACKAGES_LIBNDSFPC=1
  4022. endif
  4023. ifeq ($(FULL_TARGET),aarch64-win64)
  4024. REQUIRE_PACKAGES_RTL=1
  4025. REQUIRE_PACKAGES_PASZLIB=1
  4026. REQUIRE_PACKAGES_FCL-PROCESS=1
  4027. REQUIRE_PACKAGES_HASH=1
  4028. REQUIRE_PACKAGES_LIBTAR=1
  4029. REQUIRE_PACKAGES_FPMKUNIT=1
  4030. REQUIRE_PACKAGES_LIBNDSFPC=1
  4031. endif
  4032. ifeq ($(FULL_TARGET),aarch64-android)
  4033. REQUIRE_PACKAGES_RTL=1
  4034. REQUIRE_PACKAGES_PASZLIB=1
  4035. REQUIRE_PACKAGES_FCL-PROCESS=1
  4036. REQUIRE_PACKAGES_HASH=1
  4037. REQUIRE_PACKAGES_LIBTAR=1
  4038. REQUIRE_PACKAGES_FPMKUNIT=1
  4039. REQUIRE_PACKAGES_LIBNDSFPC=1
  4040. endif
  4041. ifeq ($(FULL_TARGET),aarch64-ios)
  4042. REQUIRE_PACKAGES_RTL=1
  4043. REQUIRE_PACKAGES_PASZLIB=1
  4044. REQUIRE_PACKAGES_FCL-PROCESS=1
  4045. REQUIRE_PACKAGES_HASH=1
  4046. REQUIRE_PACKAGES_LIBTAR=1
  4047. REQUIRE_PACKAGES_FPMKUNIT=1
  4048. REQUIRE_PACKAGES_LIBNDSFPC=1
  4049. endif
  4050. ifeq ($(FULL_TARGET),wasm-wasm)
  4051. REQUIRE_PACKAGES_RTL=1
  4052. REQUIRE_PACKAGES_PASZLIB=1
  4053. REQUIRE_PACKAGES_FCL-PROCESS=1
  4054. REQUIRE_PACKAGES_HASH=1
  4055. REQUIRE_PACKAGES_LIBTAR=1
  4056. REQUIRE_PACKAGES_FPMKUNIT=1
  4057. REQUIRE_PACKAGES_LIBNDSFPC=1
  4058. endif
  4059. ifeq ($(FULL_TARGET),sparc64-linux)
  4060. REQUIRE_PACKAGES_RTL=1
  4061. REQUIRE_PACKAGES_PASZLIB=1
  4062. REQUIRE_PACKAGES_FCL-PROCESS=1
  4063. REQUIRE_PACKAGES_HASH=1
  4064. REQUIRE_PACKAGES_LIBTAR=1
  4065. REQUIRE_PACKAGES_FPMKUNIT=1
  4066. REQUIRE_PACKAGES_LIBNDSFPC=1
  4067. endif
  4068. ifeq ($(FULL_TARGET),riscv32-linux)
  4069. REQUIRE_PACKAGES_RTL=1
  4070. REQUIRE_PACKAGES_PASZLIB=1
  4071. REQUIRE_PACKAGES_FCL-PROCESS=1
  4072. REQUIRE_PACKAGES_HASH=1
  4073. REQUIRE_PACKAGES_LIBTAR=1
  4074. REQUIRE_PACKAGES_FPMKUNIT=1
  4075. REQUIRE_PACKAGES_LIBNDSFPC=1
  4076. endif
  4077. ifeq ($(FULL_TARGET),riscv32-embedded)
  4078. REQUIRE_PACKAGES_RTL=1
  4079. REQUIRE_PACKAGES_PASZLIB=1
  4080. REQUIRE_PACKAGES_FCL-PROCESS=1
  4081. REQUIRE_PACKAGES_HASH=1
  4082. REQUIRE_PACKAGES_LIBTAR=1
  4083. REQUIRE_PACKAGES_FPMKUNIT=1
  4084. REQUIRE_PACKAGES_LIBNDSFPC=1
  4085. endif
  4086. ifeq ($(FULL_TARGET),riscv64-linux)
  4087. REQUIRE_PACKAGES_RTL=1
  4088. REQUIRE_PACKAGES_PASZLIB=1
  4089. REQUIRE_PACKAGES_FCL-PROCESS=1
  4090. REQUIRE_PACKAGES_HASH=1
  4091. REQUIRE_PACKAGES_LIBTAR=1
  4092. REQUIRE_PACKAGES_FPMKUNIT=1
  4093. REQUIRE_PACKAGES_LIBNDSFPC=1
  4094. endif
  4095. ifeq ($(FULL_TARGET),riscv64-embedded)
  4096. REQUIRE_PACKAGES_RTL=1
  4097. REQUIRE_PACKAGES_PASZLIB=1
  4098. REQUIRE_PACKAGES_FCL-PROCESS=1
  4099. REQUIRE_PACKAGES_HASH=1
  4100. REQUIRE_PACKAGES_LIBTAR=1
  4101. REQUIRE_PACKAGES_FPMKUNIT=1
  4102. REQUIRE_PACKAGES_LIBNDSFPC=1
  4103. endif
  4104. ifeq ($(FULL_TARGET),xtensa-linux)
  4105. REQUIRE_PACKAGES_RTL=1
  4106. REQUIRE_PACKAGES_PASZLIB=1
  4107. REQUIRE_PACKAGES_FCL-PROCESS=1
  4108. REQUIRE_PACKAGES_HASH=1
  4109. REQUIRE_PACKAGES_LIBTAR=1
  4110. REQUIRE_PACKAGES_FPMKUNIT=1
  4111. REQUIRE_PACKAGES_LIBNDSFPC=1
  4112. endif
  4113. ifeq ($(FULL_TARGET),xtensa-embedded)
  4114. REQUIRE_PACKAGES_RTL=1
  4115. REQUIRE_PACKAGES_PASZLIB=1
  4116. REQUIRE_PACKAGES_FCL-PROCESS=1
  4117. REQUIRE_PACKAGES_HASH=1
  4118. REQUIRE_PACKAGES_LIBTAR=1
  4119. REQUIRE_PACKAGES_FPMKUNIT=1
  4120. REQUIRE_PACKAGES_LIBNDSFPC=1
  4121. endif
  4122. ifeq ($(FULL_TARGET),xtensa-freertos)
  4123. REQUIRE_PACKAGES_RTL=1
  4124. REQUIRE_PACKAGES_PASZLIB=1
  4125. REQUIRE_PACKAGES_FCL-PROCESS=1
  4126. REQUIRE_PACKAGES_HASH=1
  4127. REQUIRE_PACKAGES_LIBTAR=1
  4128. REQUIRE_PACKAGES_FPMKUNIT=1
  4129. REQUIRE_PACKAGES_LIBNDSFPC=1
  4130. endif
  4131. ifeq ($(FULL_TARGET),z80-embedded)
  4132. REQUIRE_PACKAGES_RTL=1
  4133. REQUIRE_PACKAGES_PASZLIB=1
  4134. REQUIRE_PACKAGES_FCL-PROCESS=1
  4135. REQUIRE_PACKAGES_HASH=1
  4136. REQUIRE_PACKAGES_LIBTAR=1
  4137. REQUIRE_PACKAGES_FPMKUNIT=1
  4138. REQUIRE_PACKAGES_LIBNDSFPC=1
  4139. endif
  4140. ifeq ($(FULL_TARGET),z80-zxspectrum)
  4141. REQUIRE_PACKAGES_RTL=1
  4142. REQUIRE_PACKAGES_PASZLIB=1
  4143. REQUIRE_PACKAGES_FCL-PROCESS=1
  4144. REQUIRE_PACKAGES_HASH=1
  4145. REQUIRE_PACKAGES_LIBTAR=1
  4146. REQUIRE_PACKAGES_FPMKUNIT=1
  4147. REQUIRE_PACKAGES_LIBNDSFPC=1
  4148. endif
  4149. ifeq ($(FULL_TARGET),z80-msxdos)
  4150. REQUIRE_PACKAGES_RTL=1
  4151. REQUIRE_PACKAGES_PASZLIB=1
  4152. REQUIRE_PACKAGES_FCL-PROCESS=1
  4153. REQUIRE_PACKAGES_HASH=1
  4154. REQUIRE_PACKAGES_LIBTAR=1
  4155. REQUIRE_PACKAGES_FPMKUNIT=1
  4156. REQUIRE_PACKAGES_LIBNDSFPC=1
  4157. endif
  4158. ifdef REQUIRE_PACKAGES_RTL
  4159. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  4160. ifneq ($(PACKAGEDIR_RTL),)
  4161. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  4162. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  4163. else
  4164. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  4165. endif
  4166. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
  4167. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
  4168. else
  4169. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
  4170. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
  4171. else
  4172. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
  4173. endif
  4174. endif
  4175. ifdef CHECKDEPEND
  4176. $(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
  4177. $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
  4178. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
  4179. endif
  4180. else
  4181. PACKAGEDIR_RTL=
  4182. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  4183. ifneq ($(UNITDIR_RTL),)
  4184. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  4185. else
  4186. UNITDIR_RTL=
  4187. endif
  4188. endif
  4189. ifdef UNITDIR_RTL
  4190. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  4191. endif
  4192. ifdef UNITDIR_FPMAKE_RTL
  4193. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
  4194. endif
  4195. endif
  4196. ifdef REQUIRE_PACKAGES_PASZLIB
  4197. PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR))))))
  4198. ifneq ($(PACKAGEDIR_PASZLIB),)
  4199. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),)
  4200. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)
  4201. else
  4202. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)
  4203. endif
  4204. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)),)
  4205. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)
  4206. else
  4207. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)),)
  4208. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)
  4209. else
  4210. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)
  4211. endif
  4212. endif
  4213. ifdef CHECKDEPEND
  4214. $(PACKAGEDIR_PASZLIB)/$(FPCMADE):
  4215. $(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE)
  4216. override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE)
  4217. endif
  4218. else
  4219. PACKAGEDIR_PASZLIB=
  4220. UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR)))))
  4221. ifneq ($(UNITDIR_PASZLIB),)
  4222. UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB))
  4223. else
  4224. UNITDIR_PASZLIB=
  4225. endif
  4226. endif
  4227. ifdef UNITDIR_PASZLIB
  4228. override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB)
  4229. endif
  4230. ifdef UNITDIR_FPMAKE_PASZLIB
  4231. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_PASZLIB)
  4232. endif
  4233. endif
  4234. ifdef REQUIRE_PACKAGES_FCL-PROCESS
  4235. PACKAGEDIR_FCL-PROCESS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Makefile.fpc,$(PACKAGESDIR))))))
  4236. ifneq ($(PACKAGEDIR_FCL-PROCESS),)
  4237. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)),)
  4238. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)
  4239. else
  4240. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  4241. endif
  4242. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)),)
  4243. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)
  4244. else
  4245. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)),)
  4246. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)
  4247. else
  4248. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  4249. endif
  4250. endif
  4251. ifdef CHECKDEPEND
  4252. $(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE):
  4253. $(MAKE) -C $(PACKAGEDIR_FCL-PROCESS) $(FPCMADE)
  4254. override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE)
  4255. endif
  4256. else
  4257. PACKAGEDIR_FCL-PROCESS=
  4258. UNITDIR_FCL-PROCESS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Package.fpc,$(UNITSDIR)))))
  4259. ifneq ($(UNITDIR_FCL-PROCESS),)
  4260. UNITDIR_FCL-PROCESS:=$(firstword $(UNITDIR_FCL-PROCESS))
  4261. else
  4262. UNITDIR_FCL-PROCESS=
  4263. endif
  4264. endif
  4265. ifdef UNITDIR_FCL-PROCESS
  4266. override COMPILER_UNITDIR+=$(UNITDIR_FCL-PROCESS)
  4267. endif
  4268. ifdef UNITDIR_FPMAKE_FCL-PROCESS
  4269. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-PROCESS)
  4270. endif
  4271. endif
  4272. ifdef REQUIRE_PACKAGES_HASH
  4273. PACKAGEDIR_HASH:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /hash/Makefile.fpc,$(PACKAGESDIR))))))
  4274. ifneq ($(PACKAGEDIR_HASH),)
  4275. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)),)
  4276. UNITDIR_HASH=$(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)
  4277. else
  4278. UNITDIR_HASH=$(PACKAGEDIR_HASH)
  4279. endif
  4280. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)),)
  4281. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)
  4282. else
  4283. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)),)
  4284. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)
  4285. else
  4286. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)
  4287. endif
  4288. endif
  4289. ifdef CHECKDEPEND
  4290. $(PACKAGEDIR_HASH)/$(FPCMADE):
  4291. $(MAKE) -C $(PACKAGEDIR_HASH) $(FPCMADE)
  4292. override ALLDEPENDENCIES+=$(PACKAGEDIR_HASH)/$(FPCMADE)
  4293. endif
  4294. else
  4295. PACKAGEDIR_HASH=
  4296. UNITDIR_HASH:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /hash/Package.fpc,$(UNITSDIR)))))
  4297. ifneq ($(UNITDIR_HASH),)
  4298. UNITDIR_HASH:=$(firstword $(UNITDIR_HASH))
  4299. else
  4300. UNITDIR_HASH=
  4301. endif
  4302. endif
  4303. ifdef UNITDIR_HASH
  4304. override COMPILER_UNITDIR+=$(UNITDIR_HASH)
  4305. endif
  4306. ifdef UNITDIR_FPMAKE_HASH
  4307. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_HASH)
  4308. endif
  4309. endif
  4310. ifdef REQUIRE_PACKAGES_LIBTAR
  4311. PACKAGEDIR_LIBTAR:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libtar/Makefile.fpc,$(PACKAGESDIR))))))
  4312. ifneq ($(PACKAGEDIR_LIBTAR),)
  4313. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX)),)
  4314. UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX)
  4315. else
  4316. UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR)
  4317. endif
  4318. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX)),)
  4319. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX)
  4320. else
  4321. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX)),)
  4322. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX)
  4323. else
  4324. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)
  4325. endif
  4326. endif
  4327. ifdef CHECKDEPEND
  4328. $(PACKAGEDIR_LIBTAR)/$(FPCMADE):
  4329. $(MAKE) -C $(PACKAGEDIR_LIBTAR) $(FPCMADE)
  4330. override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBTAR)/$(FPCMADE)
  4331. endif
  4332. else
  4333. PACKAGEDIR_LIBTAR=
  4334. UNITDIR_LIBTAR:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libtar/Package.fpc,$(UNITSDIR)))))
  4335. ifneq ($(UNITDIR_LIBTAR),)
  4336. UNITDIR_LIBTAR:=$(firstword $(UNITDIR_LIBTAR))
  4337. else
  4338. UNITDIR_LIBTAR=
  4339. endif
  4340. endif
  4341. ifdef UNITDIR_LIBTAR
  4342. override COMPILER_UNITDIR+=$(UNITDIR_LIBTAR)
  4343. endif
  4344. ifdef UNITDIR_FPMAKE_LIBTAR
  4345. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_LIBTAR)
  4346. endif
  4347. endif
  4348. ifdef REQUIRE_PACKAGES_FPMKUNIT
  4349. PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
  4350. ifneq ($(PACKAGEDIR_FPMKUNIT),)
  4351. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
  4352. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
  4353. else
  4354. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  4355. endif
  4356. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
  4357. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
  4358. else
  4359. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
  4360. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
  4361. else
  4362. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  4363. endif
  4364. endif
  4365. ifdef CHECKDEPEND
  4366. $(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
  4367. $(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
  4368. override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
  4369. endif
  4370. else
  4371. PACKAGEDIR_FPMKUNIT=
  4372. UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
  4373. ifneq ($(UNITDIR_FPMKUNIT),)
  4374. UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
  4375. else
  4376. UNITDIR_FPMKUNIT=
  4377. endif
  4378. endif
  4379. ifdef UNITDIR_FPMKUNIT
  4380. override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
  4381. endif
  4382. ifdef UNITDIR_FPMAKE_FPMKUNIT
  4383. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
  4384. endif
  4385. endif
  4386. ifdef REQUIRE_PACKAGES_LIBNDSFPC
  4387. PACKAGEDIR_LIBNDSFPC:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libndsfpc/Makefile.fpc,$(PACKAGESDIR))))))
  4388. ifneq ($(PACKAGEDIR_LIBNDSFPC),)
  4389. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units/$(TARGETSUFFIX)),)
  4390. UNITDIR_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units/$(TARGETSUFFIX)
  4391. else
  4392. UNITDIR_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)
  4393. endif
  4394. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units/$(SOURCESUFFIX)),)
  4395. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units/$(SOURCESUFFIX)
  4396. else
  4397. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units_bs/$(SOURCESUFFIX)),)
  4398. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units_bs/$(SOURCESUFFIX)
  4399. else
  4400. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)
  4401. endif
  4402. endif
  4403. ifdef CHECKDEPEND
  4404. $(PACKAGEDIR_LIBNDSFPC)/$(FPCMADE):
  4405. $(MAKE) -C $(PACKAGEDIR_LIBNDSFPC) $(FPCMADE)
  4406. override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBNDSFPC)/$(FPCMADE)
  4407. endif
  4408. else
  4409. PACKAGEDIR_LIBNDSFPC=
  4410. UNITDIR_LIBNDSFPC:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libndsfpc/Package.fpc,$(UNITSDIR)))))
  4411. ifneq ($(UNITDIR_LIBNDSFPC),)
  4412. UNITDIR_LIBNDSFPC:=$(firstword $(UNITDIR_LIBNDSFPC))
  4413. else
  4414. UNITDIR_LIBNDSFPC=
  4415. endif
  4416. endif
  4417. ifdef UNITDIR_LIBNDSFPC
  4418. override COMPILER_UNITDIR+=$(UNITDIR_LIBNDSFPC)
  4419. endif
  4420. ifdef UNITDIR_FPMAKE_LIBNDSFPC
  4421. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_LIBNDSFPC)
  4422. endif
  4423. endif
  4424. ifndef NOCPUDEF
  4425. override FPCOPTDEF=$(ARCH)
  4426. endif
  4427. ifneq ($(OS_TARGET),$(OS_SOURCE))
  4428. override FPCOPT+=-T$(OS_TARGET)
  4429. endif
  4430. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  4431. override FPCOPT+=-P$(ARCH)
  4432. endif
  4433. ifeq ($(OS_SOURCE),openbsd)
  4434. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  4435. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  4436. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  4437. endif
  4438. ifndef CROSSBOOTSTRAP
  4439. ifneq ($(BINUTILSPREFIX),)
  4440. override FPCOPT+=-XP$(BINUTILSPREFIX)
  4441. endif
  4442. ifneq ($(BINUTILSPREFIX),)
  4443. override FPCOPT+=-Xr$(RLINKPATH)
  4444. endif
  4445. endif
  4446. ifndef CROSSCOMPILE
  4447. ifneq ($(BINUTILSPREFIX),)
  4448. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  4449. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  4450. endif
  4451. endif
  4452. ifdef UNITDIR
  4453. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  4454. endif
  4455. ifdef LIBDIR
  4456. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  4457. endif
  4458. ifdef OBJDIR
  4459. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  4460. endif
  4461. ifdef INCDIR
  4462. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  4463. endif
  4464. ifdef LINKSMART
  4465. override FPCOPT+=-XX
  4466. endif
  4467. ifdef CREATESMART
  4468. override FPCOPT+=-CX
  4469. endif
  4470. ifdef DEBUG
  4471. override FPCOPT+=-gl
  4472. override FPCOPTDEF+=DEBUG
  4473. endif
  4474. ifdef RELEASE
  4475. FPCCPUOPT:=-O2
  4476. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  4477. override FPCOPTDEF+=RELEASE
  4478. endif
  4479. ifdef STRIP
  4480. override FPCOPT+=-Xs
  4481. endif
  4482. ifdef OPTIMIZE
  4483. override FPCOPT+=-O2
  4484. endif
  4485. ifdef VERBOSE
  4486. override FPCOPT+=-vwni
  4487. endif
  4488. ifdef COMPILER_OPTIONS
  4489. override FPCOPT+=$(COMPILER_OPTIONS)
  4490. endif
  4491. ifdef COMPILER_UNITDIR
  4492. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  4493. endif
  4494. ifdef COMPILER_LIBRARYDIR
  4495. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  4496. endif
  4497. ifdef COMPILER_OBJECTDIR
  4498. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  4499. endif
  4500. ifdef COMPILER_INCLUDEDIR
  4501. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  4502. endif
  4503. ifdef CROSSBINDIR
  4504. override FPCOPT+=-FD$(CROSSBINDIR)
  4505. endif
  4506. ifdef COMPILER_TARGETDIR
  4507. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  4508. ifeq ($(COMPILER_TARGETDIR),.)
  4509. override TARGETDIRPREFIX=
  4510. else
  4511. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  4512. endif
  4513. endif
  4514. ifdef COMPILER_UNITTARGETDIR
  4515. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  4516. ifeq ($(COMPILER_UNITTARGETDIR),.)
  4517. override UNITTARGETDIRPREFIX=
  4518. else
  4519. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  4520. endif
  4521. else
  4522. ifdef COMPILER_TARGETDIR
  4523. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  4524. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  4525. endif
  4526. endif
  4527. ifdef CREATESHARED
  4528. override FPCOPT+=-Cg
  4529. endif
  4530. ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  4531. ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
  4532. override FPCOPT+=-Cg
  4533. endif
  4534. endif
  4535. ifdef LINKSHARED
  4536. endif
  4537. ifdef GCCLIBDIR
  4538. override FPCOPT+=-Fl$(GCCLIBDIR)
  4539. ifdef FPCMAKEGCCLIBDIR
  4540. override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR)
  4541. else
  4542. override FPCMAKEOPT+=-Fl$(GCCLIBDIR)
  4543. endif
  4544. endif
  4545. ifdef OTHERLIBDIR
  4546. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  4547. endif
  4548. ifdef OPT
  4549. override FPCOPT+=$(OPT)
  4550. endif
  4551. ifdef FPMAKEBUILDOPT
  4552. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  4553. endif
  4554. ifdef FPCOPTDEF
  4555. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  4556. endif
  4557. ifdef CFGFILE
  4558. override FPCOPT+=@$(CFGFILE)
  4559. endif
  4560. ifdef USEENV
  4561. override FPCEXTCMD:=$(FPCOPT)
  4562. override FPCOPT:=!FPCEXTCMD
  4563. export FPCEXTCMD
  4564. endif
  4565. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  4566. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  4567. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  4568. override ACROSSCOMPILE=1
  4569. endif
  4570. ifdef ACROSSCOMPILE
  4571. override FPCOPT+=$(CROSSOPT)
  4572. endif
  4573. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  4574. ifneq (,$(findstring -sh ,$(COMPILER)))
  4575. UseEXECPPAS=1
  4576. endif
  4577. ifneq (,$(findstring -s ,$(COMPILER)))
  4578. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  4579. UseEXECPPAS=1
  4580. endif
  4581. endif
  4582. ifneq ($(UseEXECPPAS),1)
  4583. EXECPPAS=
  4584. else
  4585. ifdef RUNBATCH
  4586. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  4587. else
  4588. EXECPPAS:=@$(PPAS)
  4589. endif
  4590. endif
  4591. .PHONY: fpc_loaders
  4592. ifneq ($(TARGET_LOADERS),)
  4593. override ALLTARGET+=fpc_loaders
  4594. override CLEANTARGET+=fpc_loaders_clean
  4595. override INSTALLTARGET+=fpc_loaders_install
  4596. override LOADEROFILES:=$(addsuffix $(OEXT),$(TARGET_LOADERS))
  4597. endif
  4598. %$(OEXT): %$(LOADEREXT)
  4599. ifdef COMPILER_UNITTARGETDIR
  4600. $(AS) -o $(COMPILER_UNITTARGETDIR)/$*$(OEXT) $<
  4601. else
  4602. $(AS) -o $*$(OEXT) $<
  4603. endif
  4604. fpc_loaders: $(COMPILER_UNITTARGETDIR) $(LOADEROFILES)
  4605. fpc_loaders_clean:
  4606. ifdef COMPILER_UNITTARGETDIR
  4607. -$(DEL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES))
  4608. else
  4609. -$(DEL) $(LOADEROFILES)
  4610. endif
  4611. fpc_loaders_install:
  4612. $(MKDIR) $(INSTALL_UNITDIR)
  4613. ifdef COMPILER_UNITTARGETDIR
  4614. $(INSTALL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES)) $(INSTALL_UNITDIR)
  4615. else
  4616. $(INSTALL) $(LOADEROFILES) $(INSTALL_UNITDIR)
  4617. endif
  4618. .PHONY: fpc_exes
  4619. ifndef CROSSINSTALL
  4620. ifneq ($(TARGET_PROGRAMS),)
  4621. override EXEFILES=$(addsuffix $(EXEEXT),$(TARGET_PROGRAMS))
  4622. override EXEOFILES:=$(addsuffix $(OEXT),$(TARGET_PROGRAMS)) $(addsuffix $(LTOEXT),$(TARGET_PROGRAMS))$(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS))) $(addprefix $(IMPORTLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS)))
  4623. override EXEDBGFILES:=$(addsuffix $(EXEDBGEXT),$(TARGET_PROGRAMS))
  4624. override ALLTARGET+=fpc_exes
  4625. override INSTALLEXEFILES+=$(EXEFILES)
  4626. override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)
  4627. override CLEANEXEDBGFILES+=$(EXEDBGFILES)
  4628. ifeq ($(OS_TARGET),os2)
  4629. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  4630. endif
  4631. ifeq ($(OS_TARGET),emx)
  4632. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  4633. endif
  4634. endif
  4635. endif
  4636. fpc_exes: $(COMPILER_TARGETDIR) $(COMPILER_UNITTARGETDIR) $(EXEFILES)
  4637. ifdef TARGET_RSTS
  4638. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  4639. override CLEANRSTFILES+=$(RSTFILES)
  4640. endif
  4641. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  4642. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  4643. @$(ECHOREDIR) Compiled > $(FPCMADE)
  4644. fpc_all: $(FPCMADE)
  4645. fpc_smart:
  4646. $(MAKE) all LINKSMART=1 CREATESMART=1
  4647. fpc_debug:
  4648. $(MAKE) all DEBUG=1
  4649. fpc_release:
  4650. $(MAKE) all RELEASE=1
  4651. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) $(LTOEXT) .pas .lpr .dpr .pp .rc .res
  4652. $(COMPILER_UNITTARGETDIR):
  4653. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  4654. $(COMPILER_TARGETDIR):
  4655. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  4656. %$(PPUEXT): %.pp
  4657. $(COMPILER) $<
  4658. $(EXECPPAS)
  4659. %$(PPUEXT): %.pas
  4660. $(COMPILER) $<
  4661. $(EXECPPAS)
  4662. %$(EXEEXT): %.pp
  4663. $(COMPILER) $<
  4664. $(EXECPPAS)
  4665. %$(EXEEXT): %.pas
  4666. $(COMPILER) $<
  4667. $(EXECPPAS)
  4668. %$(EXEEXT): %.lpr
  4669. $(COMPILER) $<
  4670. $(EXECPPAS)
  4671. %$(EXEEXT): %.dpr
  4672. $(COMPILER) $<
  4673. $(EXECPPAS)
  4674. %.res: %.rc
  4675. windres -i $< -o $@
  4676. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4677. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4678. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4679. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4680. vpath %.inc $(COMPILER_INCLUDEDIR)
  4681. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  4682. vpath %$(LTOEXT) $(COMPILER_UNITTARGETDIR)
  4683. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  4684. .PHONY: fpc_shared
  4685. override INSTALLTARGET+=fpc_shared_install
  4686. ifndef SHARED_LIBVERSION
  4687. SHARED_LIBVERSION=$(FPC_VERSION)
  4688. endif
  4689. ifndef SHARED_LIBNAME
  4690. SHARED_LIBNAME=$(PACKAGE_NAME)
  4691. endif
  4692. ifndef SHARED_FULLNAME
  4693. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  4694. endif
  4695. ifndef SHARED_LIBUNITS
  4696. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  4697. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  4698. endif
  4699. fpc_shared:
  4700. ifdef HASSHAREDLIB
  4701. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  4702. ifneq ($(SHARED_BUILD),n)
  4703. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR) -P$(BINUTILSPREFIX)
  4704. endif
  4705. else
  4706. @$(ECHO) Shared Libraries not supported
  4707. endif
  4708. fpc_shared_install:
  4709. ifneq ($(SHARED_BUILD),n)
  4710. ifneq ($(SHARED_LIBUNITS),)
  4711. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  4712. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  4713. endif
  4714. endif
  4715. endif
  4716. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  4717. ifdef INSTALL_UNITS
  4718. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  4719. endif
  4720. ifdef INSTALL_BUILDUNIT
  4721. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  4722. endif
  4723. ifdef INSTALLPPUFILES
  4724. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  4725. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  4726. else
  4727. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  4728. endif
  4729. ifneq ($(UNITTARGETDIRPREFIX),)
  4730. override INSTALLPPUFILENAMES:=$(notdir $(INSTALLPPUFILES))
  4731. override INSTALLPPULINKFILENAMES:=$(notdir $(INSTALLPPULINKFILES))
  4732. override INSTALLPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILENAMES))
  4733. override INSTALLPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILENAMES)))
  4734. endif
  4735. override INSTALL_CREATEPACKAGEFPC=1
  4736. endif
  4737. ifdef INSTALLEXEFILES
  4738. ifneq ($(TARGETDIRPREFIX),)
  4739. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  4740. endif
  4741. endif
  4742. fpc_install: all $(INSTALLTARGET)
  4743. ifdef INSTALLEXEFILES
  4744. $(MKDIR) $(INSTALL_BINDIR)
  4745. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  4746. endif
  4747. ifdef INSTALL_CREATEPACKAGEFPC
  4748. ifdef FPCMAKE
  4749. ifdef PACKAGE_VERSION
  4750. ifneq ($(wildcard Makefile.fpc),)
  4751. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  4752. $(MKDIR) $(INSTALL_UNITDIR)
  4753. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  4754. endif
  4755. endif
  4756. endif
  4757. endif
  4758. ifdef INSTALLPPUFILES
  4759. $(MKDIR) $(INSTALL_UNITDIR)
  4760. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  4761. ifneq ($(INSTALLPPULINKFILES),)
  4762. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  4763. endif
  4764. ifneq ($(wildcard $(LIB_FULLNAME)),)
  4765. $(MKDIR) $(INSTALL_LIBDIR)
  4766. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  4767. ifdef inUnix
  4768. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  4769. endif
  4770. endif
  4771. endif
  4772. ifdef INSTALL_FILES
  4773. $(MKDIR) $(INSTALL_DATADIR)
  4774. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  4775. endif
  4776. fpc_sourceinstall: distclean
  4777. $(MKDIR) $(INSTALL_SOURCEDIR)
  4778. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  4779. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  4780. ifdef HASEXAMPLES
  4781. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  4782. endif
  4783. ifdef EXAMPLESOURCEFILES
  4784. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  4785. endif
  4786. ifdef TARGET_EXAMPLEDIRS
  4787. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  4788. endif
  4789. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  4790. ifdef EXEFILES
  4791. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  4792. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  4793. endif
  4794. ifdef CLEAN_PROGRAMS
  4795. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  4796. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  4797. endif
  4798. ifdef CLEAN_UNITS
  4799. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  4800. endif
  4801. ifdef CLEANPPUFILES
  4802. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  4803. ifdef DEBUGSYMEXT
  4804. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  4805. endif
  4806. override CLEANPPUFILENAMES:=$(CLEANPPUFILES)
  4807. override CLEANPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILENAMES))
  4808. override CLEANPPULINKFILENAMES:=$(CLEANPPULINKFILES)
  4809. override CLEANPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILENAMES)))
  4810. endif
  4811. fpc_clean: $(CLEANTARGET)
  4812. ifdef CLEANEXEFILES
  4813. -$(DEL) $(CLEANEXEFILES)
  4814. endif
  4815. ifdef CLEANEXEDBGFILES
  4816. -$(DELTREE) $(CLEANEXEDBGFILES)
  4817. endif
  4818. ifdef CLEANPPUFILES
  4819. -$(DEL) $(CLEANPPUFILES)
  4820. endif
  4821. ifneq ($(CLEANPPULINKFILES),)
  4822. -$(DEL) $(CLEANPPULINKFILES)
  4823. endif
  4824. ifdef CLEANRSTFILES
  4825. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  4826. endif
  4827. ifdef CLEAN_FILES
  4828. -$(DEL) $(CLEAN_FILES)
  4829. endif
  4830. ifdef LIB_NAME
  4831. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  4832. endif
  4833. -$(DEL) $(FPCMADE) *$(FULL_TARGET).fpm Package.fpc *$(ASMEXT)
  4834. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  4835. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  4836. fpc_cleanall: $(CLEANTARGET)
  4837. ifdef CLEANEXEFILES
  4838. -$(DEL) $(CLEANEXEFILES)
  4839. endif
  4840. ifdef COMPILER_UNITTARGETDIR
  4841. ifdef CLEANPPUFILES
  4842. -$(DEL) $(CLEANPPUFILES)
  4843. endif
  4844. ifneq ($(CLEANPPULINKFILES),)
  4845. -$(DEL) $(CLEANPPULINKFILES)
  4846. endif
  4847. ifdef CLEANRSTFILES
  4848. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  4849. endif
  4850. endif
  4851. ifdef CLEAN_FILES
  4852. -$(DEL) $(CLEAN_FILES)
  4853. endif
  4854. -$(DELTREE) units
  4855. -$(DELTREE) bin
  4856. -$(DEL) *$(OEXT) *$(LTOEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  4857. ifneq ($(PPUEXT),.ppu)
  4858. -$(DEL) *.o *.ppu *.a
  4859. endif
  4860. -$(DELTREE) *$(SMARTEXT)
  4861. -$(DEL) fpcmade.* Package.fpc *.fpm
  4862. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  4863. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  4864. ifdef AOUTEXT
  4865. -$(DEL) *$(AOUTEXT)
  4866. endif
  4867. ifdef DEBUGSYMEXT
  4868. -$(DEL) *$(DEBUGSYMEXT)
  4869. endif
  4870. ifdef LOCALFPMAKEBIN
  4871. -$(DEL) $(LOCALFPMAKEBIN)
  4872. -$(DEL) $(FPMAKEBINOBJ)
  4873. endif
  4874. fpc_distclean: cleanall
  4875. .PHONY: fpc_baseinfo
  4876. override INFORULES+=fpc_baseinfo
  4877. fpc_baseinfo:
  4878. @$(ECHO)
  4879. @$(ECHO) == Package info ==
  4880. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  4881. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  4882. @$(ECHO)
  4883. @$(ECHO) == Configuration info ==
  4884. @$(ECHO)
  4885. @$(ECHO) FPC.......... $(FPC)
  4886. @$(ECHO) FPC Version.. $(FPC_VERSION)
  4887. @$(ECHO) Source CPU... $(CPU_SOURCE)
  4888. @$(ECHO) Target CPU... $(CPU_TARGET)
  4889. @$(ECHO) Source OS.... $(OS_SOURCE)
  4890. @$(ECHO) Target OS.... $(OS_TARGET)
  4891. @$(ECHO) Full Source.. $(FULL_SOURCE)
  4892. @$(ECHO) Full Target.. $(FULL_TARGET)
  4893. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  4894. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  4895. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  4896. @$(ECHO)
  4897. @$(ECHO) == Directory info ==
  4898. @$(ECHO)
  4899. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  4900. @$(ECHO)
  4901. @$(ECHO) Basedir......... $(BASEDIR)
  4902. @$(ECHO) FPCDir.......... $(FPCDIR)
  4903. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  4904. @$(ECHO) UnitsDir........ $(UNITSDIR)
  4905. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  4906. @$(ECHO)
  4907. @$(ECHO) GCC library..... $(GCCLIBDIR)
  4908. @$(ECHO) Other library... $(OTHERLIBDIR)
  4909. @$(ECHO)
  4910. @$(ECHO) == Tools info ==
  4911. @$(ECHO)
  4912. @$(ECHO) As........ $(AS)
  4913. @$(ECHO) Ld........ $(LD)
  4914. @$(ECHO) Ar........ $(AR)
  4915. @$(ECHO) Rc........ $(RC)
  4916. @$(ECHO)
  4917. @$(ECHO) Mv........ $(MVPROG)
  4918. @$(ECHO) Cp........ $(CPPROG)
  4919. @$(ECHO) Rm........ $(RMPROG)
  4920. @$(ECHO) GInstall.. $(GINSTALL)
  4921. @$(ECHO) Echo...... $(ECHO)
  4922. @$(ECHO) Shell..... $(SHELL)
  4923. @$(ECHO) Date...... $(DATE)
  4924. @$(ECHO) FPCMake... $(FPCMAKE)
  4925. @$(ECHO) PPUMove... $(PPUMOVE)
  4926. @$(ECHO) Zip....... $(ZIPPROG)
  4927. @$(ECHO)
  4928. @$(ECHO) == Object info ==
  4929. @$(ECHO)
  4930. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  4931. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  4932. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  4933. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  4934. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  4935. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  4936. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  4937. @$(ECHO)
  4938. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  4939. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  4940. @$(ECHO)
  4941. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  4942. @$(ECHO) Install Files....... $(INSTALL_FILES)
  4943. @$(ECHO)
  4944. @$(ECHO) == Install info ==
  4945. @$(ECHO)
  4946. @$(ECHO) DateStr.............. $(DATESTR)
  4947. @$(ECHO) ZipName.............. $(ZIPNAME)
  4948. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  4949. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  4950. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  4951. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  4952. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  4953. @$(ECHO)
  4954. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  4955. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  4956. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  4957. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  4958. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  4959. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  4960. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  4961. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  4962. @$(ECHO)
  4963. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  4964. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  4965. @$(ECHO)
  4966. .PHONY: fpc_info
  4967. fpc_info: $(INFORULES)
  4968. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  4969. fpc_makefile_dirs
  4970. fpc_makefile:
  4971. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  4972. fpc_makefile_sub1:
  4973. ifdef TARGET_DIRS
  4974. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  4975. endif
  4976. ifdef TARGET_EXAMPLEDIRS
  4977. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  4978. endif
  4979. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  4980. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  4981. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  4982. ifndef BIN2S
  4983. BIN2S:=$(strip $(wildcard $(addsuffix /bin2s$(SRCEXEEXT),$(SEARCHPATH))))
  4984. ifeq ($(BIN2S),)
  4985. BIN2S= __missing_command_BIN2S
  4986. else
  4987. BIN2S:=$(firstword $(BIN2S))
  4988. endif
  4989. endif
  4990. export BIN2S
  4991. ifndef MMUTIL
  4992. MMUTIL:=$(strip $(wildcard $(addsuffix /mmutil$(SRCEXEEXT),$(SEARCHPATH))))
  4993. ifeq ($(MMUTIL),)
  4994. MMUTIL= __missing_command_MMUTIL
  4995. else
  4996. MMUTIL:=$(firstword $(MMUTIL))
  4997. endif
  4998. endif
  4999. export MMUTIL
  5000. ifndef GRIT_FPC
  5001. GRIT_FPC:=$(strip $(wildcard $(addsuffix /grit_fpc$(SRCEXEEXT),$(SEARCHPATH))))
  5002. ifeq ($(GRIT_FPC),)
  5003. GRIT_FPC= __missing_command_GRIT_FPC
  5004. else
  5005. GRIT_FPC:=$(firstword $(GRIT_FPC))
  5006. endif
  5007. endif
  5008. export GRIT_FPC
  5009. ifndef RMDIR
  5010. RMDIR:=$(strip $(wildcard $(addsuffix /rmdir$(SRCEXEEXT),$(SEARCHPATH))))
  5011. ifeq ($(RMDIR),)
  5012. RMDIR= __missing_command_RMDIR
  5013. else
  5014. RMDIR:=$(firstword $(RMDIR))
  5015. endif
  5016. endif
  5017. export RMDIR
  5018. ifndef MV
  5019. MV:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  5020. ifeq ($(MV),)
  5021. MV= __missing_command_MV
  5022. else
  5023. MV:=$(firstword $(MV))
  5024. endif
  5025. endif
  5026. export MV
  5027. ifndef NDSTOOL
  5028. NDSTOOL:=$(strip $(wildcard $(addsuffix /ndstool$(SRCEXEEXT),$(SEARCHPATH))))
  5029. ifeq ($(NDSTOOL),)
  5030. NDSTOOL= __missing_command_NDSTOOL
  5031. else
  5032. NDSTOOL:=$(firstword $(NDSTOOL))
  5033. endif
  5034. endif
  5035. export NDSTOOL
  5036. debug: fpc_debug
  5037. smart: fpc_smart
  5038. release: fpc_release
  5039. units: fpc_units
  5040. examples:
  5041. shared: fpc_shared
  5042. install: fpc_install
  5043. sourceinstall: fpc_sourceinstall
  5044. exampleinstall: fpc_exampleinstall
  5045. distinstall:
  5046. zipinstall:
  5047. zipsourceinstall:
  5048. zipexampleinstall:
  5049. zipdistinstall:
  5050. distclean: fpc_distclean
  5051. cleanall: fpc_cleanall
  5052. info: fpc_info
  5053. makefiles: fpc_makefiles
  5054. .PHONY: debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall distclean cleanall info makefiles
  5055. ifneq ($(wildcard fpcmake.loc),)
  5056. include fpcmake.loc
  5057. endif
  5058. .NOTPARALLEL:
  5059. clean: dir_delete fpc_clean fpc_cleanall
  5060. all: dir_make $(BIN_FILES) $(GFX_FILES) fpc_all
  5061. filesystem: all make_filesystem
  5062. dir_delete:
  5063. @$(DELTREE) $(CURDIR)/$(BUILD)
  5064. @$(DELTREE) $(CURDIR)/$(INC)
  5065. @$(DELTREE) $(CURDIR)/$(BIN)
  5066. dir_make:
  5067. ifneq ($(BUILD), $(CURDIR))
  5068. @$(MKDIR) $(BUILD)
  5069. endif
  5070. ifneq ($(INC), $(CURDIR))
  5071. @$(MKDIR) $(INC)
  5072. endif
  5073. ifneq ($(BIN), $(CURDIR))
  5074. @$(MKDIR) $(BIN)
  5075. endif
  5076. soundbank.bin.o : $(AUDIO_FILES)
  5077. @$(MMUTIL) $^ -d -o$(BUILD)/soundbank.bin -h$(BUILD)/soundbank.h
  5078. $(BIN2S) $(BUILD)/soundbank.bin > $(BUILD)/soundbank.bin.s
  5079. $(AS) -o $(BUILD)/soundbank.bin.o $(BUILD)/soundbank.bin.s
  5080. $(GFX_FILES): $(wildcard %.bmp %.png)
  5081. @echo 'Converting $(@) file to asm...'
  5082. $(GRIT_FPC) $(GFX)/$(@) -fp -fts -ff $(GFX)/$(basename $(@)).grit -o$(BUILD)/$(@)
  5083. @echo 'Assembling $(@).s file...'
  5084. $(AS) -o $(BUILD)/$(basename $(@)).o $(BUILD)/$(basename $(@)).s
  5085. $(MV) -f $(BUILD)/$(basename $(@)).inc $(INC)/$(basename $(@)).inc
  5086. @echo 'Done!'
  5087. $(BIN_FILES): $(wildcard %.*)
  5088. @echo 'Converting $(@) file to asm...'
  5089. @$(BIN2S) $(DATA)/$(@) > $(BUILD)/$(@).s
  5090. @echo 'Creating $(@).inc include file...'
  5091. @echo "var" > `(echo "$(INC)/"$(@F) | tr . .)`.inc
  5092. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end: array [0..0] of cuint8; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  5093. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`": array [0..0] of cuint8; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  5094. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size": cuint32; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  5095. @echo 'Assembling $(@).s file...'
  5096. @$(AS) -o $(BUILD)/$(@).o $(BUILD)/$(@).s
  5097. @echo 'Done!'
  5098. data.gbfs.o:
  5099. @cd GBFS && gbfs ../$(BUILD)/data.gbfs $(GBFS_FILES)
  5100. $(BIN2S) $(BUILD)/data.gbfs > $(BUILD)/data.gbfs.s
  5101. $(AS) -o $(BUILD)/data.gbfs.o $(BUILD)/data.gbfs.s
  5102. make_filesystem:
  5103. @$(NDSTOOL) -c $(BIN)/$(TARGET_PROGRAMS).fs.nds -9 $(BIN)/$(TARGET_PROGRAMS).nef.bin -d $(CURDIR)/$(FILESYSTEM)