Makefile 118 KB

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