Makefile 80 KB

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