Makefile 91 KB

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