Makefile 111 KB

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