Makefile 156 KB

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