Makefile 156 KB

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