Makefile 124 KB

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