Makefile 78 KB

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