Makefile 155 KB

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