Makefile 124 KB

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