Makefile 77 KB

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