Makefile 119 KB

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