Makefile 95 KB

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