Makefile 87 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0 [2011/12/04]
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-solaris x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded mipsel-linux
  6. BSDs = freebsd netbsd openbsd darwin
  7. UNIXs = linux $(BSDs) solaris qnx haiku
  8. LIMIT83fs = go32v2 os2 emx watcom
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override DEFAULT_FPCDIR=../..
  104. ifndef FPC
  105. ifdef PP
  106. FPC=$(PP)
  107. endif
  108. endif
  109. ifndef FPC
  110. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  111. ifneq ($(FPCPROG),)
  112. FPCPROG:=$(firstword $(FPCPROG))
  113. ifneq ($(CPU_TARGET),)
  114. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  115. else
  116. FPC:=$(shell $(FPCPROG) -PB)
  117. endif
  118. ifneq ($(findstring Error,$(FPC)),)
  119. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  120. else
  121. ifeq ($(strip $(wildcard $(FPC))),)
  122. FPC:=$(firstword $(FPCPROG))
  123. endif
  124. endif
  125. else
  126. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  127. endif
  128. endif
  129. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  130. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  131. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  132. ifeq ($(FOUNDFPC),)
  133. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  134. ifeq ($(FOUNDFPC),)
  135. $(error Compiler $(FPC) not found)
  136. endif
  137. endif
  138. ifndef FPC_COMPILERINFO
  139. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  140. endif
  141. ifndef FPC_VERSION
  142. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  143. endif
  144. export FPC FPC_VERSION FPC_COMPILERINFO
  145. unexport CHECKDEPEND ALLDEPENDENCIES
  146. ifndef CPU_TARGET
  147. ifdef CPU_TARGET_DEFAULT
  148. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  149. endif
  150. endif
  151. ifndef OS_TARGET
  152. ifdef OS_TARGET_DEFAULT
  153. OS_TARGET=$(OS_TARGET_DEFAULT)
  154. endif
  155. endif
  156. 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. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  188. TARGETSUFFIX=$(OS_TARGET)
  189. SOURCESUFFIX=$(OS_SOURCE)
  190. else
  191. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  192. TARGETSUFFIX=$(OS_TARGET)
  193. else
  194. TARGETSUFFIX=$(FULL_TARGET)
  195. endif
  196. SOURCESUFFIX=$(FULL_SOURCE)
  197. endif
  198. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  199. CROSSCOMPILE=1
  200. endif
  201. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  202. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  203. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  204. endif
  205. endif
  206. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  207. BSDhier=1
  208. endif
  209. ifeq ($(OS_TARGET),linux)
  210. linuxHier=1
  211. endif
  212. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  213. ifdef FPCDIR
  214. override FPCDIR:=$(subst \,/,$(FPCDIR))
  215. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  216. override FPCDIR=wrong
  217. endif
  218. else
  219. override FPCDIR=wrong
  220. endif
  221. ifdef DEFAULT_FPCDIR
  222. ifeq ($(FPCDIR),wrong)
  223. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  224. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  225. override FPCDIR=wrong
  226. endif
  227. endif
  228. endif
  229. ifeq ($(FPCDIR),wrong)
  230. ifdef inUnix
  231. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  232. ifeq ($(wildcard $(FPCDIR)/units),)
  233. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  234. endif
  235. else
  236. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  237. override FPCDIR:=$(FPCDIR)/..
  238. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  239. override FPCDIR:=$(FPCDIR)/..
  240. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  241. override FPCDIR:=$(BASEDIR)
  242. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  243. override FPCDIR=c:/pp
  244. endif
  245. endif
  246. endif
  247. endif
  248. endif
  249. ifndef CROSSBINDIR
  250. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  251. endif
  252. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  253. ifeq ($(OS_SOURCE),darwin)
  254. DARWIN2DARWIN=1
  255. endif
  256. endif
  257. ifndef BINUTILSPREFIX
  258. ifndef CROSSBINDIR
  259. ifdef CROSSCOMPILE
  260. ifndef DARWIN2DARWIN
  261. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  262. endif
  263. endif
  264. endif
  265. endif
  266. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  267. ifeq ($(UNITSDIR),)
  268. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  269. endif
  270. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
  271. ifndef FPCFPMAKE
  272. ifdef CROSSCOMPILE
  273. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  274. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  275. ifneq ($(FPCPROG),)
  276. FPCPROG:=$(firstword $(FPCPROG))
  277. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  278. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  279. FPCFPMAKE:=$(firstword $(FPCPROG))
  280. endif
  281. else
  282. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  283. endif
  284. else
  285. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  286. FPMAKE_SKIP_CONFIG=-n
  287. export FPCFPMAKE
  288. export FPMAKE_SKIP_CONFIG
  289. endif
  290. else
  291. FPMAKE_SKIP_CONFIG=-n
  292. FPCFPMAKE=$(FPC)
  293. endif
  294. endif
  295. override PACKAGE_NAME=fcl-xml
  296. override PACKAGE_VERSION=2.7.1
  297. ifeq ($(FULL_TARGET),i386-linux)
  298. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  299. endif
  300. ifeq ($(FULL_TARGET),i386-go32v2)
  301. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  302. endif
  303. ifeq ($(FULL_TARGET),i386-win32)
  304. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv_windows
  305. endif
  306. ifeq ($(FULL_TARGET),i386-os2)
  307. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  308. endif
  309. ifeq ($(FULL_TARGET),i386-freebsd)
  310. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  311. endif
  312. ifeq ($(FULL_TARGET),i386-beos)
  313. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  314. endif
  315. ifeq ($(FULL_TARGET),i386-haiku)
  316. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  317. endif
  318. ifeq ($(FULL_TARGET),i386-netbsd)
  319. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  320. endif
  321. ifeq ($(FULL_TARGET),i386-solaris)
  322. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  323. endif
  324. ifeq ($(FULL_TARGET),i386-qnx)
  325. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  326. endif
  327. ifeq ($(FULL_TARGET),i386-netware)
  328. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  329. endif
  330. ifeq ($(FULL_TARGET),i386-openbsd)
  331. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  332. endif
  333. ifeq ($(FULL_TARGET),i386-wdosx)
  334. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  335. endif
  336. ifeq ($(FULL_TARGET),i386-darwin)
  337. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  338. endif
  339. ifeq ($(FULL_TARGET),i386-emx)
  340. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  341. endif
  342. ifeq ($(FULL_TARGET),i386-watcom)
  343. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  344. endif
  345. ifeq ($(FULL_TARGET),i386-netwlibc)
  346. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  347. endif
  348. ifeq ($(FULL_TARGET),i386-wince)
  349. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  350. endif
  351. ifeq ($(FULL_TARGET),i386-embedded)
  352. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  353. endif
  354. ifeq ($(FULL_TARGET),i386-symbian)
  355. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  356. endif
  357. ifeq ($(FULL_TARGET),i386-nativent)
  358. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  359. endif
  360. ifeq ($(FULL_TARGET),i386-iphonesim)
  361. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  362. endif
  363. ifeq ($(FULL_TARGET),m68k-linux)
  364. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  365. endif
  366. ifeq ($(FULL_TARGET),m68k-freebsd)
  367. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  368. endif
  369. ifeq ($(FULL_TARGET),m68k-netbsd)
  370. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  371. endif
  372. ifeq ($(FULL_TARGET),m68k-amiga)
  373. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  374. endif
  375. ifeq ($(FULL_TARGET),m68k-atari)
  376. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  377. endif
  378. ifeq ($(FULL_TARGET),m68k-openbsd)
  379. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  380. endif
  381. ifeq ($(FULL_TARGET),m68k-palmos)
  382. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  383. endif
  384. ifeq ($(FULL_TARGET),m68k-embedded)
  385. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  386. endif
  387. ifeq ($(FULL_TARGET),powerpc-linux)
  388. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  389. endif
  390. ifeq ($(FULL_TARGET),powerpc-netbsd)
  391. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  392. endif
  393. ifeq ($(FULL_TARGET),powerpc-amiga)
  394. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  395. endif
  396. ifeq ($(FULL_TARGET),powerpc-macos)
  397. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  398. endif
  399. ifeq ($(FULL_TARGET),powerpc-darwin)
  400. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  401. endif
  402. ifeq ($(FULL_TARGET),powerpc-morphos)
  403. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  404. endif
  405. ifeq ($(FULL_TARGET),powerpc-embedded)
  406. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  407. endif
  408. ifeq ($(FULL_TARGET),powerpc-wii)
  409. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  410. endif
  411. ifeq ($(FULL_TARGET),sparc-linux)
  412. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  413. endif
  414. ifeq ($(FULL_TARGET),sparc-netbsd)
  415. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  416. endif
  417. ifeq ($(FULL_TARGET),sparc-solaris)
  418. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  419. endif
  420. ifeq ($(FULL_TARGET),sparc-embedded)
  421. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  422. endif
  423. ifeq ($(FULL_TARGET),x86_64-linux)
  424. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  425. endif
  426. ifeq ($(FULL_TARGET),x86_64-freebsd)
  427. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  428. endif
  429. ifeq ($(FULL_TARGET),x86_64-solaris)
  430. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  431. endif
  432. ifeq ($(FULL_TARGET),x86_64-darwin)
  433. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  434. endif
  435. ifeq ($(FULL_TARGET),x86_64-win64)
  436. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv_windows
  437. endif
  438. ifeq ($(FULL_TARGET),x86_64-embedded)
  439. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  440. endif
  441. ifeq ($(FULL_TARGET),arm-linux)
  442. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  443. endif
  444. ifeq ($(FULL_TARGET),arm-palmos)
  445. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  446. endif
  447. ifeq ($(FULL_TARGET),arm-darwin)
  448. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  449. endif
  450. ifeq ($(FULL_TARGET),arm-wince)
  451. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  452. endif
  453. ifeq ($(FULL_TARGET),arm-gba)
  454. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  455. endif
  456. ifeq ($(FULL_TARGET),arm-nds)
  457. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  458. endif
  459. ifeq ($(FULL_TARGET),arm-embedded)
  460. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  461. endif
  462. ifeq ($(FULL_TARGET),arm-symbian)
  463. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  464. endif
  465. ifeq ($(FULL_TARGET),powerpc64-linux)
  466. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  467. endif
  468. ifeq ($(FULL_TARGET),powerpc64-darwin)
  469. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  470. endif
  471. ifeq ($(FULL_TARGET),powerpc64-embedded)
  472. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  473. endif
  474. ifeq ($(FULL_TARGET),avr-embedded)
  475. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  476. endif
  477. ifeq ($(FULL_TARGET),armeb-linux)
  478. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  479. endif
  480. ifeq ($(FULL_TARGET),armeb-embedded)
  481. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel
  482. endif
  483. ifeq ($(FULL_TARGET),mipsel-linux)
  484. override TARGET_UNITS+=htmldefs sax xmlutils dom sax_html dom_html xmlcfg xmlread xmlstreaming xmlwrite xhtml htmwrite xpath htmlelements htmlwriter xmlconf sax_xml dtdmodel xmliconv
  485. endif
  486. ifeq ($(FULL_TARGET),i386-linux)
  487. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  488. endif
  489. ifeq ($(FULL_TARGET),i386-go32v2)
  490. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  491. endif
  492. ifeq ($(FULL_TARGET),i386-win32)
  493. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  494. endif
  495. ifeq ($(FULL_TARGET),i386-os2)
  496. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  497. endif
  498. ifeq ($(FULL_TARGET),i386-freebsd)
  499. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  500. endif
  501. ifeq ($(FULL_TARGET),i386-beos)
  502. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  503. endif
  504. ifeq ($(FULL_TARGET),i386-haiku)
  505. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  506. endif
  507. ifeq ($(FULL_TARGET),i386-netbsd)
  508. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  509. endif
  510. ifeq ($(FULL_TARGET),i386-solaris)
  511. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  512. endif
  513. ifeq ($(FULL_TARGET),i386-qnx)
  514. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  515. endif
  516. ifeq ($(FULL_TARGET),i386-netware)
  517. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  518. endif
  519. ifeq ($(FULL_TARGET),i386-openbsd)
  520. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  521. endif
  522. ifeq ($(FULL_TARGET),i386-wdosx)
  523. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  524. endif
  525. ifeq ($(FULL_TARGET),i386-darwin)
  526. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  527. endif
  528. ifeq ($(FULL_TARGET),i386-emx)
  529. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  530. endif
  531. ifeq ($(FULL_TARGET),i386-watcom)
  532. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  533. endif
  534. ifeq ($(FULL_TARGET),i386-netwlibc)
  535. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  536. endif
  537. ifeq ($(FULL_TARGET),i386-wince)
  538. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  539. endif
  540. ifeq ($(FULL_TARGET),i386-embedded)
  541. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  542. endif
  543. ifeq ($(FULL_TARGET),i386-symbian)
  544. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  545. endif
  546. ifeq ($(FULL_TARGET),i386-nativent)
  547. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  548. endif
  549. ifeq ($(FULL_TARGET),i386-iphonesim)
  550. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  551. endif
  552. ifeq ($(FULL_TARGET),m68k-linux)
  553. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  554. endif
  555. ifeq ($(FULL_TARGET),m68k-freebsd)
  556. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  557. endif
  558. ifeq ($(FULL_TARGET),m68k-netbsd)
  559. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  560. endif
  561. ifeq ($(FULL_TARGET),m68k-amiga)
  562. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  563. endif
  564. ifeq ($(FULL_TARGET),m68k-atari)
  565. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  566. endif
  567. ifeq ($(FULL_TARGET),m68k-openbsd)
  568. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  569. endif
  570. ifeq ($(FULL_TARGET),m68k-palmos)
  571. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  572. endif
  573. ifeq ($(FULL_TARGET),m68k-embedded)
  574. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  575. endif
  576. ifeq ($(FULL_TARGET),powerpc-linux)
  577. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  578. endif
  579. ifeq ($(FULL_TARGET),powerpc-netbsd)
  580. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  581. endif
  582. ifeq ($(FULL_TARGET),powerpc-amiga)
  583. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  584. endif
  585. ifeq ($(FULL_TARGET),powerpc-macos)
  586. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  587. endif
  588. ifeq ($(FULL_TARGET),powerpc-darwin)
  589. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  590. endif
  591. ifeq ($(FULL_TARGET),powerpc-morphos)
  592. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  593. endif
  594. ifeq ($(FULL_TARGET),powerpc-embedded)
  595. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  596. endif
  597. ifeq ($(FULL_TARGET),powerpc-wii)
  598. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  599. endif
  600. ifeq ($(FULL_TARGET),sparc-linux)
  601. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  602. endif
  603. ifeq ($(FULL_TARGET),sparc-netbsd)
  604. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  605. endif
  606. ifeq ($(FULL_TARGET),sparc-solaris)
  607. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  608. endif
  609. ifeq ($(FULL_TARGET),sparc-embedded)
  610. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  611. endif
  612. ifeq ($(FULL_TARGET),x86_64-linux)
  613. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  614. endif
  615. ifeq ($(FULL_TARGET),x86_64-freebsd)
  616. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  617. endif
  618. ifeq ($(FULL_TARGET),x86_64-solaris)
  619. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  620. endif
  621. ifeq ($(FULL_TARGET),x86_64-darwin)
  622. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  623. endif
  624. ifeq ($(FULL_TARGET),x86_64-win64)
  625. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  626. endif
  627. ifeq ($(FULL_TARGET),x86_64-embedded)
  628. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  629. endif
  630. ifeq ($(FULL_TARGET),arm-linux)
  631. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  632. endif
  633. ifeq ($(FULL_TARGET),arm-palmos)
  634. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  635. endif
  636. ifeq ($(FULL_TARGET),arm-darwin)
  637. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  638. endif
  639. ifeq ($(FULL_TARGET),arm-wince)
  640. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  641. endif
  642. ifeq ($(FULL_TARGET),arm-gba)
  643. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  644. endif
  645. ifeq ($(FULL_TARGET),arm-nds)
  646. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  647. endif
  648. ifeq ($(FULL_TARGET),arm-embedded)
  649. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  650. endif
  651. ifeq ($(FULL_TARGET),arm-symbian)
  652. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  653. endif
  654. ifeq ($(FULL_TARGET),powerpc64-linux)
  655. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  656. endif
  657. ifeq ($(FULL_TARGET),powerpc64-darwin)
  658. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  659. endif
  660. ifeq ($(FULL_TARGET),powerpc64-embedded)
  661. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  662. endif
  663. ifeq ($(FULL_TARGET),avr-embedded)
  664. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  665. endif
  666. ifeq ($(FULL_TARGET),armeb-linux)
  667. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  668. endif
  669. ifeq ($(FULL_TARGET),armeb-embedded)
  670. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  671. endif
  672. ifeq ($(FULL_TARGET),mipsel-linux)
  673. override TARGET_RSTS+=sax xpath htmlwriter xmlconf
  674. endif
  675. override INSTALL_FPCPACKAGE=y
  676. ifeq ($(FULL_TARGET),i386-linux)
  677. override COMPILER_OPTIONS+=-S2h
  678. endif
  679. ifeq ($(FULL_TARGET),i386-go32v2)
  680. override COMPILER_OPTIONS+=-S2h
  681. endif
  682. ifeq ($(FULL_TARGET),i386-win32)
  683. override COMPILER_OPTIONS+=-S2h
  684. endif
  685. ifeq ($(FULL_TARGET),i386-os2)
  686. override COMPILER_OPTIONS+=-S2h
  687. endif
  688. ifeq ($(FULL_TARGET),i386-freebsd)
  689. override COMPILER_OPTIONS+=-S2h
  690. endif
  691. ifeq ($(FULL_TARGET),i386-beos)
  692. override COMPILER_OPTIONS+=-S2h
  693. endif
  694. ifeq ($(FULL_TARGET),i386-haiku)
  695. override COMPILER_OPTIONS+=-S2h
  696. endif
  697. ifeq ($(FULL_TARGET),i386-netbsd)
  698. override COMPILER_OPTIONS+=-S2h
  699. endif
  700. ifeq ($(FULL_TARGET),i386-solaris)
  701. override COMPILER_OPTIONS+=-S2h
  702. endif
  703. ifeq ($(FULL_TARGET),i386-qnx)
  704. override COMPILER_OPTIONS+=-S2h
  705. endif
  706. ifeq ($(FULL_TARGET),i386-netware)
  707. override COMPILER_OPTIONS+=-S2h
  708. endif
  709. ifeq ($(FULL_TARGET),i386-openbsd)
  710. override COMPILER_OPTIONS+=-S2h
  711. endif
  712. ifeq ($(FULL_TARGET),i386-wdosx)
  713. override COMPILER_OPTIONS+=-S2h
  714. endif
  715. ifeq ($(FULL_TARGET),i386-darwin)
  716. override COMPILER_OPTIONS+=-S2h
  717. endif
  718. ifeq ($(FULL_TARGET),i386-emx)
  719. override COMPILER_OPTIONS+=-S2h
  720. endif
  721. ifeq ($(FULL_TARGET),i386-watcom)
  722. override COMPILER_OPTIONS+=-S2h
  723. endif
  724. ifeq ($(FULL_TARGET),i386-netwlibc)
  725. override COMPILER_OPTIONS+=-S2h
  726. endif
  727. ifeq ($(FULL_TARGET),i386-wince)
  728. override COMPILER_OPTIONS+=-S2h
  729. endif
  730. ifeq ($(FULL_TARGET),i386-embedded)
  731. override COMPILER_OPTIONS+=-S2h
  732. endif
  733. ifeq ($(FULL_TARGET),i386-symbian)
  734. override COMPILER_OPTIONS+=-S2h
  735. endif
  736. ifeq ($(FULL_TARGET),i386-nativent)
  737. override COMPILER_OPTIONS+=-S2h
  738. endif
  739. ifeq ($(FULL_TARGET),i386-iphonesim)
  740. override COMPILER_OPTIONS+=-S2h
  741. endif
  742. ifeq ($(FULL_TARGET),m68k-linux)
  743. override COMPILER_OPTIONS+=-S2h
  744. endif
  745. ifeq ($(FULL_TARGET),m68k-freebsd)
  746. override COMPILER_OPTIONS+=-S2h
  747. endif
  748. ifeq ($(FULL_TARGET),m68k-netbsd)
  749. override COMPILER_OPTIONS+=-S2h
  750. endif
  751. ifeq ($(FULL_TARGET),m68k-amiga)
  752. override COMPILER_OPTIONS+=-S2h
  753. endif
  754. ifeq ($(FULL_TARGET),m68k-atari)
  755. override COMPILER_OPTIONS+=-S2h
  756. endif
  757. ifeq ($(FULL_TARGET),m68k-openbsd)
  758. override COMPILER_OPTIONS+=-S2h
  759. endif
  760. ifeq ($(FULL_TARGET),m68k-palmos)
  761. override COMPILER_OPTIONS+=-S2h
  762. endif
  763. ifeq ($(FULL_TARGET),m68k-embedded)
  764. override COMPILER_OPTIONS+=-S2h
  765. endif
  766. ifeq ($(FULL_TARGET),powerpc-linux)
  767. override COMPILER_OPTIONS+=-S2h
  768. endif
  769. ifeq ($(FULL_TARGET),powerpc-netbsd)
  770. override COMPILER_OPTIONS+=-S2h
  771. endif
  772. ifeq ($(FULL_TARGET),powerpc-amiga)
  773. override COMPILER_OPTIONS+=-S2h
  774. endif
  775. ifeq ($(FULL_TARGET),powerpc-macos)
  776. override COMPILER_OPTIONS+=-S2h
  777. endif
  778. ifeq ($(FULL_TARGET),powerpc-darwin)
  779. override COMPILER_OPTIONS+=-S2h
  780. endif
  781. ifeq ($(FULL_TARGET),powerpc-morphos)
  782. override COMPILER_OPTIONS+=-S2h
  783. endif
  784. ifeq ($(FULL_TARGET),powerpc-embedded)
  785. override COMPILER_OPTIONS+=-S2h
  786. endif
  787. ifeq ($(FULL_TARGET),powerpc-wii)
  788. override COMPILER_OPTIONS+=-S2h
  789. endif
  790. ifeq ($(FULL_TARGET),sparc-linux)
  791. override COMPILER_OPTIONS+=-S2h
  792. endif
  793. ifeq ($(FULL_TARGET),sparc-netbsd)
  794. override COMPILER_OPTIONS+=-S2h
  795. endif
  796. ifeq ($(FULL_TARGET),sparc-solaris)
  797. override COMPILER_OPTIONS+=-S2h
  798. endif
  799. ifeq ($(FULL_TARGET),sparc-embedded)
  800. override COMPILER_OPTIONS+=-S2h
  801. endif
  802. ifeq ($(FULL_TARGET),x86_64-linux)
  803. override COMPILER_OPTIONS+=-S2h
  804. endif
  805. ifeq ($(FULL_TARGET),x86_64-freebsd)
  806. override COMPILER_OPTIONS+=-S2h
  807. endif
  808. ifeq ($(FULL_TARGET),x86_64-solaris)
  809. override COMPILER_OPTIONS+=-S2h
  810. endif
  811. ifeq ($(FULL_TARGET),x86_64-darwin)
  812. override COMPILER_OPTIONS+=-S2h
  813. endif
  814. ifeq ($(FULL_TARGET),x86_64-win64)
  815. override COMPILER_OPTIONS+=-S2h
  816. endif
  817. ifeq ($(FULL_TARGET),x86_64-embedded)
  818. override COMPILER_OPTIONS+=-S2h
  819. endif
  820. ifeq ($(FULL_TARGET),arm-linux)
  821. override COMPILER_OPTIONS+=-S2h
  822. endif
  823. ifeq ($(FULL_TARGET),arm-palmos)
  824. override COMPILER_OPTIONS+=-S2h
  825. endif
  826. ifeq ($(FULL_TARGET),arm-darwin)
  827. override COMPILER_OPTIONS+=-S2h
  828. endif
  829. ifeq ($(FULL_TARGET),arm-wince)
  830. override COMPILER_OPTIONS+=-S2h
  831. endif
  832. ifeq ($(FULL_TARGET),arm-gba)
  833. override COMPILER_OPTIONS+=-S2h
  834. endif
  835. ifeq ($(FULL_TARGET),arm-nds)
  836. override COMPILER_OPTIONS+=-S2h
  837. endif
  838. ifeq ($(FULL_TARGET),arm-embedded)
  839. override COMPILER_OPTIONS+=-S2h
  840. endif
  841. ifeq ($(FULL_TARGET),arm-symbian)
  842. override COMPILER_OPTIONS+=-S2h
  843. endif
  844. ifeq ($(FULL_TARGET),powerpc64-linux)
  845. override COMPILER_OPTIONS+=-S2h
  846. endif
  847. ifeq ($(FULL_TARGET),powerpc64-darwin)
  848. override COMPILER_OPTIONS+=-S2h
  849. endif
  850. ifeq ($(FULL_TARGET),powerpc64-embedded)
  851. override COMPILER_OPTIONS+=-S2h
  852. endif
  853. ifeq ($(FULL_TARGET),avr-embedded)
  854. override COMPILER_OPTIONS+=-S2h
  855. endif
  856. ifeq ($(FULL_TARGET),armeb-linux)
  857. override COMPILER_OPTIONS+=-S2h
  858. endif
  859. ifeq ($(FULL_TARGET),armeb-embedded)
  860. override COMPILER_OPTIONS+=-S2h
  861. endif
  862. ifeq ($(FULL_TARGET),mipsel-linux)
  863. override COMPILER_OPTIONS+=-S2h
  864. endif
  865. ifeq ($(FULL_TARGET),i386-linux)
  866. override COMPILER_SOURCEDIR+=src
  867. endif
  868. ifeq ($(FULL_TARGET),i386-go32v2)
  869. override COMPILER_SOURCEDIR+=src
  870. endif
  871. ifeq ($(FULL_TARGET),i386-win32)
  872. override COMPILER_SOURCEDIR+=src
  873. endif
  874. ifeq ($(FULL_TARGET),i386-os2)
  875. override COMPILER_SOURCEDIR+=src
  876. endif
  877. ifeq ($(FULL_TARGET),i386-freebsd)
  878. override COMPILER_SOURCEDIR+=src
  879. endif
  880. ifeq ($(FULL_TARGET),i386-beos)
  881. override COMPILER_SOURCEDIR+=src
  882. endif
  883. ifeq ($(FULL_TARGET),i386-haiku)
  884. override COMPILER_SOURCEDIR+=src
  885. endif
  886. ifeq ($(FULL_TARGET),i386-netbsd)
  887. override COMPILER_SOURCEDIR+=src
  888. endif
  889. ifeq ($(FULL_TARGET),i386-solaris)
  890. override COMPILER_SOURCEDIR+=src
  891. endif
  892. ifeq ($(FULL_TARGET),i386-qnx)
  893. override COMPILER_SOURCEDIR+=src
  894. endif
  895. ifeq ($(FULL_TARGET),i386-netware)
  896. override COMPILER_SOURCEDIR+=src
  897. endif
  898. ifeq ($(FULL_TARGET),i386-openbsd)
  899. override COMPILER_SOURCEDIR+=src
  900. endif
  901. ifeq ($(FULL_TARGET),i386-wdosx)
  902. override COMPILER_SOURCEDIR+=src
  903. endif
  904. ifeq ($(FULL_TARGET),i386-darwin)
  905. override COMPILER_SOURCEDIR+=src
  906. endif
  907. ifeq ($(FULL_TARGET),i386-emx)
  908. override COMPILER_SOURCEDIR+=src
  909. endif
  910. ifeq ($(FULL_TARGET),i386-watcom)
  911. override COMPILER_SOURCEDIR+=src
  912. endif
  913. ifeq ($(FULL_TARGET),i386-netwlibc)
  914. override COMPILER_SOURCEDIR+=src
  915. endif
  916. ifeq ($(FULL_TARGET),i386-wince)
  917. override COMPILER_SOURCEDIR+=src
  918. endif
  919. ifeq ($(FULL_TARGET),i386-embedded)
  920. override COMPILER_SOURCEDIR+=src
  921. endif
  922. ifeq ($(FULL_TARGET),i386-symbian)
  923. override COMPILER_SOURCEDIR+=src
  924. endif
  925. ifeq ($(FULL_TARGET),i386-nativent)
  926. override COMPILER_SOURCEDIR+=src
  927. endif
  928. ifeq ($(FULL_TARGET),i386-iphonesim)
  929. override COMPILER_SOURCEDIR+=src
  930. endif
  931. ifeq ($(FULL_TARGET),m68k-linux)
  932. override COMPILER_SOURCEDIR+=src
  933. endif
  934. ifeq ($(FULL_TARGET),m68k-freebsd)
  935. override COMPILER_SOURCEDIR+=src
  936. endif
  937. ifeq ($(FULL_TARGET),m68k-netbsd)
  938. override COMPILER_SOURCEDIR+=src
  939. endif
  940. ifeq ($(FULL_TARGET),m68k-amiga)
  941. override COMPILER_SOURCEDIR+=src
  942. endif
  943. ifeq ($(FULL_TARGET),m68k-atari)
  944. override COMPILER_SOURCEDIR+=src
  945. endif
  946. ifeq ($(FULL_TARGET),m68k-openbsd)
  947. override COMPILER_SOURCEDIR+=src
  948. endif
  949. ifeq ($(FULL_TARGET),m68k-palmos)
  950. override COMPILER_SOURCEDIR+=src
  951. endif
  952. ifeq ($(FULL_TARGET),m68k-embedded)
  953. override COMPILER_SOURCEDIR+=src
  954. endif
  955. ifeq ($(FULL_TARGET),powerpc-linux)
  956. override COMPILER_SOURCEDIR+=src
  957. endif
  958. ifeq ($(FULL_TARGET),powerpc-netbsd)
  959. override COMPILER_SOURCEDIR+=src
  960. endif
  961. ifeq ($(FULL_TARGET),powerpc-amiga)
  962. override COMPILER_SOURCEDIR+=src
  963. endif
  964. ifeq ($(FULL_TARGET),powerpc-macos)
  965. override COMPILER_SOURCEDIR+=src
  966. endif
  967. ifeq ($(FULL_TARGET),powerpc-darwin)
  968. override COMPILER_SOURCEDIR+=src
  969. endif
  970. ifeq ($(FULL_TARGET),powerpc-morphos)
  971. override COMPILER_SOURCEDIR+=src
  972. endif
  973. ifeq ($(FULL_TARGET),powerpc-embedded)
  974. override COMPILER_SOURCEDIR+=src
  975. endif
  976. ifeq ($(FULL_TARGET),powerpc-wii)
  977. override COMPILER_SOURCEDIR+=src
  978. endif
  979. ifeq ($(FULL_TARGET),sparc-linux)
  980. override COMPILER_SOURCEDIR+=src
  981. endif
  982. ifeq ($(FULL_TARGET),sparc-netbsd)
  983. override COMPILER_SOURCEDIR+=src
  984. endif
  985. ifeq ($(FULL_TARGET),sparc-solaris)
  986. override COMPILER_SOURCEDIR+=src
  987. endif
  988. ifeq ($(FULL_TARGET),sparc-embedded)
  989. override COMPILER_SOURCEDIR+=src
  990. endif
  991. ifeq ($(FULL_TARGET),x86_64-linux)
  992. override COMPILER_SOURCEDIR+=src
  993. endif
  994. ifeq ($(FULL_TARGET),x86_64-freebsd)
  995. override COMPILER_SOURCEDIR+=src
  996. endif
  997. ifeq ($(FULL_TARGET),x86_64-solaris)
  998. override COMPILER_SOURCEDIR+=src
  999. endif
  1000. ifeq ($(FULL_TARGET),x86_64-darwin)
  1001. override COMPILER_SOURCEDIR+=src
  1002. endif
  1003. ifeq ($(FULL_TARGET),x86_64-win64)
  1004. override COMPILER_SOURCEDIR+=src
  1005. endif
  1006. ifeq ($(FULL_TARGET),x86_64-embedded)
  1007. override COMPILER_SOURCEDIR+=src
  1008. endif
  1009. ifeq ($(FULL_TARGET),arm-linux)
  1010. override COMPILER_SOURCEDIR+=src
  1011. endif
  1012. ifeq ($(FULL_TARGET),arm-palmos)
  1013. override COMPILER_SOURCEDIR+=src
  1014. endif
  1015. ifeq ($(FULL_TARGET),arm-darwin)
  1016. override COMPILER_SOURCEDIR+=src
  1017. endif
  1018. ifeq ($(FULL_TARGET),arm-wince)
  1019. override COMPILER_SOURCEDIR+=src
  1020. endif
  1021. ifeq ($(FULL_TARGET),arm-gba)
  1022. override COMPILER_SOURCEDIR+=src
  1023. endif
  1024. ifeq ($(FULL_TARGET),arm-nds)
  1025. override COMPILER_SOURCEDIR+=src
  1026. endif
  1027. ifeq ($(FULL_TARGET),arm-embedded)
  1028. override COMPILER_SOURCEDIR+=src
  1029. endif
  1030. ifeq ($(FULL_TARGET),arm-symbian)
  1031. override COMPILER_SOURCEDIR+=src
  1032. endif
  1033. ifeq ($(FULL_TARGET),powerpc64-linux)
  1034. override COMPILER_SOURCEDIR+=src
  1035. endif
  1036. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1037. override COMPILER_SOURCEDIR+=src
  1038. endif
  1039. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1040. override COMPILER_SOURCEDIR+=src
  1041. endif
  1042. ifeq ($(FULL_TARGET),avr-embedded)
  1043. override COMPILER_SOURCEDIR+=src
  1044. endif
  1045. ifeq ($(FULL_TARGET),armeb-linux)
  1046. override COMPILER_SOURCEDIR+=src
  1047. endif
  1048. ifeq ($(FULL_TARGET),armeb-embedded)
  1049. override COMPILER_SOURCEDIR+=src
  1050. endif
  1051. ifeq ($(FULL_TARGET),mipsel-linux)
  1052. override COMPILER_SOURCEDIR+=src
  1053. endif
  1054. ifdef REQUIRE_UNITSDIR
  1055. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1056. endif
  1057. ifdef REQUIRE_PACKAGESDIR
  1058. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1059. endif
  1060. ifdef ZIPINSTALL
  1061. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  1062. UNIXHier=1
  1063. endif
  1064. else
  1065. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  1066. UNIXHier=1
  1067. endif
  1068. endif
  1069. ifndef INSTALL_PREFIX
  1070. ifdef PREFIX
  1071. INSTALL_PREFIX=$(PREFIX)
  1072. endif
  1073. endif
  1074. ifndef INSTALL_PREFIX
  1075. ifdef UNIXHier
  1076. INSTALL_PREFIX=/usr/local
  1077. else
  1078. ifdef INSTALL_FPCPACKAGE
  1079. INSTALL_BASEDIR:=/pp
  1080. else
  1081. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1082. endif
  1083. endif
  1084. endif
  1085. export INSTALL_PREFIX
  1086. ifdef INSTALL_FPCSUBDIR
  1087. export INSTALL_FPCSUBDIR
  1088. endif
  1089. ifndef DIST_DESTDIR
  1090. DIST_DESTDIR:=$(BASEDIR)
  1091. endif
  1092. export DIST_DESTDIR
  1093. ifndef COMPILER_UNITTARGETDIR
  1094. ifdef PACKAGEDIR_MAIN
  1095. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1096. else
  1097. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1098. endif
  1099. endif
  1100. ifndef COMPILER_TARGETDIR
  1101. COMPILER_TARGETDIR=.
  1102. endif
  1103. ifndef INSTALL_BASEDIR
  1104. ifdef UNIXHier
  1105. ifdef INSTALL_FPCPACKAGE
  1106. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1107. else
  1108. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1109. endif
  1110. else
  1111. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1112. endif
  1113. endif
  1114. ifndef INSTALL_BINDIR
  1115. ifdef UNIXHier
  1116. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1117. else
  1118. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1119. ifdef INSTALL_FPCPACKAGE
  1120. ifdef CROSSCOMPILE
  1121. ifdef CROSSINSTALL
  1122. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1123. else
  1124. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1125. endif
  1126. else
  1127. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1128. endif
  1129. endif
  1130. endif
  1131. endif
  1132. ifndef INSTALL_UNITDIR
  1133. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1134. ifdef INSTALL_FPCPACKAGE
  1135. ifdef PACKAGE_NAME
  1136. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1137. endif
  1138. endif
  1139. endif
  1140. ifndef INSTALL_LIBDIR
  1141. ifdef UNIXHier
  1142. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1143. else
  1144. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1145. endif
  1146. endif
  1147. ifndef INSTALL_SOURCEDIR
  1148. ifdef UNIXHier
  1149. ifdef BSDhier
  1150. SRCPREFIXDIR=share/src
  1151. else
  1152. ifdef linuxHier
  1153. SRCPREFIXDIR=share/src
  1154. else
  1155. SRCPREFIXDIR=src
  1156. endif
  1157. endif
  1158. ifdef INSTALL_FPCPACKAGE
  1159. ifdef INSTALL_FPCSUBDIR
  1160. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1161. else
  1162. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1163. endif
  1164. else
  1165. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1166. endif
  1167. else
  1168. ifdef INSTALL_FPCPACKAGE
  1169. ifdef INSTALL_FPCSUBDIR
  1170. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1171. else
  1172. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1173. endif
  1174. else
  1175. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1176. endif
  1177. endif
  1178. endif
  1179. ifndef INSTALL_DOCDIR
  1180. ifdef UNIXHier
  1181. ifdef BSDhier
  1182. DOCPREFIXDIR=share/doc
  1183. else
  1184. ifdef linuxHier
  1185. DOCPREFIXDIR=share/doc
  1186. else
  1187. DOCPREFIXDIR=doc
  1188. endif
  1189. endif
  1190. ifdef INSTALL_FPCPACKAGE
  1191. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1192. else
  1193. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1194. endif
  1195. else
  1196. ifdef INSTALL_FPCPACKAGE
  1197. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1198. else
  1199. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1200. endif
  1201. endif
  1202. endif
  1203. ifndef INSTALL_EXAMPLEDIR
  1204. ifdef UNIXHier
  1205. ifdef INSTALL_FPCPACKAGE
  1206. ifdef BSDhier
  1207. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1208. else
  1209. ifdef linuxHier
  1210. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1211. else
  1212. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1213. endif
  1214. endif
  1215. else
  1216. ifdef BSDhier
  1217. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1218. else
  1219. ifdef linuxHier
  1220. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1221. else
  1222. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1223. endif
  1224. endif
  1225. endif
  1226. else
  1227. ifdef INSTALL_FPCPACKAGE
  1228. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1229. else
  1230. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1231. endif
  1232. endif
  1233. endif
  1234. ifndef INSTALL_DATADIR
  1235. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1236. endif
  1237. ifndef INSTALL_SHAREDDIR
  1238. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1239. endif
  1240. ifdef CROSSCOMPILE
  1241. ifndef CROSSBINDIR
  1242. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1243. ifeq ($(CROSSBINDIR),)
  1244. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1245. endif
  1246. endif
  1247. else
  1248. CROSSBINDIR=
  1249. endif
  1250. ifeq ($(OS_SOURCE),linux)
  1251. ifndef GCCLIBDIR
  1252. ifeq ($(CPU_TARGET),i386)
  1253. ifneq ($(findstring x86_64,$(shell uname -a)),)
  1254. ifeq ($(BINUTILSPREFIX),)
  1255. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  1256. endif
  1257. endif
  1258. endif
  1259. ifeq ($(CPU_TARGET),powerpc64)
  1260. ifeq ($(BINUTILSPREFIX),)
  1261. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  1262. endif
  1263. endif
  1264. endif
  1265. ifndef GCCLIBDIR
  1266. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  1267. ifneq ($(CROSSGCC),)
  1268. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
  1269. endif
  1270. endif
  1271. ifndef OTHERLIBDIR
  1272. OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
  1273. endif
  1274. endif
  1275. ifdef inUnix
  1276. ifeq ($(OS_SOURCE),netbsd)
  1277. OTHERLIBDIR+=/usr/pkg/lib
  1278. endif
  1279. export GCCLIBDIR OTHERLIB
  1280. endif
  1281. BATCHEXT=.bat
  1282. LOADEREXT=.as
  1283. EXEEXT=.exe
  1284. PPLEXT=.ppl
  1285. PPUEXT=.ppu
  1286. OEXT=.o
  1287. ASMEXT=.s
  1288. SMARTEXT=.sl
  1289. STATICLIBEXT=.a
  1290. SHAREDLIBEXT=.so
  1291. SHAREDLIBPREFIX=libfp
  1292. STATICLIBPREFIX=libp
  1293. IMPORTLIBPREFIX=libimp
  1294. RSTEXT=.rst
  1295. EXEDBGEXT=.dbg
  1296. ifeq ($(OS_TARGET),go32v1)
  1297. STATICLIBPREFIX=
  1298. SHORTSUFFIX=v1
  1299. endif
  1300. ifeq ($(OS_TARGET),go32v2)
  1301. STATICLIBPREFIX=
  1302. SHORTSUFFIX=dos
  1303. IMPORTLIBPREFIX=
  1304. endif
  1305. ifeq ($(OS_TARGET),watcom)
  1306. STATICLIBPREFIX=
  1307. OEXT=.obj
  1308. ASMEXT=.asm
  1309. SHAREDLIBEXT=.dll
  1310. SHORTSUFFIX=wat
  1311. IMPORTLIBPREFIX=
  1312. endif
  1313. ifeq ($(OS_TARGET),linux)
  1314. BATCHEXT=.sh
  1315. EXEEXT=
  1316. HASSHAREDLIB=1
  1317. SHORTSUFFIX=lnx
  1318. endif
  1319. ifeq ($(OS_TARGET),freebsd)
  1320. BATCHEXT=.sh
  1321. EXEEXT=
  1322. HASSHAREDLIB=1
  1323. SHORTSUFFIX=fbs
  1324. endif
  1325. ifeq ($(OS_TARGET),netbsd)
  1326. BATCHEXT=.sh
  1327. EXEEXT=
  1328. HASSHAREDLIB=1
  1329. SHORTSUFFIX=nbs
  1330. endif
  1331. ifeq ($(OS_TARGET),openbsd)
  1332. BATCHEXT=.sh
  1333. EXEEXT=
  1334. HASSHAREDLIB=1
  1335. SHORTSUFFIX=obs
  1336. endif
  1337. ifeq ($(OS_TARGET),win32)
  1338. SHAREDLIBEXT=.dll
  1339. SHORTSUFFIX=w32
  1340. endif
  1341. ifeq ($(OS_TARGET),os2)
  1342. BATCHEXT=.cmd
  1343. AOUTEXT=.out
  1344. STATICLIBPREFIX=
  1345. SHAREDLIBEXT=.dll
  1346. SHORTSUFFIX=os2
  1347. ECHO=echo
  1348. IMPORTLIBPREFIX=
  1349. endif
  1350. ifeq ($(OS_TARGET),emx)
  1351. BATCHEXT=.cmd
  1352. AOUTEXT=.out
  1353. STATICLIBPREFIX=
  1354. SHAREDLIBEXT=.dll
  1355. SHORTSUFFIX=emx
  1356. ECHO=echo
  1357. IMPORTLIBPREFIX=
  1358. endif
  1359. ifeq ($(OS_TARGET),amiga)
  1360. EXEEXT=
  1361. SHAREDLIBEXT=.library
  1362. SHORTSUFFIX=amg
  1363. endif
  1364. ifeq ($(OS_TARGET),morphos)
  1365. EXEEXT=
  1366. SHAREDLIBEXT=.library
  1367. SHORTSUFFIX=mos
  1368. endif
  1369. ifeq ($(OS_TARGET),atari)
  1370. EXEEXT=.ttp
  1371. SHORTSUFFIX=ata
  1372. endif
  1373. ifeq ($(OS_TARGET),beos)
  1374. BATCHEXT=.sh
  1375. EXEEXT=
  1376. SHORTSUFFIX=be
  1377. endif
  1378. ifeq ($(OS_TARGET),haiku)
  1379. BATCHEXT=.sh
  1380. EXEEXT=
  1381. SHORTSUFFIX=hai
  1382. endif
  1383. ifeq ($(OS_TARGET),solaris)
  1384. BATCHEXT=.sh
  1385. EXEEXT=
  1386. SHORTSUFFIX=sun
  1387. endif
  1388. ifeq ($(OS_TARGET),qnx)
  1389. BATCHEXT=.sh
  1390. EXEEXT=
  1391. SHORTSUFFIX=qnx
  1392. endif
  1393. ifeq ($(OS_TARGET),netware)
  1394. EXEEXT=.nlm
  1395. STATICLIBPREFIX=
  1396. SHORTSUFFIX=nw
  1397. IMPORTLIBPREFIX=imp
  1398. endif
  1399. ifeq ($(OS_TARGET),netwlibc)
  1400. EXEEXT=.nlm
  1401. STATICLIBPREFIX=
  1402. SHORTSUFFIX=nwl
  1403. IMPORTLIBPREFIX=imp
  1404. endif
  1405. ifeq ($(OS_TARGET),macos)
  1406. BATCHEXT=
  1407. EXEEXT=
  1408. DEBUGSYMEXT=.xcoff
  1409. SHORTSUFFIX=mac
  1410. IMPORTLIBPREFIX=imp
  1411. endif
  1412. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  1413. BATCHEXT=.sh
  1414. EXEEXT=
  1415. HASSHAREDLIB=1
  1416. SHORTSUFFIX=dwn
  1417. EXEDBGEXT=.dSYM
  1418. endif
  1419. ifeq ($(OS_TARGET),gba)
  1420. EXEEXT=.gba
  1421. SHAREDLIBEXT=.so
  1422. SHORTSUFFIX=gba
  1423. endif
  1424. ifeq ($(OS_TARGET),symbian)
  1425. SHAREDLIBEXT=.dll
  1426. SHORTSUFFIX=symbian
  1427. endif
  1428. ifeq ($(OS_TARGET),NativeNT)
  1429. SHAREDLIBEXT=.dll
  1430. SHORTSUFFIX=nativent
  1431. endif
  1432. ifeq ($(OS_TARGET),wii)
  1433. EXEEXT=.dol
  1434. SHAREDLIBEXT=.so
  1435. SHORTSUFFIX=wii
  1436. endif
  1437. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1438. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1439. ZIPSUFFIX=$(SHORTSUFFIX)
  1440. ZIPCROSSPREFIX=
  1441. ZIPSOURCESUFFIX=src
  1442. ZIPEXAMPLESUFFIX=exm
  1443. else
  1444. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1445. ZIPSOURCESUFFIX=.source
  1446. ZIPEXAMPLESUFFIX=.examples
  1447. ifdef CROSSCOMPILE
  1448. ZIPSUFFIX=.$(SOURCESUFFIX)
  1449. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  1450. else
  1451. ZIPSUFFIX=.$(TARGETSUFFIX)
  1452. ZIPCROSSPREFIX=
  1453. endif
  1454. endif
  1455. ifndef ECHO
  1456. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  1457. ifeq ($(ECHO),)
  1458. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  1459. ifeq ($(ECHO),)
  1460. ECHO= __missing_command_ECHO
  1461. else
  1462. ECHO:=$(firstword $(ECHO))
  1463. endif
  1464. else
  1465. ECHO:=$(firstword $(ECHO))
  1466. endif
  1467. endif
  1468. export ECHO
  1469. ifndef DATE
  1470. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  1471. ifeq ($(DATE),)
  1472. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  1473. ifeq ($(DATE),)
  1474. DATE= __missing_command_DATE
  1475. else
  1476. DATE:=$(firstword $(DATE))
  1477. endif
  1478. else
  1479. DATE:=$(firstword $(DATE))
  1480. endif
  1481. endif
  1482. export DATE
  1483. ifndef GINSTALL
  1484. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  1485. ifeq ($(GINSTALL),)
  1486. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  1487. ifeq ($(GINSTALL),)
  1488. GINSTALL= __missing_command_GINSTALL
  1489. else
  1490. GINSTALL:=$(firstword $(GINSTALL))
  1491. endif
  1492. else
  1493. GINSTALL:=$(firstword $(GINSTALL))
  1494. endif
  1495. endif
  1496. export GINSTALL
  1497. ifndef CPPROG
  1498. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  1499. ifeq ($(CPPROG),)
  1500. CPPROG= __missing_command_CPPROG
  1501. else
  1502. CPPROG:=$(firstword $(CPPROG))
  1503. endif
  1504. endif
  1505. export CPPROG
  1506. ifndef RMPROG
  1507. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  1508. ifeq ($(RMPROG),)
  1509. RMPROG= __missing_command_RMPROG
  1510. else
  1511. RMPROG:=$(firstword $(RMPROG))
  1512. endif
  1513. endif
  1514. export RMPROG
  1515. ifndef MVPROG
  1516. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  1517. ifeq ($(MVPROG),)
  1518. MVPROG= __missing_command_MVPROG
  1519. else
  1520. MVPROG:=$(firstword $(MVPROG))
  1521. endif
  1522. endif
  1523. export MVPROG
  1524. ifndef MKDIRPROG
  1525. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1526. ifeq ($(MKDIRPROG),)
  1527. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1528. ifeq ($(MKDIRPROG),)
  1529. MKDIRPROG= __missing_command_MKDIRPROG
  1530. else
  1531. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1532. endif
  1533. else
  1534. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1535. endif
  1536. endif
  1537. export MKDIRPROG
  1538. ifndef ECHOREDIR
  1539. ifndef inUnix
  1540. ECHOREDIR=echo
  1541. else
  1542. ECHOREDIR=$(ECHO)
  1543. endif
  1544. endif
  1545. ifndef COPY
  1546. COPY:=$(CPPROG) -fp
  1547. endif
  1548. ifndef COPYTREE
  1549. COPYTREE:=$(CPPROG) -Rfp
  1550. endif
  1551. ifndef MKDIRTREE
  1552. MKDIRTREE:=$(MKDIRPROG) -p
  1553. endif
  1554. ifndef MOVE
  1555. MOVE:=$(MVPROG) -f
  1556. endif
  1557. ifndef DEL
  1558. DEL:=$(RMPROG) -f
  1559. endif
  1560. ifndef DELTREE
  1561. DELTREE:=$(RMPROG) -rf
  1562. endif
  1563. ifndef INSTALL
  1564. ifdef inUnix
  1565. INSTALL:=$(GINSTALL) -c -m 644
  1566. else
  1567. INSTALL:=$(COPY)
  1568. endif
  1569. endif
  1570. ifndef INSTALLEXE
  1571. ifdef inUnix
  1572. INSTALLEXE:=$(GINSTALL) -c -m 755
  1573. else
  1574. INSTALLEXE:=$(COPY)
  1575. endif
  1576. endif
  1577. ifndef MKDIR
  1578. MKDIR:=$(GINSTALL) -m 755 -d
  1579. endif
  1580. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  1581. ifndef PPUMOVE
  1582. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  1583. ifeq ($(PPUMOVE),)
  1584. PPUMOVE= __missing_command_PPUMOVE
  1585. else
  1586. PPUMOVE:=$(firstword $(PPUMOVE))
  1587. endif
  1588. endif
  1589. export PPUMOVE
  1590. ifndef FPCMAKE
  1591. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  1592. ifeq ($(FPCMAKE),)
  1593. FPCMAKE= __missing_command_FPCMAKE
  1594. else
  1595. FPCMAKE:=$(firstword $(FPCMAKE))
  1596. endif
  1597. endif
  1598. export FPCMAKE
  1599. ifndef ZIPPROG
  1600. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  1601. ifeq ($(ZIPPROG),)
  1602. ZIPPROG= __missing_command_ZIPPROG
  1603. else
  1604. ZIPPROG:=$(firstword $(ZIPPROG))
  1605. endif
  1606. endif
  1607. export ZIPPROG
  1608. ifndef TARPROG
  1609. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  1610. ifeq ($(TARPROG),)
  1611. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  1612. ifeq ($(TARPROG),)
  1613. TARPROG= __missing_command_TARPROG
  1614. else
  1615. TARPROG:=$(firstword $(TARPROG))
  1616. endif
  1617. else
  1618. TARPROG:=$(firstword $(TARPROG))
  1619. endif
  1620. endif
  1621. export TARPROG
  1622. ASNAME=$(BINUTILSPREFIX)as
  1623. LDNAME=$(BINUTILSPREFIX)ld
  1624. ARNAME=$(BINUTILSPREFIX)ar
  1625. RCNAME=$(BINUTILSPREFIX)rc
  1626. ifndef ASPROG
  1627. ifdef CROSSBINDIR
  1628. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  1629. else
  1630. ASPROG=$(ASNAME)
  1631. endif
  1632. endif
  1633. ifndef LDPROG
  1634. ifdef CROSSBINDIR
  1635. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  1636. else
  1637. LDPROG=$(LDNAME)
  1638. endif
  1639. endif
  1640. ifndef RCPROG
  1641. ifdef CROSSBINDIR
  1642. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  1643. else
  1644. RCPROG=$(RCNAME)
  1645. endif
  1646. endif
  1647. ifndef ARPROG
  1648. ifdef CROSSBINDIR
  1649. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  1650. else
  1651. ARPROG=$(ARNAME)
  1652. endif
  1653. endif
  1654. AS=$(ASPROG)
  1655. LD=$(LDPROG)
  1656. RC=$(RCPROG)
  1657. AR=$(ARPROG)
  1658. PPAS=ppas$(SRCBATCHEXT)
  1659. ifdef inUnix
  1660. LDCONFIG=ldconfig
  1661. else
  1662. LDCONFIG=
  1663. endif
  1664. ifdef DATE
  1665. DATESTR:=$(shell $(DATE) +%Y%m%d)
  1666. else
  1667. DATESTR=
  1668. endif
  1669. ifndef UPXPROG
  1670. ifeq ($(OS_TARGET),go32v2)
  1671. UPXPROG:=1
  1672. endif
  1673. ifeq ($(OS_TARGET),win32)
  1674. UPXPROG:=
  1675. endif
  1676. ifdef UPXPROG
  1677. UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
  1678. ifeq ($(UPXPROG),)
  1679. UPXPROG=
  1680. else
  1681. UPXPROG:=$(firstword $(UPXPROG))
  1682. endif
  1683. else
  1684. UPXPROG=
  1685. endif
  1686. endif
  1687. export UPXPROG
  1688. ZIPOPT=-9
  1689. ZIPEXT=.zip
  1690. ifeq ($(USETAR),bz2)
  1691. TAROPT=vj
  1692. TAREXT=.tar.bz2
  1693. else
  1694. TAROPT=vz
  1695. TAREXT=.tar.gz
  1696. endif
  1697. override REQUIRE_PACKAGES=rtl fcl-base
  1698. ifeq ($(FULL_TARGET),i386-linux)
  1699. REQUIRE_PACKAGES_RTL=1
  1700. REQUIRE_PACKAGES_HASH=1
  1701. REQUIRE_PACKAGES_PASZLIB=1
  1702. REQUIRE_PACKAGES_FCL-PROCESS=1
  1703. REQUIRE_PACKAGES_FPMKUNIT=1
  1704. REQUIRE_PACKAGES_FCL-BASE=1
  1705. REQUIRE_PACKAGES_ICONVENC=1
  1706. endif
  1707. ifeq ($(FULL_TARGET),i386-go32v2)
  1708. REQUIRE_PACKAGES_RTL=1
  1709. REQUIRE_PACKAGES_HASH=1
  1710. REQUIRE_PACKAGES_PASZLIB=1
  1711. REQUIRE_PACKAGES_FCL-PROCESS=1
  1712. REQUIRE_PACKAGES_FPMKUNIT=1
  1713. REQUIRE_PACKAGES_FCL-BASE=1
  1714. endif
  1715. ifeq ($(FULL_TARGET),i386-win32)
  1716. REQUIRE_PACKAGES_RTL=1
  1717. REQUIRE_PACKAGES_HASH=1
  1718. REQUIRE_PACKAGES_PASZLIB=1
  1719. REQUIRE_PACKAGES_FCL-PROCESS=1
  1720. REQUIRE_PACKAGES_FPMKUNIT=1
  1721. REQUIRE_PACKAGES_FCL-BASE=1
  1722. endif
  1723. ifeq ($(FULL_TARGET),i386-os2)
  1724. REQUIRE_PACKAGES_RTL=1
  1725. REQUIRE_PACKAGES_HASH=1
  1726. REQUIRE_PACKAGES_PASZLIB=1
  1727. REQUIRE_PACKAGES_FCL-PROCESS=1
  1728. REQUIRE_PACKAGES_FPMKUNIT=1
  1729. REQUIRE_PACKAGES_FCL-BASE=1
  1730. endif
  1731. ifeq ($(FULL_TARGET),i386-freebsd)
  1732. REQUIRE_PACKAGES_RTL=1
  1733. REQUIRE_PACKAGES_HASH=1
  1734. REQUIRE_PACKAGES_PASZLIB=1
  1735. REQUIRE_PACKAGES_FCL-PROCESS=1
  1736. REQUIRE_PACKAGES_FPMKUNIT=1
  1737. REQUIRE_PACKAGES_FCL-BASE=1
  1738. REQUIRE_PACKAGES_ICONVENC=1
  1739. endif
  1740. ifeq ($(FULL_TARGET),i386-beos)
  1741. REQUIRE_PACKAGES_RTL=1
  1742. REQUIRE_PACKAGES_HASH=1
  1743. REQUIRE_PACKAGES_PASZLIB=1
  1744. REQUIRE_PACKAGES_FCL-PROCESS=1
  1745. REQUIRE_PACKAGES_FPMKUNIT=1
  1746. REQUIRE_PACKAGES_FCL-BASE=1
  1747. REQUIRE_PACKAGES_ICONVENC=1
  1748. endif
  1749. ifeq ($(FULL_TARGET),i386-haiku)
  1750. REQUIRE_PACKAGES_RTL=1
  1751. REQUIRE_PACKAGES_HASH=1
  1752. REQUIRE_PACKAGES_PASZLIB=1
  1753. REQUIRE_PACKAGES_FCL-PROCESS=1
  1754. REQUIRE_PACKAGES_FPMKUNIT=1
  1755. REQUIRE_PACKAGES_FCL-BASE=1
  1756. REQUIRE_PACKAGES_ICONVENC=1
  1757. endif
  1758. ifeq ($(FULL_TARGET),i386-netbsd)
  1759. REQUIRE_PACKAGES_RTL=1
  1760. REQUIRE_PACKAGES_HASH=1
  1761. REQUIRE_PACKAGES_PASZLIB=1
  1762. REQUIRE_PACKAGES_FCL-PROCESS=1
  1763. REQUIRE_PACKAGES_FPMKUNIT=1
  1764. REQUIRE_PACKAGES_FCL-BASE=1
  1765. endif
  1766. ifeq ($(FULL_TARGET),i386-solaris)
  1767. REQUIRE_PACKAGES_RTL=1
  1768. REQUIRE_PACKAGES_HASH=1
  1769. REQUIRE_PACKAGES_PASZLIB=1
  1770. REQUIRE_PACKAGES_FCL-PROCESS=1
  1771. REQUIRE_PACKAGES_FPMKUNIT=1
  1772. REQUIRE_PACKAGES_FCL-BASE=1
  1773. endif
  1774. ifeq ($(FULL_TARGET),i386-qnx)
  1775. REQUIRE_PACKAGES_RTL=1
  1776. REQUIRE_PACKAGES_HASH=1
  1777. REQUIRE_PACKAGES_PASZLIB=1
  1778. REQUIRE_PACKAGES_FCL-PROCESS=1
  1779. REQUIRE_PACKAGES_FPMKUNIT=1
  1780. REQUIRE_PACKAGES_FCL-BASE=1
  1781. endif
  1782. ifeq ($(FULL_TARGET),i386-netware)
  1783. REQUIRE_PACKAGES_RTL=1
  1784. REQUIRE_PACKAGES_HASH=1
  1785. REQUIRE_PACKAGES_PASZLIB=1
  1786. REQUIRE_PACKAGES_FCL-PROCESS=1
  1787. REQUIRE_PACKAGES_FPMKUNIT=1
  1788. REQUIRE_PACKAGES_FCL-BASE=1
  1789. endif
  1790. ifeq ($(FULL_TARGET),i386-openbsd)
  1791. REQUIRE_PACKAGES_RTL=1
  1792. REQUIRE_PACKAGES_HASH=1
  1793. REQUIRE_PACKAGES_PASZLIB=1
  1794. REQUIRE_PACKAGES_FCL-PROCESS=1
  1795. REQUIRE_PACKAGES_FPMKUNIT=1
  1796. REQUIRE_PACKAGES_FCL-BASE=1
  1797. endif
  1798. ifeq ($(FULL_TARGET),i386-wdosx)
  1799. REQUIRE_PACKAGES_RTL=1
  1800. REQUIRE_PACKAGES_HASH=1
  1801. REQUIRE_PACKAGES_PASZLIB=1
  1802. REQUIRE_PACKAGES_FCL-PROCESS=1
  1803. REQUIRE_PACKAGES_FPMKUNIT=1
  1804. REQUIRE_PACKAGES_FCL-BASE=1
  1805. endif
  1806. ifeq ($(FULL_TARGET),i386-darwin)
  1807. REQUIRE_PACKAGES_RTL=1
  1808. REQUIRE_PACKAGES_HASH=1
  1809. REQUIRE_PACKAGES_PASZLIB=1
  1810. REQUIRE_PACKAGES_FCL-PROCESS=1
  1811. REQUIRE_PACKAGES_FPMKUNIT=1
  1812. REQUIRE_PACKAGES_FCL-BASE=1
  1813. REQUIRE_PACKAGES_ICONVENC=1
  1814. endif
  1815. ifeq ($(FULL_TARGET),i386-emx)
  1816. REQUIRE_PACKAGES_RTL=1
  1817. REQUIRE_PACKAGES_HASH=1
  1818. REQUIRE_PACKAGES_PASZLIB=1
  1819. REQUIRE_PACKAGES_FCL-PROCESS=1
  1820. REQUIRE_PACKAGES_FPMKUNIT=1
  1821. REQUIRE_PACKAGES_FCL-BASE=1
  1822. endif
  1823. ifeq ($(FULL_TARGET),i386-watcom)
  1824. REQUIRE_PACKAGES_RTL=1
  1825. REQUIRE_PACKAGES_HASH=1
  1826. REQUIRE_PACKAGES_PASZLIB=1
  1827. REQUIRE_PACKAGES_FCL-PROCESS=1
  1828. REQUIRE_PACKAGES_FPMKUNIT=1
  1829. REQUIRE_PACKAGES_FCL-BASE=1
  1830. endif
  1831. ifeq ($(FULL_TARGET),i386-netwlibc)
  1832. REQUIRE_PACKAGES_RTL=1
  1833. REQUIRE_PACKAGES_HASH=1
  1834. REQUIRE_PACKAGES_PASZLIB=1
  1835. REQUIRE_PACKAGES_FCL-PROCESS=1
  1836. REQUIRE_PACKAGES_FPMKUNIT=1
  1837. REQUIRE_PACKAGES_FCL-BASE=1
  1838. endif
  1839. ifeq ($(FULL_TARGET),i386-wince)
  1840. REQUIRE_PACKAGES_RTL=1
  1841. REQUIRE_PACKAGES_HASH=1
  1842. REQUIRE_PACKAGES_PASZLIB=1
  1843. REQUIRE_PACKAGES_FCL-PROCESS=1
  1844. REQUIRE_PACKAGES_FPMKUNIT=1
  1845. REQUIRE_PACKAGES_FCL-BASE=1
  1846. endif
  1847. ifeq ($(FULL_TARGET),i386-embedded)
  1848. REQUIRE_PACKAGES_RTL=1
  1849. REQUIRE_PACKAGES_HASH=1
  1850. REQUIRE_PACKAGES_PASZLIB=1
  1851. REQUIRE_PACKAGES_FCL-PROCESS=1
  1852. REQUIRE_PACKAGES_FPMKUNIT=1
  1853. REQUIRE_PACKAGES_FCL-BASE=1
  1854. endif
  1855. ifeq ($(FULL_TARGET),i386-symbian)
  1856. REQUIRE_PACKAGES_RTL=1
  1857. REQUIRE_PACKAGES_HASH=1
  1858. REQUIRE_PACKAGES_PASZLIB=1
  1859. REQUIRE_PACKAGES_FCL-PROCESS=1
  1860. REQUIRE_PACKAGES_FPMKUNIT=1
  1861. REQUIRE_PACKAGES_FCL-BASE=1
  1862. endif
  1863. ifeq ($(FULL_TARGET),i386-nativent)
  1864. REQUIRE_PACKAGES_RTL=1
  1865. REQUIRE_PACKAGES_HASH=1
  1866. REQUIRE_PACKAGES_PASZLIB=1
  1867. REQUIRE_PACKAGES_FCL-PROCESS=1
  1868. REQUIRE_PACKAGES_FPMKUNIT=1
  1869. REQUIRE_PACKAGES_FCL-BASE=1
  1870. endif
  1871. ifeq ($(FULL_TARGET),i386-iphonesim)
  1872. REQUIRE_PACKAGES_RTL=1
  1873. REQUIRE_PACKAGES_HASH=1
  1874. REQUIRE_PACKAGES_PASZLIB=1
  1875. REQUIRE_PACKAGES_FCL-PROCESS=1
  1876. REQUIRE_PACKAGES_FPMKUNIT=1
  1877. REQUIRE_PACKAGES_FCL-BASE=1
  1878. REQUIRE_PACKAGES_ICONVENC=1
  1879. endif
  1880. ifeq ($(FULL_TARGET),m68k-linux)
  1881. REQUIRE_PACKAGES_RTL=1
  1882. REQUIRE_PACKAGES_HASH=1
  1883. REQUIRE_PACKAGES_PASZLIB=1
  1884. REQUIRE_PACKAGES_FCL-PROCESS=1
  1885. REQUIRE_PACKAGES_FPMKUNIT=1
  1886. REQUIRE_PACKAGES_FCL-BASE=1
  1887. REQUIRE_PACKAGES_ICONVENC=1
  1888. endif
  1889. ifeq ($(FULL_TARGET),m68k-freebsd)
  1890. REQUIRE_PACKAGES_RTL=1
  1891. REQUIRE_PACKAGES_HASH=1
  1892. REQUIRE_PACKAGES_PASZLIB=1
  1893. REQUIRE_PACKAGES_FCL-PROCESS=1
  1894. REQUIRE_PACKAGES_FPMKUNIT=1
  1895. REQUIRE_PACKAGES_FCL-BASE=1
  1896. REQUIRE_PACKAGES_ICONVENC=1
  1897. endif
  1898. ifeq ($(FULL_TARGET),m68k-netbsd)
  1899. REQUIRE_PACKAGES_RTL=1
  1900. REQUIRE_PACKAGES_HASH=1
  1901. REQUIRE_PACKAGES_PASZLIB=1
  1902. REQUIRE_PACKAGES_FCL-PROCESS=1
  1903. REQUIRE_PACKAGES_FPMKUNIT=1
  1904. REQUIRE_PACKAGES_FCL-BASE=1
  1905. endif
  1906. ifeq ($(FULL_TARGET),m68k-amiga)
  1907. REQUIRE_PACKAGES_RTL=1
  1908. REQUIRE_PACKAGES_HASH=1
  1909. REQUIRE_PACKAGES_PASZLIB=1
  1910. REQUIRE_PACKAGES_FCL-PROCESS=1
  1911. REQUIRE_PACKAGES_FPMKUNIT=1
  1912. REQUIRE_PACKAGES_FCL-BASE=1
  1913. endif
  1914. ifeq ($(FULL_TARGET),m68k-atari)
  1915. REQUIRE_PACKAGES_RTL=1
  1916. REQUIRE_PACKAGES_HASH=1
  1917. REQUIRE_PACKAGES_PASZLIB=1
  1918. REQUIRE_PACKAGES_FCL-PROCESS=1
  1919. REQUIRE_PACKAGES_FPMKUNIT=1
  1920. REQUIRE_PACKAGES_FCL-BASE=1
  1921. endif
  1922. ifeq ($(FULL_TARGET),m68k-openbsd)
  1923. REQUIRE_PACKAGES_RTL=1
  1924. REQUIRE_PACKAGES_HASH=1
  1925. REQUIRE_PACKAGES_PASZLIB=1
  1926. REQUIRE_PACKAGES_FCL-PROCESS=1
  1927. REQUIRE_PACKAGES_FPMKUNIT=1
  1928. REQUIRE_PACKAGES_FCL-BASE=1
  1929. endif
  1930. ifeq ($(FULL_TARGET),m68k-palmos)
  1931. REQUIRE_PACKAGES_RTL=1
  1932. REQUIRE_PACKAGES_HASH=1
  1933. REQUIRE_PACKAGES_PASZLIB=1
  1934. REQUIRE_PACKAGES_FCL-PROCESS=1
  1935. REQUIRE_PACKAGES_FPMKUNIT=1
  1936. REQUIRE_PACKAGES_FCL-BASE=1
  1937. endif
  1938. ifeq ($(FULL_TARGET),m68k-embedded)
  1939. REQUIRE_PACKAGES_RTL=1
  1940. REQUIRE_PACKAGES_HASH=1
  1941. REQUIRE_PACKAGES_PASZLIB=1
  1942. REQUIRE_PACKAGES_FCL-PROCESS=1
  1943. REQUIRE_PACKAGES_FPMKUNIT=1
  1944. REQUIRE_PACKAGES_FCL-BASE=1
  1945. endif
  1946. ifeq ($(FULL_TARGET),powerpc-linux)
  1947. REQUIRE_PACKAGES_RTL=1
  1948. REQUIRE_PACKAGES_HASH=1
  1949. REQUIRE_PACKAGES_PASZLIB=1
  1950. REQUIRE_PACKAGES_FCL-PROCESS=1
  1951. REQUIRE_PACKAGES_FPMKUNIT=1
  1952. REQUIRE_PACKAGES_FCL-BASE=1
  1953. REQUIRE_PACKAGES_ICONVENC=1
  1954. endif
  1955. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1956. REQUIRE_PACKAGES_RTL=1
  1957. REQUIRE_PACKAGES_HASH=1
  1958. REQUIRE_PACKAGES_PASZLIB=1
  1959. REQUIRE_PACKAGES_FCL-PROCESS=1
  1960. REQUIRE_PACKAGES_FPMKUNIT=1
  1961. REQUIRE_PACKAGES_FCL-BASE=1
  1962. endif
  1963. ifeq ($(FULL_TARGET),powerpc-amiga)
  1964. REQUIRE_PACKAGES_RTL=1
  1965. REQUIRE_PACKAGES_HASH=1
  1966. REQUIRE_PACKAGES_PASZLIB=1
  1967. REQUIRE_PACKAGES_FCL-PROCESS=1
  1968. REQUIRE_PACKAGES_FPMKUNIT=1
  1969. REQUIRE_PACKAGES_FCL-BASE=1
  1970. endif
  1971. ifeq ($(FULL_TARGET),powerpc-macos)
  1972. REQUIRE_PACKAGES_RTL=1
  1973. REQUIRE_PACKAGES_HASH=1
  1974. REQUIRE_PACKAGES_PASZLIB=1
  1975. REQUIRE_PACKAGES_FCL-PROCESS=1
  1976. REQUIRE_PACKAGES_FPMKUNIT=1
  1977. REQUIRE_PACKAGES_FCL-BASE=1
  1978. endif
  1979. ifeq ($(FULL_TARGET),powerpc-darwin)
  1980. REQUIRE_PACKAGES_RTL=1
  1981. REQUIRE_PACKAGES_HASH=1
  1982. REQUIRE_PACKAGES_PASZLIB=1
  1983. REQUIRE_PACKAGES_FCL-PROCESS=1
  1984. REQUIRE_PACKAGES_FPMKUNIT=1
  1985. REQUIRE_PACKAGES_FCL-BASE=1
  1986. REQUIRE_PACKAGES_ICONVENC=1
  1987. endif
  1988. ifeq ($(FULL_TARGET),powerpc-morphos)
  1989. REQUIRE_PACKAGES_RTL=1
  1990. REQUIRE_PACKAGES_HASH=1
  1991. REQUIRE_PACKAGES_PASZLIB=1
  1992. REQUIRE_PACKAGES_FCL-PROCESS=1
  1993. REQUIRE_PACKAGES_FPMKUNIT=1
  1994. REQUIRE_PACKAGES_FCL-BASE=1
  1995. endif
  1996. ifeq ($(FULL_TARGET),powerpc-embedded)
  1997. REQUIRE_PACKAGES_RTL=1
  1998. REQUIRE_PACKAGES_HASH=1
  1999. REQUIRE_PACKAGES_PASZLIB=1
  2000. REQUIRE_PACKAGES_FCL-PROCESS=1
  2001. REQUIRE_PACKAGES_FPMKUNIT=1
  2002. REQUIRE_PACKAGES_FCL-BASE=1
  2003. endif
  2004. ifeq ($(FULL_TARGET),powerpc-wii)
  2005. REQUIRE_PACKAGES_RTL=1
  2006. REQUIRE_PACKAGES_HASH=1
  2007. REQUIRE_PACKAGES_PASZLIB=1
  2008. REQUIRE_PACKAGES_FCL-PROCESS=1
  2009. REQUIRE_PACKAGES_FPMKUNIT=1
  2010. REQUIRE_PACKAGES_FCL-BASE=1
  2011. endif
  2012. ifeq ($(FULL_TARGET),sparc-linux)
  2013. REQUIRE_PACKAGES_RTL=1
  2014. REQUIRE_PACKAGES_HASH=1
  2015. REQUIRE_PACKAGES_PASZLIB=1
  2016. REQUIRE_PACKAGES_FCL-PROCESS=1
  2017. REQUIRE_PACKAGES_FPMKUNIT=1
  2018. REQUIRE_PACKAGES_FCL-BASE=1
  2019. REQUIRE_PACKAGES_ICONVENC=1
  2020. endif
  2021. ifeq ($(FULL_TARGET),sparc-netbsd)
  2022. REQUIRE_PACKAGES_RTL=1
  2023. REQUIRE_PACKAGES_HASH=1
  2024. REQUIRE_PACKAGES_PASZLIB=1
  2025. REQUIRE_PACKAGES_FCL-PROCESS=1
  2026. REQUIRE_PACKAGES_FPMKUNIT=1
  2027. REQUIRE_PACKAGES_FCL-BASE=1
  2028. endif
  2029. ifeq ($(FULL_TARGET),sparc-solaris)
  2030. REQUIRE_PACKAGES_RTL=1
  2031. REQUIRE_PACKAGES_HASH=1
  2032. REQUIRE_PACKAGES_PASZLIB=1
  2033. REQUIRE_PACKAGES_FCL-PROCESS=1
  2034. REQUIRE_PACKAGES_FPMKUNIT=1
  2035. REQUIRE_PACKAGES_FCL-BASE=1
  2036. endif
  2037. ifeq ($(FULL_TARGET),sparc-embedded)
  2038. REQUIRE_PACKAGES_RTL=1
  2039. REQUIRE_PACKAGES_HASH=1
  2040. REQUIRE_PACKAGES_PASZLIB=1
  2041. REQUIRE_PACKAGES_FCL-PROCESS=1
  2042. REQUIRE_PACKAGES_FPMKUNIT=1
  2043. REQUIRE_PACKAGES_FCL-BASE=1
  2044. endif
  2045. ifeq ($(FULL_TARGET),x86_64-linux)
  2046. REQUIRE_PACKAGES_RTL=1
  2047. REQUIRE_PACKAGES_HASH=1
  2048. REQUIRE_PACKAGES_PASZLIB=1
  2049. REQUIRE_PACKAGES_FCL-PROCESS=1
  2050. REQUIRE_PACKAGES_FPMKUNIT=1
  2051. REQUIRE_PACKAGES_FCL-BASE=1
  2052. REQUIRE_PACKAGES_ICONVENC=1
  2053. endif
  2054. ifeq ($(FULL_TARGET),x86_64-freebsd)
  2055. REQUIRE_PACKAGES_RTL=1
  2056. REQUIRE_PACKAGES_HASH=1
  2057. REQUIRE_PACKAGES_PASZLIB=1
  2058. REQUIRE_PACKAGES_FCL-PROCESS=1
  2059. REQUIRE_PACKAGES_FPMKUNIT=1
  2060. REQUIRE_PACKAGES_FCL-BASE=1
  2061. REQUIRE_PACKAGES_ICONVENC=1
  2062. endif
  2063. ifeq ($(FULL_TARGET),x86_64-solaris)
  2064. REQUIRE_PACKAGES_RTL=1
  2065. REQUIRE_PACKAGES_HASH=1
  2066. REQUIRE_PACKAGES_PASZLIB=1
  2067. REQUIRE_PACKAGES_FCL-PROCESS=1
  2068. REQUIRE_PACKAGES_FPMKUNIT=1
  2069. REQUIRE_PACKAGES_FCL-BASE=1
  2070. endif
  2071. ifeq ($(FULL_TARGET),x86_64-darwin)
  2072. REQUIRE_PACKAGES_RTL=1
  2073. REQUIRE_PACKAGES_HASH=1
  2074. REQUIRE_PACKAGES_PASZLIB=1
  2075. REQUIRE_PACKAGES_FCL-PROCESS=1
  2076. REQUIRE_PACKAGES_FPMKUNIT=1
  2077. REQUIRE_PACKAGES_FCL-BASE=1
  2078. REQUIRE_PACKAGES_ICONVENC=1
  2079. endif
  2080. ifeq ($(FULL_TARGET),x86_64-win64)
  2081. REQUIRE_PACKAGES_RTL=1
  2082. REQUIRE_PACKAGES_HASH=1
  2083. REQUIRE_PACKAGES_PASZLIB=1
  2084. REQUIRE_PACKAGES_FCL-PROCESS=1
  2085. REQUIRE_PACKAGES_FPMKUNIT=1
  2086. REQUIRE_PACKAGES_FCL-BASE=1
  2087. endif
  2088. ifeq ($(FULL_TARGET),x86_64-embedded)
  2089. REQUIRE_PACKAGES_RTL=1
  2090. REQUIRE_PACKAGES_HASH=1
  2091. REQUIRE_PACKAGES_PASZLIB=1
  2092. REQUIRE_PACKAGES_FCL-PROCESS=1
  2093. REQUIRE_PACKAGES_FPMKUNIT=1
  2094. REQUIRE_PACKAGES_FCL-BASE=1
  2095. endif
  2096. ifeq ($(FULL_TARGET),arm-linux)
  2097. REQUIRE_PACKAGES_RTL=1
  2098. REQUIRE_PACKAGES_HASH=1
  2099. REQUIRE_PACKAGES_PASZLIB=1
  2100. REQUIRE_PACKAGES_FCL-PROCESS=1
  2101. REQUIRE_PACKAGES_FPMKUNIT=1
  2102. REQUIRE_PACKAGES_FCL-BASE=1
  2103. REQUIRE_PACKAGES_ICONVENC=1
  2104. endif
  2105. ifeq ($(FULL_TARGET),arm-palmos)
  2106. REQUIRE_PACKAGES_RTL=1
  2107. REQUIRE_PACKAGES_HASH=1
  2108. REQUIRE_PACKAGES_PASZLIB=1
  2109. REQUIRE_PACKAGES_FCL-PROCESS=1
  2110. REQUIRE_PACKAGES_FPMKUNIT=1
  2111. REQUIRE_PACKAGES_FCL-BASE=1
  2112. endif
  2113. ifeq ($(FULL_TARGET),arm-darwin)
  2114. REQUIRE_PACKAGES_RTL=1
  2115. REQUIRE_PACKAGES_HASH=1
  2116. REQUIRE_PACKAGES_PASZLIB=1
  2117. REQUIRE_PACKAGES_FCL-PROCESS=1
  2118. REQUIRE_PACKAGES_FPMKUNIT=1
  2119. REQUIRE_PACKAGES_FCL-BASE=1
  2120. REQUIRE_PACKAGES_ICONVENC=1
  2121. endif
  2122. ifeq ($(FULL_TARGET),arm-wince)
  2123. REQUIRE_PACKAGES_RTL=1
  2124. REQUIRE_PACKAGES_HASH=1
  2125. REQUIRE_PACKAGES_PASZLIB=1
  2126. REQUIRE_PACKAGES_FCL-PROCESS=1
  2127. REQUIRE_PACKAGES_FPMKUNIT=1
  2128. REQUIRE_PACKAGES_FCL-BASE=1
  2129. endif
  2130. ifeq ($(FULL_TARGET),arm-gba)
  2131. REQUIRE_PACKAGES_RTL=1
  2132. REQUIRE_PACKAGES_HASH=1
  2133. REQUIRE_PACKAGES_PASZLIB=1
  2134. REQUIRE_PACKAGES_FCL-PROCESS=1
  2135. REQUIRE_PACKAGES_FPMKUNIT=1
  2136. REQUIRE_PACKAGES_FCL-BASE=1
  2137. endif
  2138. ifeq ($(FULL_TARGET),arm-nds)
  2139. REQUIRE_PACKAGES_RTL=1
  2140. REQUIRE_PACKAGES_HASH=1
  2141. REQUIRE_PACKAGES_PASZLIB=1
  2142. REQUIRE_PACKAGES_FCL-PROCESS=1
  2143. REQUIRE_PACKAGES_FPMKUNIT=1
  2144. REQUIRE_PACKAGES_FCL-BASE=1
  2145. endif
  2146. ifeq ($(FULL_TARGET),arm-embedded)
  2147. REQUIRE_PACKAGES_RTL=1
  2148. REQUIRE_PACKAGES_HASH=1
  2149. REQUIRE_PACKAGES_PASZLIB=1
  2150. REQUIRE_PACKAGES_FCL-PROCESS=1
  2151. REQUIRE_PACKAGES_FPMKUNIT=1
  2152. REQUIRE_PACKAGES_FCL-BASE=1
  2153. endif
  2154. ifeq ($(FULL_TARGET),arm-symbian)
  2155. REQUIRE_PACKAGES_RTL=1
  2156. REQUIRE_PACKAGES_HASH=1
  2157. REQUIRE_PACKAGES_PASZLIB=1
  2158. REQUIRE_PACKAGES_FCL-PROCESS=1
  2159. REQUIRE_PACKAGES_FPMKUNIT=1
  2160. REQUIRE_PACKAGES_FCL-BASE=1
  2161. endif
  2162. ifeq ($(FULL_TARGET),powerpc64-linux)
  2163. REQUIRE_PACKAGES_RTL=1
  2164. REQUIRE_PACKAGES_HASH=1
  2165. REQUIRE_PACKAGES_PASZLIB=1
  2166. REQUIRE_PACKAGES_FCL-PROCESS=1
  2167. REQUIRE_PACKAGES_FPMKUNIT=1
  2168. REQUIRE_PACKAGES_FCL-BASE=1
  2169. REQUIRE_PACKAGES_ICONVENC=1
  2170. endif
  2171. ifeq ($(FULL_TARGET),powerpc64-darwin)
  2172. REQUIRE_PACKAGES_RTL=1
  2173. REQUIRE_PACKAGES_HASH=1
  2174. REQUIRE_PACKAGES_PASZLIB=1
  2175. REQUIRE_PACKAGES_FCL-PROCESS=1
  2176. REQUIRE_PACKAGES_FPMKUNIT=1
  2177. REQUIRE_PACKAGES_FCL-BASE=1
  2178. REQUIRE_PACKAGES_ICONVENC=1
  2179. endif
  2180. ifeq ($(FULL_TARGET),powerpc64-embedded)
  2181. REQUIRE_PACKAGES_RTL=1
  2182. REQUIRE_PACKAGES_HASH=1
  2183. REQUIRE_PACKAGES_PASZLIB=1
  2184. REQUIRE_PACKAGES_FCL-PROCESS=1
  2185. REQUIRE_PACKAGES_FPMKUNIT=1
  2186. REQUIRE_PACKAGES_FCL-BASE=1
  2187. endif
  2188. ifeq ($(FULL_TARGET),avr-embedded)
  2189. REQUIRE_PACKAGES_RTL=1
  2190. REQUIRE_PACKAGES_HASH=1
  2191. REQUIRE_PACKAGES_PASZLIB=1
  2192. REQUIRE_PACKAGES_FCL-PROCESS=1
  2193. REQUIRE_PACKAGES_FPMKUNIT=1
  2194. REQUIRE_PACKAGES_FCL-BASE=1
  2195. endif
  2196. ifeq ($(FULL_TARGET),armeb-linux)
  2197. REQUIRE_PACKAGES_RTL=1
  2198. REQUIRE_PACKAGES_HASH=1
  2199. REQUIRE_PACKAGES_PASZLIB=1
  2200. REQUIRE_PACKAGES_FCL-PROCESS=1
  2201. REQUIRE_PACKAGES_FPMKUNIT=1
  2202. REQUIRE_PACKAGES_FCL-BASE=1
  2203. REQUIRE_PACKAGES_ICONVENC=1
  2204. endif
  2205. ifeq ($(FULL_TARGET),armeb-embedded)
  2206. REQUIRE_PACKAGES_RTL=1
  2207. REQUIRE_PACKAGES_HASH=1
  2208. REQUIRE_PACKAGES_PASZLIB=1
  2209. REQUIRE_PACKAGES_FCL-PROCESS=1
  2210. REQUIRE_PACKAGES_FPMKUNIT=1
  2211. REQUIRE_PACKAGES_FCL-BASE=1
  2212. endif
  2213. ifeq ($(FULL_TARGET),mipsel-linux)
  2214. REQUIRE_PACKAGES_RTL=1
  2215. REQUIRE_PACKAGES_HASH=1
  2216. REQUIRE_PACKAGES_PASZLIB=1
  2217. REQUIRE_PACKAGES_FCL-PROCESS=1
  2218. REQUIRE_PACKAGES_FPMKUNIT=1
  2219. REQUIRE_PACKAGES_FCL-BASE=1
  2220. REQUIRE_PACKAGES_ICONVENC=1
  2221. endif
  2222. ifdef REQUIRE_PACKAGES_RTL
  2223. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  2224. ifneq ($(PACKAGEDIR_RTL),)
  2225. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  2226. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  2227. else
  2228. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  2229. endif
  2230. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
  2231. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
  2232. else
  2233. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
  2234. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
  2235. else
  2236. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
  2237. endif
  2238. endif
  2239. ifdef CHECKDEPEND
  2240. $(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
  2241. $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
  2242. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
  2243. endif
  2244. else
  2245. PACKAGEDIR_RTL=
  2246. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  2247. ifneq ($(UNITDIR_RTL),)
  2248. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  2249. else
  2250. UNITDIR_RTL=
  2251. endif
  2252. endif
  2253. ifdef UNITDIR_RTL
  2254. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  2255. endif
  2256. ifdef UNITDIR_FPMAKE_RTL
  2257. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
  2258. endif
  2259. endif
  2260. ifdef REQUIRE_PACKAGES_HASH
  2261. PACKAGEDIR_HASH:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /hash/Makefile.fpc,$(PACKAGESDIR))))))
  2262. ifneq ($(PACKAGEDIR_HASH),)
  2263. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)),)
  2264. UNITDIR_HASH=$(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)
  2265. else
  2266. UNITDIR_HASH=$(PACKAGEDIR_HASH)
  2267. endif
  2268. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)),)
  2269. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)
  2270. else
  2271. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)),)
  2272. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)
  2273. else
  2274. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)
  2275. endif
  2276. endif
  2277. ifdef CHECKDEPEND
  2278. $(PACKAGEDIR_HASH)/$(FPCMADE):
  2279. $(MAKE) -C $(PACKAGEDIR_HASH) $(FPCMADE)
  2280. override ALLDEPENDENCIES+=$(PACKAGEDIR_HASH)/$(FPCMADE)
  2281. endif
  2282. else
  2283. PACKAGEDIR_HASH=
  2284. UNITDIR_HASH:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /hash/Package.fpc,$(UNITSDIR)))))
  2285. ifneq ($(UNITDIR_HASH),)
  2286. UNITDIR_HASH:=$(firstword $(UNITDIR_HASH))
  2287. else
  2288. UNITDIR_HASH=
  2289. endif
  2290. endif
  2291. ifdef UNITDIR_HASH
  2292. override COMPILER_UNITDIR+=$(UNITDIR_HASH)
  2293. endif
  2294. ifdef UNITDIR_FPMAKE_HASH
  2295. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_HASH)
  2296. endif
  2297. endif
  2298. ifdef REQUIRE_PACKAGES_PASZLIB
  2299. PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR))))))
  2300. ifneq ($(PACKAGEDIR_PASZLIB),)
  2301. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),)
  2302. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)
  2303. else
  2304. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)
  2305. endif
  2306. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)),)
  2307. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)
  2308. else
  2309. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)),)
  2310. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)
  2311. else
  2312. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)
  2313. endif
  2314. endif
  2315. ifdef CHECKDEPEND
  2316. $(PACKAGEDIR_PASZLIB)/$(FPCMADE):
  2317. $(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE)
  2318. override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE)
  2319. endif
  2320. else
  2321. PACKAGEDIR_PASZLIB=
  2322. UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR)))))
  2323. ifneq ($(UNITDIR_PASZLIB),)
  2324. UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB))
  2325. else
  2326. UNITDIR_PASZLIB=
  2327. endif
  2328. endif
  2329. ifdef UNITDIR_PASZLIB
  2330. override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB)
  2331. endif
  2332. ifdef UNITDIR_FPMAKE_PASZLIB
  2333. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_PASZLIB)
  2334. endif
  2335. endif
  2336. ifdef REQUIRE_PACKAGES_FCL-PROCESS
  2337. PACKAGEDIR_FCL-PROCESS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Makefile.fpc,$(PACKAGESDIR))))))
  2338. ifneq ($(PACKAGEDIR_FCL-PROCESS),)
  2339. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)),)
  2340. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)
  2341. else
  2342. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  2343. endif
  2344. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)),)
  2345. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)
  2346. else
  2347. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)),)
  2348. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)
  2349. else
  2350. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  2351. endif
  2352. endif
  2353. ifdef CHECKDEPEND
  2354. $(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE):
  2355. $(MAKE) -C $(PACKAGEDIR_FCL-PROCESS) $(FPCMADE)
  2356. override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE)
  2357. endif
  2358. else
  2359. PACKAGEDIR_FCL-PROCESS=
  2360. UNITDIR_FCL-PROCESS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Package.fpc,$(UNITSDIR)))))
  2361. ifneq ($(UNITDIR_FCL-PROCESS),)
  2362. UNITDIR_FCL-PROCESS:=$(firstword $(UNITDIR_FCL-PROCESS))
  2363. else
  2364. UNITDIR_FCL-PROCESS=
  2365. endif
  2366. endif
  2367. ifdef UNITDIR_FCL-PROCESS
  2368. override COMPILER_UNITDIR+=$(UNITDIR_FCL-PROCESS)
  2369. endif
  2370. ifdef UNITDIR_FPMAKE_FCL-PROCESS
  2371. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-PROCESS)
  2372. endif
  2373. endif
  2374. ifdef REQUIRE_PACKAGES_FPMKUNIT
  2375. PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
  2376. ifneq ($(PACKAGEDIR_FPMKUNIT),)
  2377. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
  2378. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
  2379. else
  2380. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  2381. endif
  2382. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
  2383. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
  2384. else
  2385. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
  2386. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
  2387. else
  2388. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  2389. endif
  2390. endif
  2391. ifdef CHECKDEPEND
  2392. $(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
  2393. $(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
  2394. override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
  2395. endif
  2396. else
  2397. PACKAGEDIR_FPMKUNIT=
  2398. UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
  2399. ifneq ($(UNITDIR_FPMKUNIT),)
  2400. UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
  2401. else
  2402. UNITDIR_FPMKUNIT=
  2403. endif
  2404. endif
  2405. ifdef UNITDIR_FPMKUNIT
  2406. override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
  2407. endif
  2408. ifdef UNITDIR_FPMAKE_FPMKUNIT
  2409. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
  2410. endif
  2411. endif
  2412. ifdef REQUIRE_PACKAGES_FCL-BASE
  2413. PACKAGEDIR_FCL-BASE:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-base/Makefile.fpc,$(PACKAGESDIR))))))
  2414. ifneq ($(PACKAGEDIR_FCL-BASE),)
  2415. ifneq ($(wildcard $(PACKAGEDIR_FCL-BASE)/units/$(TARGETSUFFIX)),)
  2416. UNITDIR_FCL-BASE=$(PACKAGEDIR_FCL-BASE)/units/$(TARGETSUFFIX)
  2417. else
  2418. UNITDIR_FCL-BASE=$(PACKAGEDIR_FCL-BASE)
  2419. endif
  2420. ifneq ($(wildcard $(PACKAGEDIR_FCL-BASE)/units/$(SOURCESUFFIX)),)
  2421. UNITDIR_FPMAKE_FCL-BASE=$(PACKAGEDIR_FCL-BASE)/units/$(SOURCESUFFIX)
  2422. else
  2423. ifneq ($(wildcard $(PACKAGEDIR_FCL-BASE)/units_bs/$(SOURCESUFFIX)),)
  2424. UNITDIR_FPMAKE_FCL-BASE=$(PACKAGEDIR_FCL-BASE)/units_bs/$(SOURCESUFFIX)
  2425. else
  2426. UNITDIR_FPMAKE_FCL-BASE=$(PACKAGEDIR_FCL-BASE)
  2427. endif
  2428. endif
  2429. ifdef CHECKDEPEND
  2430. $(PACKAGEDIR_FCL-BASE)/$(FPCMADE):
  2431. $(MAKE) -C $(PACKAGEDIR_FCL-BASE) $(FPCMADE)
  2432. override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-BASE)/$(FPCMADE)
  2433. endif
  2434. else
  2435. PACKAGEDIR_FCL-BASE=
  2436. UNITDIR_FCL-BASE:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-base/Package.fpc,$(UNITSDIR)))))
  2437. ifneq ($(UNITDIR_FCL-BASE),)
  2438. UNITDIR_FCL-BASE:=$(firstword $(UNITDIR_FCL-BASE))
  2439. else
  2440. UNITDIR_FCL-BASE=
  2441. endif
  2442. endif
  2443. ifdef UNITDIR_FCL-BASE
  2444. override COMPILER_UNITDIR+=$(UNITDIR_FCL-BASE)
  2445. endif
  2446. ifdef UNITDIR_FPMAKE_FCL-BASE
  2447. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-BASE)
  2448. endif
  2449. endif
  2450. ifdef REQUIRE_PACKAGES_ICONVENC
  2451. PACKAGEDIR_ICONVENC:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /iconvenc/Makefile.fpc,$(PACKAGESDIR))))))
  2452. ifneq ($(PACKAGEDIR_ICONVENC),)
  2453. ifneq ($(wildcard $(PACKAGEDIR_ICONVENC)/units/$(TARGETSUFFIX)),)
  2454. UNITDIR_ICONVENC=$(PACKAGEDIR_ICONVENC)/units/$(TARGETSUFFIX)
  2455. else
  2456. UNITDIR_ICONVENC=$(PACKAGEDIR_ICONVENC)
  2457. endif
  2458. ifneq ($(wildcard $(PACKAGEDIR_ICONVENC)/units/$(SOURCESUFFIX)),)
  2459. UNITDIR_FPMAKE_ICONVENC=$(PACKAGEDIR_ICONVENC)/units/$(SOURCESUFFIX)
  2460. else
  2461. ifneq ($(wildcard $(PACKAGEDIR_ICONVENC)/units_bs/$(SOURCESUFFIX)),)
  2462. UNITDIR_FPMAKE_ICONVENC=$(PACKAGEDIR_ICONVENC)/units_bs/$(SOURCESUFFIX)
  2463. else
  2464. UNITDIR_FPMAKE_ICONVENC=$(PACKAGEDIR_ICONVENC)
  2465. endif
  2466. endif
  2467. ifdef CHECKDEPEND
  2468. $(PACKAGEDIR_ICONVENC)/$(FPCMADE):
  2469. $(MAKE) -C $(PACKAGEDIR_ICONVENC) $(FPCMADE)
  2470. override ALLDEPENDENCIES+=$(PACKAGEDIR_ICONVENC)/$(FPCMADE)
  2471. endif
  2472. else
  2473. PACKAGEDIR_ICONVENC=
  2474. UNITDIR_ICONVENC:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /iconvenc/Package.fpc,$(UNITSDIR)))))
  2475. ifneq ($(UNITDIR_ICONVENC),)
  2476. UNITDIR_ICONVENC:=$(firstword $(UNITDIR_ICONVENC))
  2477. else
  2478. UNITDIR_ICONVENC=
  2479. endif
  2480. endif
  2481. ifdef UNITDIR_ICONVENC
  2482. override COMPILER_UNITDIR+=$(UNITDIR_ICONVENC)
  2483. endif
  2484. ifdef UNITDIR_FPMAKE_ICONVENC
  2485. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_ICONVENC)
  2486. endif
  2487. endif
  2488. ifndef NOCPUDEF
  2489. override FPCOPTDEF=$(ARCH)
  2490. endif
  2491. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2492. override FPCOPT+=-T$(OS_TARGET)
  2493. endif
  2494. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  2495. override FPCOPT+=-P$(ARCH)
  2496. endif
  2497. ifeq ($(OS_SOURCE),openbsd)
  2498. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2499. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  2500. endif
  2501. ifndef CROSSBOOTSTRAP
  2502. ifneq ($(BINUTILSPREFIX),)
  2503. override FPCOPT+=-XP$(BINUTILSPREFIX)
  2504. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  2505. endif
  2506. ifneq ($(BINUTILSPREFIX),)
  2507. override FPCOPT+=-Xr$(RLINKPATH)
  2508. endif
  2509. endif
  2510. ifdef UNITDIR
  2511. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2512. endif
  2513. ifdef LIBDIR
  2514. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2515. endif
  2516. ifdef OBJDIR
  2517. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2518. endif
  2519. ifdef INCDIR
  2520. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2521. endif
  2522. ifdef LINKSMART
  2523. override FPCOPT+=-XX
  2524. endif
  2525. ifdef CREATESMART
  2526. override FPCOPT+=-CX
  2527. endif
  2528. ifdef DEBUG
  2529. override FPCOPT+=-gl
  2530. override FPCOPTDEF+=DEBUG
  2531. endif
  2532. ifdef RELEASE
  2533. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  2534. ifeq ($(CPU_TARGET),i386)
  2535. FPCCPUOPT:=-OG2p3
  2536. endif
  2537. ifeq ($(CPU_TARGET),powerpc)
  2538. FPCCPUOPT:=-O1r
  2539. endif
  2540. else
  2541. FPCCPUOPT:=-O2
  2542. endif
  2543. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  2544. override FPCOPTDEF+=RELEASE
  2545. endif
  2546. ifdef STRIP
  2547. override FPCOPT+=-Xs
  2548. endif
  2549. ifdef OPTIMIZE
  2550. override FPCOPT+=-O2
  2551. endif
  2552. ifdef VERBOSE
  2553. override FPCOPT+=-vwni
  2554. endif
  2555. ifdef COMPILER_OPTIONS
  2556. override FPCOPT+=$(COMPILER_OPTIONS)
  2557. endif
  2558. ifdef COMPILER_UNITDIR
  2559. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2560. endif
  2561. ifdef COMPILER_LIBRARYDIR
  2562. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2563. endif
  2564. ifdef COMPILER_OBJECTDIR
  2565. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2566. endif
  2567. ifdef COMPILER_INCLUDEDIR
  2568. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2569. endif
  2570. ifdef CROSSBINDIR
  2571. override FPCOPT+=-FD$(CROSSBINDIR)
  2572. endif
  2573. ifdef COMPILER_TARGETDIR
  2574. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2575. ifeq ($(COMPILER_TARGETDIR),.)
  2576. override TARGETDIRPREFIX=
  2577. else
  2578. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2579. endif
  2580. endif
  2581. ifdef COMPILER_UNITTARGETDIR
  2582. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2583. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2584. override UNITTARGETDIRPREFIX=
  2585. else
  2586. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2587. endif
  2588. else
  2589. ifdef COMPILER_TARGETDIR
  2590. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2591. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2592. endif
  2593. endif
  2594. ifdef CREATESHARED
  2595. override FPCOPT+=-Cg
  2596. ifeq ($(CPU_TARGET),i386)
  2597. override FPCOPT+=-Aas
  2598. endif
  2599. endif
  2600. ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
  2601. ifneq ($(findstring $(OS_TARGET),freebsd openbsd netbsd linux solaris),)
  2602. ifeq ($(CPU_TARGET),x86_64)
  2603. override FPCOPT+=-Cg
  2604. endif
  2605. endif
  2606. endif
  2607. ifdef LINKSHARED
  2608. endif
  2609. ifdef GCCLIBDIR
  2610. override FPCOPT+=-Fl$(GCCLIBDIR)
  2611. endif
  2612. ifdef OTHERLIBDIR
  2613. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  2614. endif
  2615. ifdef OPT
  2616. override FPCOPT+=$(OPT)
  2617. endif
  2618. ifdef FPCOPTDEF
  2619. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2620. endif
  2621. ifdef CFGFILE
  2622. override FPCOPT+=@$(CFGFILE)
  2623. endif
  2624. ifdef USEENV
  2625. override FPCEXTCMD:=$(FPCOPT)
  2626. override FPCOPT:=!FPCEXTCMD
  2627. export FPCEXTCMD
  2628. endif
  2629. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  2630. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  2631. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  2632. override ACROSSCOMPILE=1
  2633. endif
  2634. ifdef ACROSSCOMPILE
  2635. override FPCOPT+=$(CROSSOPT)
  2636. endif
  2637. override COMPILER:=$(FPC) $(FPCOPT)
  2638. ifeq (,$(findstring -s ,$(COMPILER)))
  2639. EXECPPAS=
  2640. else
  2641. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2642. ifdef RUNBATCH
  2643. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  2644. else
  2645. EXECPPAS:=@$(PPAS)
  2646. endif
  2647. endif
  2648. endif
  2649. .PHONY: fpc_units
  2650. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  2651. override ALLTARGET+=fpc_units
  2652. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  2653. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  2654. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2655. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2656. endif
  2657. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  2658. ifdef TARGET_RSTS
  2659. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2660. override CLEANRSTFILES+=$(RSTFILES)
  2661. endif
  2662. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  2663. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2664. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2665. fpc_all: $(FPCMADE)
  2666. fpc_smart:
  2667. $(MAKE) all LINKSMART=1 CREATESMART=1
  2668. fpc_debug:
  2669. $(MAKE) all DEBUG=1
  2670. fpc_release:
  2671. $(MAKE) all RELEASE=1
  2672. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  2673. $(COMPILER_UNITTARGETDIR):
  2674. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2675. $(COMPILER_TARGETDIR):
  2676. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2677. %$(PPUEXT): %.pp
  2678. $(COMPILER) $<
  2679. $(EXECPPAS)
  2680. %$(PPUEXT): %.pas
  2681. $(COMPILER) $<
  2682. $(EXECPPAS)
  2683. %$(EXEEXT): %.pp
  2684. $(COMPILER) $<
  2685. $(EXECPPAS)
  2686. %$(EXEEXT): %.pas
  2687. $(COMPILER) $<
  2688. $(EXECPPAS)
  2689. %$(EXEEXT): %.lpr
  2690. $(COMPILER) $<
  2691. $(EXECPPAS)
  2692. %$(EXEEXT): %.dpr
  2693. $(COMPILER) $<
  2694. $(EXECPPAS)
  2695. %.res: %.rc
  2696. windres -i $< -o $@
  2697. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2698. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2699. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2700. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2701. vpath %.inc $(COMPILER_INCLUDEDIR)
  2702. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2703. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2704. .PHONY: fpc_shared
  2705. override INSTALLTARGET+=fpc_shared_install
  2706. ifndef SHARED_LIBVERSION
  2707. SHARED_LIBVERSION=$(FPC_VERSION)
  2708. endif
  2709. ifndef SHARED_LIBNAME
  2710. SHARED_LIBNAME=$(PACKAGE_NAME)
  2711. endif
  2712. ifndef SHARED_FULLNAME
  2713. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  2714. endif
  2715. ifndef SHARED_LIBUNITS
  2716. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  2717. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  2718. endif
  2719. fpc_shared:
  2720. ifdef HASSHAREDLIB
  2721. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  2722. ifneq ($(SHARED_BUILD),n)
  2723. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
  2724. endif
  2725. else
  2726. @$(ECHO) Shared Libraries not supported
  2727. endif
  2728. fpc_shared_install:
  2729. ifneq ($(SHARED_BUILD),n)
  2730. ifneq ($(SHARED_LIBUNITS),)
  2731. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  2732. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  2733. endif
  2734. endif
  2735. endif
  2736. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2737. ifdef INSTALL_UNITS
  2738. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2739. endif
  2740. ifdef INSTALL_BUILDUNIT
  2741. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2742. endif
  2743. ifdef INSTALLPPUFILES
  2744. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2745. ifneq ($(UNITTARGETDIRPREFIX),)
  2746. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
  2747. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
  2748. endif
  2749. override INSTALL_CREATEPACKAGEFPC=1
  2750. endif
  2751. ifdef INSTALLEXEFILES
  2752. ifneq ($(TARGETDIRPREFIX),)
  2753. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  2754. endif
  2755. endif
  2756. fpc_install: all $(INSTALLTARGET)
  2757. ifdef INSTALLEXEFILES
  2758. $(MKDIR) $(INSTALL_BINDIR)
  2759. ifdef UPXPROG
  2760. -$(UPXPROG) $(INSTALLEXEFILES)
  2761. endif
  2762. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2763. endif
  2764. ifdef INSTALL_CREATEPACKAGEFPC
  2765. ifdef FPCMAKE
  2766. ifdef PACKAGE_VERSION
  2767. ifneq ($(wildcard Makefile.fpc),)
  2768. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  2769. $(MKDIR) $(INSTALL_UNITDIR)
  2770. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2771. endif
  2772. endif
  2773. endif
  2774. endif
  2775. ifdef INSTALLPPUFILES
  2776. $(MKDIR) $(INSTALL_UNITDIR)
  2777. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2778. ifneq ($(INSTALLPPULINKFILES),)
  2779. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2780. endif
  2781. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2782. $(MKDIR) $(INSTALL_LIBDIR)
  2783. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2784. ifdef inUnix
  2785. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2786. endif
  2787. endif
  2788. endif
  2789. ifdef INSTALL_FILES
  2790. $(MKDIR) $(INSTALL_DATADIR)
  2791. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2792. endif
  2793. fpc_sourceinstall: distclean
  2794. $(MKDIR) $(INSTALL_SOURCEDIR)
  2795. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2796. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2797. ifdef HASEXAMPLES
  2798. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2799. endif
  2800. ifdef EXAMPLESOURCEFILES
  2801. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2802. endif
  2803. ifdef TARGET_EXAMPLEDIRS
  2804. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2805. endif
  2806. .PHONY: fpc_distinstall
  2807. fpc_distinstall: install exampleinstall
  2808. .PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
  2809. ifndef PACKDIR
  2810. ifndef inUnix
  2811. PACKDIR=$(BASEDIR)/../fpc-pack
  2812. else
  2813. PACKDIR=/tmp/fpc-pack
  2814. endif
  2815. endif
  2816. ifndef ZIPNAME
  2817. ifdef DIST_ZIPNAME
  2818. ZIPNAME=$(DIST_ZIPNAME)
  2819. else
  2820. ZIPNAME=$(PACKAGE_NAME)
  2821. endif
  2822. endif
  2823. ifndef FULLZIPNAME
  2824. FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
  2825. endif
  2826. ifndef ZIPTARGET
  2827. ifdef DIST_ZIPTARGET
  2828. ZIPTARGET=DIST_ZIPTARGET
  2829. else
  2830. ZIPTARGET=install
  2831. endif
  2832. endif
  2833. ifndef USEZIP
  2834. ifdef inUnix
  2835. USETAR=1
  2836. endif
  2837. endif
  2838. ifndef inUnix
  2839. USEZIPWRAPPER=1
  2840. endif
  2841. ifdef USEZIPWRAPPER
  2842. ZIPPATHSEP=$(PATHSEP)
  2843. ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
  2844. else
  2845. ZIPPATHSEP=/
  2846. endif
  2847. ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
  2848. ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
  2849. ifdef USETAR
  2850. ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
  2851. ZIPCMD_ZIP:=$(TARPROG) c$(TAROPT)f $(ZIPDESTFILE) *
  2852. else
  2853. ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
  2854. ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
  2855. endif
  2856. fpc_zipinstall:
  2857. $(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
  2858. $(MKDIR) $(DIST_DESTDIR)
  2859. $(DEL) $(ZIPDESTFILE)
  2860. ifdef USEZIPWRAPPER
  2861. ifneq ($(ECHOREDIR),echo)
  2862. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
  2863. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
  2864. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
  2865. else
  2866. echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
  2867. echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
  2868. echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
  2869. endif
  2870. ifdef inUnix
  2871. /bin/sh $(ZIPWRAPPER)
  2872. else
  2873. ifdef RUNBATCH
  2874. $(RUNBATCH) $(ZIPWRAPPER)
  2875. else
  2876. $(ZIPWRAPPER)
  2877. endif
  2878. endif
  2879. $(DEL) $(ZIPWRAPPER)
  2880. else
  2881. $(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
  2882. endif
  2883. $(DELTREE) $(PACKDIR)
  2884. fpc_zipsourceinstall:
  2885. $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
  2886. fpc_zipexampleinstall:
  2887. ifdef HASEXAMPLES
  2888. $(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
  2889. endif
  2890. fpc_zipdistinstall:
  2891. $(MAKE) fpc_zipinstall ZIPTARGET=distinstall
  2892. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2893. ifdef EXEFILES
  2894. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2895. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  2896. endif
  2897. ifdef CLEAN_PROGRAMS
  2898. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  2899. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  2900. endif
  2901. ifdef CLEAN_UNITS
  2902. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2903. endif
  2904. ifdef CLEANPPUFILES
  2905. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2906. ifdef DEBUGSYMEXT
  2907. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2908. endif
  2909. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  2910. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  2911. endif
  2912. fpc_clean: $(CLEANTARGET)
  2913. ifdef CLEANEXEFILES
  2914. -$(DEL) $(CLEANEXEFILES)
  2915. endif
  2916. ifdef CLEANEXEDBGFILES
  2917. -$(DELTREE) $(CLEANEXEDBGFILES)
  2918. endif
  2919. ifdef CLEANPPUFILES
  2920. -$(DEL) $(CLEANPPUFILES)
  2921. endif
  2922. ifneq ($(CLEANPPULINKFILES),)
  2923. -$(DEL) $(CLEANPPULINKFILES)
  2924. endif
  2925. ifdef CLEANRSTFILES
  2926. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2927. endif
  2928. ifdef CLEAN_FILES
  2929. -$(DEL) $(CLEAN_FILES)
  2930. endif
  2931. ifdef LIB_NAME
  2932. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2933. endif
  2934. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2935. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
  2936. fpc_cleanall: $(CLEANTARGET)
  2937. ifdef CLEANEXEFILES
  2938. -$(DEL) $(CLEANEXEFILES)
  2939. endif
  2940. ifdef COMPILER_UNITTARGETDIR
  2941. ifdef CLEANPPUFILES
  2942. -$(DEL) $(CLEANPPUFILES)
  2943. endif
  2944. ifneq ($(CLEANPPULINKFILES),)
  2945. -$(DEL) $(CLEANPPULINKFILES)
  2946. endif
  2947. ifdef CLEANRSTFILES
  2948. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2949. endif
  2950. endif
  2951. ifdef CLEAN_FILES
  2952. -$(DEL) $(CLEAN_FILES)
  2953. endif
  2954. -$(DELTREE) units
  2955. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2956. ifneq ($(PPUEXT),.ppu)
  2957. -$(DEL) *.o *.ppu *.a
  2958. endif
  2959. -$(DELTREE) *$(SMARTEXT)
  2960. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2961. -$(DEL) *_ppas$(BATCHEXT)
  2962. ifdef AOUTEXT
  2963. -$(DEL) *$(AOUTEXT)
  2964. endif
  2965. ifdef DEBUGSYMEXT
  2966. -$(DEL) *$(DEBUGSYMEXT)
  2967. endif
  2968. fpc_distclean: cleanall
  2969. .PHONY: fpc_baseinfo
  2970. override INFORULES+=fpc_baseinfo
  2971. fpc_baseinfo:
  2972. @$(ECHO)
  2973. @$(ECHO) == Package info ==
  2974. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  2975. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  2976. @$(ECHO)
  2977. @$(ECHO) == Configuration info ==
  2978. @$(ECHO)
  2979. @$(ECHO) FPC.......... $(FPC)
  2980. @$(ECHO) FPC Version.. $(FPC_VERSION)
  2981. @$(ECHO) Source CPU... $(CPU_SOURCE)
  2982. @$(ECHO) Target CPU... $(CPU_TARGET)
  2983. @$(ECHO) Source OS.... $(OS_SOURCE)
  2984. @$(ECHO) Target OS.... $(OS_TARGET)
  2985. @$(ECHO) Full Source.. $(FULL_SOURCE)
  2986. @$(ECHO) Full Target.. $(FULL_TARGET)
  2987. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  2988. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  2989. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  2990. @$(ECHO)
  2991. @$(ECHO) == Directory info ==
  2992. @$(ECHO)
  2993. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  2994. @$(ECHO)
  2995. @$(ECHO) Basedir......... $(BASEDIR)
  2996. @$(ECHO) FPCDir.......... $(FPCDIR)
  2997. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  2998. @$(ECHO) UnitsDir........ $(UNITSDIR)
  2999. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  3000. @$(ECHO)
  3001. @$(ECHO) GCC library..... $(GCCLIBDIR)
  3002. @$(ECHO) Other library... $(OTHERLIBDIR)
  3003. @$(ECHO)
  3004. @$(ECHO) == Tools info ==
  3005. @$(ECHO)
  3006. @$(ECHO) As........ $(AS)
  3007. @$(ECHO) Ld........ $(LD)
  3008. @$(ECHO) Ar........ $(AR)
  3009. @$(ECHO) Rc........ $(RC)
  3010. @$(ECHO)
  3011. @$(ECHO) Mv........ $(MVPROG)
  3012. @$(ECHO) Cp........ $(CPPROG)
  3013. @$(ECHO) Rm........ $(RMPROG)
  3014. @$(ECHO) GInstall.. $(GINSTALL)
  3015. @$(ECHO) Echo...... $(ECHO)
  3016. @$(ECHO) Shell..... $(SHELL)
  3017. @$(ECHO) Date...... $(DATE)
  3018. @$(ECHO) FPCMake... $(FPCMAKE)
  3019. @$(ECHO) PPUMove... $(PPUMOVE)
  3020. @$(ECHO) Upx....... $(UPXPROG)
  3021. @$(ECHO) Zip....... $(ZIPPROG)
  3022. @$(ECHO)
  3023. @$(ECHO) == Object info ==
  3024. @$(ECHO)
  3025. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  3026. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  3027. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  3028. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  3029. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  3030. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  3031. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  3032. @$(ECHO)
  3033. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  3034. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  3035. @$(ECHO)
  3036. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  3037. @$(ECHO) Install Files....... $(INSTALL_FILES)
  3038. @$(ECHO)
  3039. @$(ECHO) == Install info ==
  3040. @$(ECHO)
  3041. @$(ECHO) DateStr.............. $(DATESTR)
  3042. @$(ECHO) ZipName.............. $(ZIPNAME)
  3043. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  3044. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  3045. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  3046. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  3047. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  3048. @$(ECHO)
  3049. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  3050. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  3051. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  3052. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  3053. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  3054. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  3055. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  3056. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  3057. @$(ECHO)
  3058. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  3059. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  3060. @$(ECHO)
  3061. .PHONY: fpc_info
  3062. fpc_info: $(INFORULES)
  3063. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  3064. fpc_makefile_dirs
  3065. fpc_makefile:
  3066. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  3067. fpc_makefile_sub1:
  3068. ifdef TARGET_DIRS
  3069. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  3070. endif
  3071. ifdef TARGET_EXAMPLEDIRS
  3072. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  3073. endif
  3074. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  3075. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  3076. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  3077. all: fpc_all
  3078. debug: fpc_debug
  3079. smart: fpc_smart
  3080. release: fpc_release
  3081. units: fpc_units
  3082. examples:
  3083. shared: fpc_shared
  3084. install: fpc_install
  3085. sourceinstall: fpc_sourceinstall
  3086. exampleinstall: fpc_exampleinstall
  3087. distinstall: fpc_distinstall
  3088. zipinstall: fpc_zipinstall
  3089. zipsourceinstall: fpc_zipsourceinstall
  3090. zipexampleinstall: fpc_zipexampleinstall
  3091. zipdistinstall: fpc_zipdistinstall
  3092. clean: fpc_clean
  3093. distclean: fpc_distclean
  3094. cleanall: fpc_cleanall
  3095. info: fpc_info
  3096. makefiles: fpc_makefiles
  3097. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  3098. ifneq ($(wildcard fpcmake.loc),)
  3099. include fpcmake.loc
  3100. endif
  3101. .NOTPARALLEL: