Makefile 155 KB

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