Makefile 104 KB

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