Makefile 94 KB

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