Makefile 94 KB

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