Makefile 120 KB

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