Makefile 110 KB

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