Makefile 123 KB

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