Makefile 110 KB

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