Makefile 80 KB

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