Makefile 76 KB

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