Makefile 125 KB

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