Makefile 110 KB

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