Makefile 144 KB

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