Makefile 77 KB

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