Makefile 161 KB

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