Makefile 146 KB

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