Makefile 123 KB

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