Makefile 101 KB

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