Makefile 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/08/22]
  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. UNIXINC=$(RTL)/unix
  242. UNITPREFIX=rtl
  243. SYSTEMUNIT=system
  244. ifdef RELEASE
  245. override FPCOPT+=-Ur
  246. endif
  247. override FPCOPT+=-dFPC_USE_LIBC -dNOMOUSE
  248. OBJPASDIR=$(RTL)/objpas
  249. GRAPHDIR=$(INC)/graph
  250. ifndef USELIBGGI
  251. USELIBGGI=NO
  252. endif
  253. ifeq ($(FULL_TARGET),i386-linux)
  254. 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
  255. endif
  256. ifeq ($(FULL_TARGET),i386-go32v2)
  257. 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
  258. endif
  259. ifeq ($(FULL_TARGET),i386-win32)
  260. 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
  261. endif
  262. ifeq ($(FULL_TARGET),i386-os2)
  263. 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
  264. endif
  265. ifeq ($(FULL_TARGET),i386-freebsd)
  266. 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
  267. endif
  268. ifeq ($(FULL_TARGET),i386-beos)
  269. 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
  270. endif
  271. ifeq ($(FULL_TARGET),i386-netbsd)
  272. 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
  273. endif
  274. ifeq ($(FULL_TARGET),i386-solaris)
  275. 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
  276. endif
  277. ifeq ($(FULL_TARGET),i386-qnx)
  278. 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
  279. endif
  280. ifeq ($(FULL_TARGET),i386-netware)
  281. 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
  282. endif
  283. ifeq ($(FULL_TARGET),i386-openbsd)
  284. 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
  285. endif
  286. ifeq ($(FULL_TARGET),i386-wdosx)
  287. 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
  288. endif
  289. ifeq ($(FULL_TARGET),i386-darwin)
  290. 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
  291. endif
  292. ifeq ($(FULL_TARGET),i386-emx)
  293. 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
  294. endif
  295. ifeq ($(FULL_TARGET),i386-watcom)
  296. 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
  297. endif
  298. ifeq ($(FULL_TARGET),i386-netwlibc)
  299. 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
  300. endif
  301. ifeq ($(FULL_TARGET),i386-wince)
  302. 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
  303. endif
  304. ifeq ($(FULL_TARGET),i386-embedded)
  305. 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
  306. endif
  307. ifeq ($(FULL_TARGET),i386-symbian)
  308. 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
  309. endif
  310. ifeq ($(FULL_TARGET),m68k-linux)
  311. 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
  312. endif
  313. ifeq ($(FULL_TARGET),m68k-freebsd)
  314. 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
  315. endif
  316. ifeq ($(FULL_TARGET),m68k-netbsd)
  317. 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
  318. endif
  319. ifeq ($(FULL_TARGET),m68k-amiga)
  320. 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
  321. endif
  322. ifeq ($(FULL_TARGET),m68k-atari)
  323. 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
  324. endif
  325. ifeq ($(FULL_TARGET),m68k-openbsd)
  326. 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
  327. endif
  328. ifeq ($(FULL_TARGET),m68k-palmos)
  329. 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
  330. endif
  331. ifeq ($(FULL_TARGET),m68k-embedded)
  332. 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
  333. endif
  334. ifeq ($(FULL_TARGET),powerpc-linux)
  335. 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
  336. endif
  337. ifeq ($(FULL_TARGET),powerpc-netbsd)
  338. 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
  339. endif
  340. ifeq ($(FULL_TARGET),powerpc-amiga)
  341. 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
  342. endif
  343. ifeq ($(FULL_TARGET),powerpc-macos)
  344. 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
  345. endif
  346. ifeq ($(FULL_TARGET),powerpc-darwin)
  347. 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
  348. endif
  349. ifeq ($(FULL_TARGET),powerpc-morphos)
  350. 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
  351. endif
  352. ifeq ($(FULL_TARGET),powerpc-embedded)
  353. 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
  354. endif
  355. ifeq ($(FULL_TARGET),sparc-linux)
  356. 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
  357. endif
  358. ifeq ($(FULL_TARGET),sparc-netbsd)
  359. 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
  360. endif
  361. ifeq ($(FULL_TARGET),sparc-solaris)
  362. 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
  363. endif
  364. ifeq ($(FULL_TARGET),sparc-embedded)
  365. 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
  366. endif
  367. ifeq ($(FULL_TARGET),x86_64-linux)
  368. 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
  369. endif
  370. ifeq ($(FULL_TARGET),x86_64-freebsd)
  371. 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
  372. endif
  373. ifeq ($(FULL_TARGET),x86_64-win64)
  374. 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
  375. endif
  376. ifeq ($(FULL_TARGET),x86_64-embedded)
  377. 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
  378. endif
  379. ifeq ($(FULL_TARGET),arm-linux)
  380. 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
  381. endif
  382. ifeq ($(FULL_TARGET),arm-palmos)
  383. 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
  384. endif
  385. ifeq ($(FULL_TARGET),arm-wince)
  386. 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
  387. endif
  388. ifeq ($(FULL_TARGET),arm-gba)
  389. 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
  390. endif
  391. ifeq ($(FULL_TARGET),arm-nds)
  392. 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
  393. endif
  394. ifeq ($(FULL_TARGET),arm-embedded)
  395. 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
  396. endif
  397. ifeq ($(FULL_TARGET),arm-symbian)
  398. 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
  399. endif
  400. ifeq ($(FULL_TARGET),powerpc64-linux)
  401. 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
  402. endif
  403. ifeq ($(FULL_TARGET),powerpc64-darwin)
  404. 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
  405. endif
  406. ifeq ($(FULL_TARGET),powerpc64-embedded)
  407. 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
  408. endif
  409. ifeq ($(FULL_TARGET),i386-linux)
  410. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  411. endif
  412. ifeq ($(FULL_TARGET),i386-go32v2)
  413. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  414. endif
  415. ifeq ($(FULL_TARGET),i386-win32)
  416. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  417. endif
  418. ifeq ($(FULL_TARGET),i386-os2)
  419. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  420. endif
  421. ifeq ($(FULL_TARGET),i386-freebsd)
  422. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  423. endif
  424. ifeq ($(FULL_TARGET),i386-beos)
  425. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  426. endif
  427. ifeq ($(FULL_TARGET),i386-netbsd)
  428. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  429. endif
  430. ifeq ($(FULL_TARGET),i386-solaris)
  431. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  432. endif
  433. ifeq ($(FULL_TARGET),i386-qnx)
  434. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  435. endif
  436. ifeq ($(FULL_TARGET),i386-netware)
  437. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  438. endif
  439. ifeq ($(FULL_TARGET),i386-openbsd)
  440. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  441. endif
  442. ifeq ($(FULL_TARGET),i386-wdosx)
  443. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  444. endif
  445. ifeq ($(FULL_TARGET),i386-darwin)
  446. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  447. endif
  448. ifeq ($(FULL_TARGET),i386-emx)
  449. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  450. endif
  451. ifeq ($(FULL_TARGET),i386-watcom)
  452. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  453. endif
  454. ifeq ($(FULL_TARGET),i386-netwlibc)
  455. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  456. endif
  457. ifeq ($(FULL_TARGET),i386-wince)
  458. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  459. endif
  460. ifeq ($(FULL_TARGET),i386-embedded)
  461. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  462. endif
  463. ifeq ($(FULL_TARGET),i386-symbian)
  464. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  465. endif
  466. ifeq ($(FULL_TARGET),m68k-linux)
  467. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  468. endif
  469. ifeq ($(FULL_TARGET),m68k-freebsd)
  470. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  471. endif
  472. ifeq ($(FULL_TARGET),m68k-netbsd)
  473. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  474. endif
  475. ifeq ($(FULL_TARGET),m68k-amiga)
  476. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  477. endif
  478. ifeq ($(FULL_TARGET),m68k-atari)
  479. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  480. endif
  481. ifeq ($(FULL_TARGET),m68k-openbsd)
  482. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  483. endif
  484. ifeq ($(FULL_TARGET),m68k-palmos)
  485. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  486. endif
  487. ifeq ($(FULL_TARGET),m68k-embedded)
  488. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  489. endif
  490. ifeq ($(FULL_TARGET),powerpc-linux)
  491. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  492. endif
  493. ifeq ($(FULL_TARGET),powerpc-netbsd)
  494. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  495. endif
  496. ifeq ($(FULL_TARGET),powerpc-amiga)
  497. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  498. endif
  499. ifeq ($(FULL_TARGET),powerpc-macos)
  500. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  501. endif
  502. ifeq ($(FULL_TARGET),powerpc-darwin)
  503. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  504. endif
  505. ifeq ($(FULL_TARGET),powerpc-morphos)
  506. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  507. endif
  508. ifeq ($(FULL_TARGET),powerpc-embedded)
  509. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  510. endif
  511. ifeq ($(FULL_TARGET),sparc-linux)
  512. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  513. endif
  514. ifeq ($(FULL_TARGET),sparc-netbsd)
  515. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  516. endif
  517. ifeq ($(FULL_TARGET),sparc-solaris)
  518. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  519. endif
  520. ifeq ($(FULL_TARGET),sparc-embedded)
  521. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  522. endif
  523. ifeq ($(FULL_TARGET),x86_64-linux)
  524. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  525. endif
  526. ifeq ($(FULL_TARGET),x86_64-freebsd)
  527. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  528. endif
  529. ifeq ($(FULL_TARGET),x86_64-win64)
  530. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  531. endif
  532. ifeq ($(FULL_TARGET),x86_64-embedded)
  533. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  534. endif
  535. ifeq ($(FULL_TARGET),arm-linux)
  536. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  537. endif
  538. ifeq ($(FULL_TARGET),arm-palmos)
  539. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  540. endif
  541. ifeq ($(FULL_TARGET),arm-wince)
  542. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  543. endif
  544. ifeq ($(FULL_TARGET),arm-gba)
  545. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  546. endif
  547. ifeq ($(FULL_TARGET),arm-nds)
  548. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  549. endif
  550. ifeq ($(FULL_TARGET),arm-embedded)
  551. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  552. endif
  553. ifeq ($(FULL_TARGET),arm-symbian)
  554. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  555. endif
  556. ifeq ($(FULL_TARGET),powerpc64-linux)
  557. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  558. endif
  559. ifeq ($(FULL_TARGET),powerpc64-darwin)
  560. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  561. endif
  562. ifeq ($(FULL_TARGET),powerpc64-embedded)
  563. override TARGET_RSTS+=math varutils typinfo classes variants dateutils sysconst rtlconst
  564. endif
  565. override INSTALL_FPCPACKAGE=y
  566. ifeq ($(FULL_TARGET),i386-linux)
  567. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  568. endif
  569. ifeq ($(FULL_TARGET),i386-go32v2)
  570. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  571. endif
  572. ifeq ($(FULL_TARGET),i386-win32)
  573. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  574. endif
  575. ifeq ($(FULL_TARGET),i386-os2)
  576. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  577. endif
  578. ifeq ($(FULL_TARGET),i386-freebsd)
  579. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  580. endif
  581. ifeq ($(FULL_TARGET),i386-beos)
  582. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  583. endif
  584. ifeq ($(FULL_TARGET),i386-netbsd)
  585. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  586. endif
  587. ifeq ($(FULL_TARGET),i386-solaris)
  588. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  589. endif
  590. ifeq ($(FULL_TARGET),i386-qnx)
  591. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  592. endif
  593. ifeq ($(FULL_TARGET),i386-netware)
  594. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  595. endif
  596. ifeq ($(FULL_TARGET),i386-openbsd)
  597. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  598. endif
  599. ifeq ($(FULL_TARGET),i386-wdosx)
  600. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  601. endif
  602. ifeq ($(FULL_TARGET),i386-darwin)
  603. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  604. endif
  605. ifeq ($(FULL_TARGET),i386-emx)
  606. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  607. endif
  608. ifeq ($(FULL_TARGET),i386-watcom)
  609. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  610. endif
  611. ifeq ($(FULL_TARGET),i386-netwlibc)
  612. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  613. endif
  614. ifeq ($(FULL_TARGET),i386-wince)
  615. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  616. endif
  617. ifeq ($(FULL_TARGET),i386-embedded)
  618. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  619. endif
  620. ifeq ($(FULL_TARGET),i386-symbian)
  621. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  622. endif
  623. ifeq ($(FULL_TARGET),m68k-linux)
  624. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  625. endif
  626. ifeq ($(FULL_TARGET),m68k-freebsd)
  627. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  628. endif
  629. ifeq ($(FULL_TARGET),m68k-netbsd)
  630. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  631. endif
  632. ifeq ($(FULL_TARGET),m68k-amiga)
  633. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  634. endif
  635. ifeq ($(FULL_TARGET),m68k-atari)
  636. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  637. endif
  638. ifeq ($(FULL_TARGET),m68k-openbsd)
  639. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  640. endif
  641. ifeq ($(FULL_TARGET),m68k-palmos)
  642. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  643. endif
  644. ifeq ($(FULL_TARGET),m68k-embedded)
  645. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  646. endif
  647. ifeq ($(FULL_TARGET),powerpc-linux)
  648. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  649. endif
  650. ifeq ($(FULL_TARGET),powerpc-netbsd)
  651. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  652. endif
  653. ifeq ($(FULL_TARGET),powerpc-amiga)
  654. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  655. endif
  656. ifeq ($(FULL_TARGET),powerpc-macos)
  657. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  658. endif
  659. ifeq ($(FULL_TARGET),powerpc-darwin)
  660. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  661. endif
  662. ifeq ($(FULL_TARGET),powerpc-morphos)
  663. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  664. endif
  665. ifeq ($(FULL_TARGET),powerpc-embedded)
  666. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  667. endif
  668. ifeq ($(FULL_TARGET),sparc-linux)
  669. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  670. endif
  671. ifeq ($(FULL_TARGET),sparc-netbsd)
  672. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  673. endif
  674. ifeq ($(FULL_TARGET),sparc-solaris)
  675. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  676. endif
  677. ifeq ($(FULL_TARGET),sparc-embedded)
  678. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  679. endif
  680. ifeq ($(FULL_TARGET),x86_64-linux)
  681. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  682. endif
  683. ifeq ($(FULL_TARGET),x86_64-freebsd)
  684. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  685. endif
  686. ifeq ($(FULL_TARGET),x86_64-win64)
  687. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  688. endif
  689. ifeq ($(FULL_TARGET),x86_64-embedded)
  690. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  691. endif
  692. ifeq ($(FULL_TARGET),arm-linux)
  693. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  694. endif
  695. ifeq ($(FULL_TARGET),arm-palmos)
  696. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  697. endif
  698. ifeq ($(FULL_TARGET),arm-wince)
  699. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  700. endif
  701. ifeq ($(FULL_TARGET),arm-gba)
  702. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  703. endif
  704. ifeq ($(FULL_TARGET),arm-nds)
  705. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  706. endif
  707. ifeq ($(FULL_TARGET),arm-embedded)
  708. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  709. endif
  710. ifeq ($(FULL_TARGET),arm-symbian)
  711. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  712. endif
  713. ifeq ($(FULL_TARGET),powerpc64-linux)
  714. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  715. endif
  716. ifeq ($(FULL_TARGET),powerpc64-darwin)
  717. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  718. endif
  719. ifeq ($(FULL_TARGET),powerpc64-embedded)
  720. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(OSPROCINC)
  721. endif
  722. ifeq ($(FULL_TARGET),i386-linux)
  723. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  724. endif
  725. ifeq ($(FULL_TARGET),i386-go32v2)
  726. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  727. endif
  728. ifeq ($(FULL_TARGET),i386-win32)
  729. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  730. endif
  731. ifeq ($(FULL_TARGET),i386-os2)
  732. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  733. endif
  734. ifeq ($(FULL_TARGET),i386-freebsd)
  735. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  736. endif
  737. ifeq ($(FULL_TARGET),i386-beos)
  738. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  739. endif
  740. ifeq ($(FULL_TARGET),i386-netbsd)
  741. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  742. endif
  743. ifeq ($(FULL_TARGET),i386-solaris)
  744. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  745. endif
  746. ifeq ($(FULL_TARGET),i386-qnx)
  747. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  748. endif
  749. ifeq ($(FULL_TARGET),i386-netware)
  750. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  751. endif
  752. ifeq ($(FULL_TARGET),i386-openbsd)
  753. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  754. endif
  755. ifeq ($(FULL_TARGET),i386-wdosx)
  756. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  757. endif
  758. ifeq ($(FULL_TARGET),i386-darwin)
  759. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  760. endif
  761. ifeq ($(FULL_TARGET),i386-emx)
  762. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  763. endif
  764. ifeq ($(FULL_TARGET),i386-watcom)
  765. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  766. endif
  767. ifeq ($(FULL_TARGET),i386-netwlibc)
  768. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  769. endif
  770. ifeq ($(FULL_TARGET),i386-wince)
  771. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  772. endif
  773. ifeq ($(FULL_TARGET),i386-embedded)
  774. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  775. endif
  776. ifeq ($(FULL_TARGET),i386-symbian)
  777. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  778. endif
  779. ifeq ($(FULL_TARGET),m68k-linux)
  780. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  781. endif
  782. ifeq ($(FULL_TARGET),m68k-freebsd)
  783. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  784. endif
  785. ifeq ($(FULL_TARGET),m68k-netbsd)
  786. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  787. endif
  788. ifeq ($(FULL_TARGET),m68k-amiga)
  789. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  790. endif
  791. ifeq ($(FULL_TARGET),m68k-atari)
  792. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  793. endif
  794. ifeq ($(FULL_TARGET),m68k-openbsd)
  795. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  796. endif
  797. ifeq ($(FULL_TARGET),m68k-palmos)
  798. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  799. endif
  800. ifeq ($(FULL_TARGET),m68k-embedded)
  801. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  802. endif
  803. ifeq ($(FULL_TARGET),powerpc-linux)
  804. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  805. endif
  806. ifeq ($(FULL_TARGET),powerpc-netbsd)
  807. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  808. endif
  809. ifeq ($(FULL_TARGET),powerpc-amiga)
  810. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  811. endif
  812. ifeq ($(FULL_TARGET),powerpc-macos)
  813. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  814. endif
  815. ifeq ($(FULL_TARGET),powerpc-darwin)
  816. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  817. endif
  818. ifeq ($(FULL_TARGET),powerpc-morphos)
  819. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  820. endif
  821. ifeq ($(FULL_TARGET),powerpc-embedded)
  822. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  823. endif
  824. ifeq ($(FULL_TARGET),sparc-linux)
  825. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  826. endif
  827. ifeq ($(FULL_TARGET),sparc-netbsd)
  828. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  829. endif
  830. ifeq ($(FULL_TARGET),sparc-solaris)
  831. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  832. endif
  833. ifeq ($(FULL_TARGET),sparc-embedded)
  834. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  835. endif
  836. ifeq ($(FULL_TARGET),x86_64-linux)
  837. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  838. endif
  839. ifeq ($(FULL_TARGET),x86_64-freebsd)
  840. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  841. endif
  842. ifeq ($(FULL_TARGET),x86_64-win64)
  843. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  844. endif
  845. ifeq ($(FULL_TARGET),x86_64-embedded)
  846. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  847. endif
  848. ifeq ($(FULL_TARGET),arm-linux)
  849. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  850. endif
  851. ifeq ($(FULL_TARGET),arm-palmos)
  852. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  853. endif
  854. ifeq ($(FULL_TARGET),arm-wince)
  855. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  856. endif
  857. ifeq ($(FULL_TARGET),arm-gba)
  858. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  859. endif
  860. ifeq ($(FULL_TARGET),arm-nds)
  861. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  862. endif
  863. ifeq ($(FULL_TARGET),arm-embedded)
  864. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  865. endif
  866. ifeq ($(FULL_TARGET),arm-symbian)
  867. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  868. endif
  869. ifeq ($(FULL_TARGET),powerpc64-linux)
  870. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  871. endif
  872. ifeq ($(FULL_TARGET),powerpc64-darwin)
  873. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  874. endif
  875. ifeq ($(FULL_TARGET),powerpc64-embedded)
  876. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
  877. endif
  878. ifdef REQUIRE_UNITSDIR
  879. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  880. endif
  881. ifdef REQUIRE_PACKAGESDIR
  882. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  883. endif
  884. ifdef ZIPINSTALL
  885. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  886. UNIXHier=1
  887. endif
  888. else
  889. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  890. UNIXHier=1
  891. endif
  892. endif
  893. ifndef INSTALL_PREFIX
  894. ifdef PREFIX
  895. INSTALL_PREFIX=$(PREFIX)
  896. endif
  897. endif
  898. ifndef INSTALL_PREFIX
  899. ifdef UNIXHier
  900. INSTALL_PREFIX=/usr/local
  901. else
  902. ifdef INSTALL_FPCPACKAGE
  903. INSTALL_BASEDIR:=/pp
  904. else
  905. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  906. endif
  907. endif
  908. endif
  909. export INSTALL_PREFIX
  910. ifdef INSTALL_FPCSUBDIR
  911. export INSTALL_FPCSUBDIR
  912. endif
  913. ifndef DIST_DESTDIR
  914. DIST_DESTDIR:=$(BASEDIR)
  915. endif
  916. export DIST_DESTDIR
  917. ifndef COMPILER_UNITTARGETDIR
  918. ifdef PACKAGEDIR_MAIN
  919. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  920. else
  921. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  922. endif
  923. endif
  924. ifndef COMPILER_TARGETDIR
  925. COMPILER_TARGETDIR=.
  926. endif
  927. ifndef INSTALL_BASEDIR
  928. ifdef UNIXHier
  929. ifdef INSTALL_FPCPACKAGE
  930. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  931. else
  932. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  933. endif
  934. else
  935. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  936. endif
  937. endif
  938. ifndef INSTALL_BINDIR
  939. ifdef UNIXHier
  940. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  941. else
  942. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  943. ifdef INSTALL_FPCPACKAGE
  944. ifdef CROSSCOMPILE
  945. ifdef CROSSINSTALL
  946. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  947. else
  948. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  949. endif
  950. else
  951. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  952. endif
  953. endif
  954. endif
  955. endif
  956. ifndef INSTALL_UNITDIR
  957. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  958. ifdef INSTALL_FPCPACKAGE
  959. ifdef PACKAGE_NAME
  960. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  961. endif
  962. endif
  963. endif
  964. ifndef INSTALL_LIBDIR
  965. ifdef UNIXHier
  966. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  967. else
  968. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  969. endif
  970. endif
  971. ifndef INSTALL_SOURCEDIR
  972. ifdef UNIXHier
  973. ifdef BSDhier
  974. SRCPREFIXDIR=share/src
  975. else
  976. ifdef linuxHier
  977. SRCPREFIXDIR=share/src
  978. else
  979. SRCPREFIXDIR=src
  980. endif
  981. endif
  982. ifdef INSTALL_FPCPACKAGE
  983. ifdef INSTALL_FPCSUBDIR
  984. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  985. else
  986. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  987. endif
  988. else
  989. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  990. endif
  991. else
  992. ifdef INSTALL_FPCPACKAGE
  993. ifdef INSTALL_FPCSUBDIR
  994. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  995. else
  996. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  997. endif
  998. else
  999. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1000. endif
  1001. endif
  1002. endif
  1003. ifndef INSTALL_DOCDIR
  1004. ifdef UNIXHier
  1005. ifdef BSDhier
  1006. DOCPREFIXDIR=share/doc
  1007. else
  1008. ifdef linuxHier
  1009. DOCPREFIXDIR=share/doc
  1010. else
  1011. DOCPREFIXDIR=doc
  1012. endif
  1013. endif
  1014. ifdef INSTALL_FPCPACKAGE
  1015. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1016. else
  1017. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1018. endif
  1019. else
  1020. ifdef INSTALL_FPCPACKAGE
  1021. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1022. else
  1023. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1024. endif
  1025. endif
  1026. endif
  1027. ifndef INSTALL_EXAMPLEDIR
  1028. ifdef UNIXHier
  1029. ifdef INSTALL_FPCPACKAGE
  1030. ifdef BSDhier
  1031. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1032. else
  1033. ifdef linuxHier
  1034. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1035. else
  1036. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1037. endif
  1038. endif
  1039. else
  1040. ifdef BSDhier
  1041. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1042. else
  1043. ifdef linuxHier
  1044. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1045. else
  1046. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1047. endif
  1048. endif
  1049. endif
  1050. else
  1051. ifdef INSTALL_FPCPACKAGE
  1052. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1053. else
  1054. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1055. endif
  1056. endif
  1057. endif
  1058. ifndef INSTALL_DATADIR
  1059. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1060. endif
  1061. ifndef INSTALL_SHAREDDIR
  1062. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1063. endif
  1064. ifdef CROSSCOMPILE
  1065. ifndef CROSSBINDIR
  1066. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1067. ifeq ($(CROSSBINDIR),)
  1068. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1069. endif
  1070. endif
  1071. else
  1072. CROSSBINDIR=
  1073. endif
  1074. BATCHEXT=.bat
  1075. LOADEREXT=.as
  1076. EXEEXT=.exe
  1077. PPLEXT=.ppl
  1078. PPUEXT=.ppu
  1079. OEXT=.o
  1080. ASMEXT=.s
  1081. SMARTEXT=.sl
  1082. STATICLIBEXT=.a
  1083. SHAREDLIBEXT=.so
  1084. SHAREDLIBPREFIX=libfp
  1085. STATICLIBPREFIX=libp
  1086. IMPORTLIBPREFIX=libimp
  1087. RSTEXT=.rst
  1088. ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
  1089. ifeq ($(OS_TARGET),go32v1)
  1090. STATICLIBPREFIX=
  1091. SHORTSUFFIX=v1
  1092. endif
  1093. ifeq ($(OS_TARGET),go32v2)
  1094. STATICLIBPREFIX=
  1095. SHORTSUFFIX=dos
  1096. endif
  1097. ifeq ($(OS_TARGET),watcom)
  1098. STATICLIBPREFIX=
  1099. OEXT=.obj
  1100. ASMEXT=.asm
  1101. SHAREDLIBEXT=.dll
  1102. SHORTSUFFIX=wat
  1103. endif
  1104. ifeq ($(OS_TARGET),linux)
  1105. BATCHEXT=.sh
  1106. EXEEXT=
  1107. HASSHAREDLIB=1
  1108. SHORTSUFFIX=lnx
  1109. endif
  1110. ifeq ($(OS_TARGET),freebsd)
  1111. BATCHEXT=.sh
  1112. EXEEXT=
  1113. HASSHAREDLIB=1
  1114. SHORTSUFFIX=fbs
  1115. endif
  1116. ifeq ($(OS_TARGET),netbsd)
  1117. BATCHEXT=.sh
  1118. EXEEXT=
  1119. HASSHAREDLIB=1
  1120. SHORTSUFFIX=nbs
  1121. endif
  1122. ifeq ($(OS_TARGET),openbsd)
  1123. BATCHEXT=.sh
  1124. EXEEXT=
  1125. HASSHAREDLIB=1
  1126. SHORTSUFFIX=obs
  1127. endif
  1128. ifeq ($(OS_TARGET),win32)
  1129. SHAREDLIBEXT=.dll
  1130. SHORTSUFFIX=w32
  1131. endif
  1132. ifeq ($(OS_TARGET),os2)
  1133. BATCHEXT=.cmd
  1134. AOUTEXT=.out
  1135. STATICLIBPREFIX=
  1136. SHAREDLIBEXT=.dll
  1137. SHORTSUFFIX=os2
  1138. ECHO=echo
  1139. endif
  1140. ifeq ($(OS_TARGET),emx)
  1141. BATCHEXT=.cmd
  1142. AOUTEXT=.out
  1143. STATICLIBPREFIX=
  1144. SHAREDLIBEXT=.dll
  1145. SHORTSUFFIX=emx
  1146. ECHO=echo
  1147. endif
  1148. ifeq ($(OS_TARGET),amiga)
  1149. EXEEXT=
  1150. SHAREDLIBEXT=.library
  1151. SHORTSUFFIX=amg
  1152. endif
  1153. ifeq ($(OS_TARGET),morphos)
  1154. EXEEXT=
  1155. SHAREDLIBEXT=.library
  1156. SHORTSUFFIX=mos
  1157. endif
  1158. ifeq ($(OS_TARGET),atari)
  1159. EXEEXT=.ttp
  1160. SHORTSUFFIX=ata
  1161. endif
  1162. ifeq ($(OS_TARGET),beos)
  1163. BATCHEXT=.sh
  1164. EXEEXT=
  1165. SHORTSUFFIX=be
  1166. endif
  1167. ifeq ($(OS_TARGET),solaris)
  1168. BATCHEXT=.sh
  1169. EXEEXT=
  1170. SHORTSUFFIX=sun
  1171. endif
  1172. ifeq ($(OS_TARGET),qnx)
  1173. BATCHEXT=.sh
  1174. EXEEXT=
  1175. SHORTSUFFIX=qnx
  1176. endif
  1177. ifeq ($(OS_TARGET),netware)
  1178. EXEEXT=.nlm
  1179. STATICLIBPREFIX=
  1180. SHORTSUFFIX=nw
  1181. endif
  1182. ifeq ($(OS_TARGET),netwlibc)
  1183. EXEEXT=.nlm
  1184. STATICLIBPREFIX=
  1185. SHORTSUFFIX=nwl
  1186. endif
  1187. ifeq ($(OS_TARGET),macos)
  1188. BATCHEXT=
  1189. EXEEXT=
  1190. DEBUGSYMEXT=.xcoff
  1191. SHORTSUFFIX=mac
  1192. endif
  1193. ifeq ($(OS_TARGET),darwin)
  1194. BATCHEXT=.sh
  1195. EXEEXT=
  1196. HASSHAREDLIB=1
  1197. SHORTSUFFIX=dwn
  1198. endif
  1199. ifeq ($(OS_TARGET),gba)
  1200. EXEEXT=.gba
  1201. SHAREDLIBEXT=.so
  1202. SHORTSUFFIX=gba
  1203. endif
  1204. ifeq ($(OS_TARGET),symbian)
  1205. SHAREDLIBEXT=.dll
  1206. SHORTSUFFIX=symbian
  1207. endif
  1208. else
  1209. ifeq ($(OS_TARGET),go32v1)
  1210. PPUEXT=.pp1
  1211. OEXT=.o1
  1212. ASMEXT=.s1
  1213. SMARTEXT=.sl1
  1214. STATICLIBEXT=.a1
  1215. SHAREDLIBEXT=.so1
  1216. STATICLIBPREFIX=
  1217. SHORTSUFFIX=v1
  1218. endif
  1219. ifeq ($(OS_TARGET),go32v2)
  1220. STATICLIBPREFIX=
  1221. SHORTSUFFIX=dos
  1222. endif
  1223. ifeq ($(OS_TARGET),watcom)
  1224. STATICLIBPREFIX=
  1225. SHORTSUFFIX=wat
  1226. endif
  1227. ifeq ($(OS_TARGET),linux)
  1228. BATCHEXT=.sh
  1229. EXEEXT=
  1230. HASSHAREDLIB=1
  1231. SHORTSUFFIX=lnx
  1232. endif
  1233. ifeq ($(OS_TARGET),freebsd)
  1234. BATCHEXT=.sh
  1235. EXEEXT=
  1236. HASSHAREDLIB=1
  1237. SHORTSUFFIX=fbs
  1238. endif
  1239. ifeq ($(OS_TARGET),netbsd)
  1240. BATCHEXT=.sh
  1241. EXEEXT=
  1242. HASSHAREDLIB=1
  1243. SHORTSUFFIX=nbs
  1244. endif
  1245. ifeq ($(OS_TARGET),openbsd)
  1246. BATCHEXT=.sh
  1247. EXEEXT=
  1248. HASSHAREDLIB=1
  1249. SHORTSUFFIX=obs
  1250. endif
  1251. ifeq ($(OS_TARGET),win32)
  1252. PPUEXT=.ppw
  1253. OEXT=.ow
  1254. ASMEXT=.sw
  1255. SMARTEXT=.slw
  1256. STATICLIBEXT=.aw
  1257. SHAREDLIBEXT=.dll
  1258. SHORTSUFFIX=w32
  1259. endif
  1260. ifeq ($(OS_TARGET),os2)
  1261. BATCHEXT=.cmd
  1262. PPUEXT=.ppo
  1263. ASMEXT=.so2
  1264. OEXT=.oo2
  1265. AOUTEXT=.out
  1266. SMARTEXT=.sl2
  1267. STATICLIBPREFIX=
  1268. STATICLIBEXT=.ao2
  1269. SHAREDLIBEXT=.dll
  1270. SHORTSUFFIX=os2
  1271. ECHO=echo
  1272. endif
  1273. ifeq ($(OS_TARGET),amiga)
  1274. EXEEXT=
  1275. PPUEXT=.ppu
  1276. ASMEXT=.s
  1277. OEXT=.o
  1278. SMARTEXT=.sl
  1279. STATICLIBEXT=.a
  1280. SHAREDLIBEXT=.library
  1281. SHORTSUFFIX=amg
  1282. endif
  1283. ifeq ($(OS_TARGET),atari)
  1284. PPUEXT=.ppu
  1285. ASMEXT=.s
  1286. OEXT=.o
  1287. SMARTEXT=.sl
  1288. STATICLIBEXT=.a
  1289. EXEEXT=.ttp
  1290. SHORTSUFFIX=ata
  1291. endif
  1292. ifeq ($(OS_TARGET),beos)
  1293. BATCHEXT=.sh
  1294. PPUEXT=.ppu
  1295. ASMEXT=.s
  1296. OEXT=.o
  1297. SMARTEXT=.sl
  1298. STATICLIBEXT=.a
  1299. EXEEXT=
  1300. SHORTSUFFIX=be
  1301. endif
  1302. ifeq ($(OS_TARGET),solaris)
  1303. BATCHEXT=.sh
  1304. PPUEXT=.ppu
  1305. ASMEXT=.s
  1306. OEXT=.o
  1307. SMARTEXT=.sl
  1308. STATICLIBEXT=.a
  1309. EXEEXT=
  1310. SHORTSUFFIX=sun
  1311. endif
  1312. ifeq ($(OS_TARGET),qnx)
  1313. BATCHEXT=.sh
  1314. PPUEXT=.ppu
  1315. ASMEXT=.s
  1316. OEXT=.o
  1317. SMARTEXT=.sl
  1318. STATICLIBEXT=.a
  1319. EXEEXT=
  1320. SHORTSUFFIX=qnx
  1321. endif
  1322. ifeq ($(OS_TARGET),netware)
  1323. STATICLIBPREFIX=
  1324. PPUEXT=.ppu
  1325. OEXT=.o
  1326. ASMEXT=.s
  1327. SMARTEXT=.sl
  1328. STATICLIBEXT=.a
  1329. SHAREDLIBEXT=.nlm
  1330. EXEEXT=.nlm
  1331. SHORTSUFFIX=nw
  1332. endif
  1333. ifeq ($(OS_TARGET),netwlibc)
  1334. STATICLIBPREFIX=
  1335. PPUEXT=.ppu
  1336. OEXT=.o
  1337. ASMEXT=.s
  1338. SMARTEXT=.sl
  1339. STATICLIBEXT=.a
  1340. SHAREDLIBEXT=.nlm
  1341. EXEEXT=.nlm
  1342. SHORTSUFFIX=nwl
  1343. endif
  1344. ifeq ($(OS_TARGET),macos)
  1345. BATCHEXT=
  1346. PPUEXT=.ppu
  1347. ASMEXT=.s
  1348. OEXT=.o
  1349. SMARTEXT=.sl
  1350. STATICLIBEXT=.a
  1351. EXEEXT=
  1352. DEBUGSYMEXT=.xcoff
  1353. SHORTSUFFIX=mac
  1354. endif
  1355. endif
  1356. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1357. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1358. ZIPSUFFIX=$(SHORTSUFFIX)
  1359. ZIPCROSSPREFIX=
  1360. ZIPSOURCESUFFIX=src
  1361. ZIPEXAMPLESUFFIX=exm
  1362. else
  1363. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1364. ZIPSOURCESUFFIX=.source
  1365. ZIPEXAMPLESUFFIX=.examples
  1366. ifdef CROSSCOMPILE
  1367. ZIPSUFFIX=.$(SOURCESUFFIX)
  1368. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  1369. else
  1370. ZIPSUFFIX=.$(TARGETSUFFIX)
  1371. ZIPCROSSPREFIX=
  1372. endif
  1373. endif
  1374. ifndef ECHO
  1375. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  1376. ifeq ($(ECHO),)
  1377. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  1378. ifeq ($(ECHO),)
  1379. ECHO= __missing_command_ECHO
  1380. else
  1381. ECHO:=$(firstword $(ECHO))
  1382. endif
  1383. else
  1384. ECHO:=$(firstword $(ECHO))
  1385. endif
  1386. endif
  1387. export ECHO
  1388. ifndef DATE
  1389. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  1390. ifeq ($(DATE),)
  1391. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  1392. ifeq ($(DATE),)
  1393. DATE= __missing_command_DATE
  1394. else
  1395. DATE:=$(firstword $(DATE))
  1396. endif
  1397. else
  1398. DATE:=$(firstword $(DATE))
  1399. endif
  1400. endif
  1401. export DATE
  1402. ifndef GINSTALL
  1403. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  1404. ifeq ($(GINSTALL),)
  1405. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  1406. ifeq ($(GINSTALL),)
  1407. GINSTALL= __missing_command_GINSTALL
  1408. else
  1409. GINSTALL:=$(firstword $(GINSTALL))
  1410. endif
  1411. else
  1412. GINSTALL:=$(firstword $(GINSTALL))
  1413. endif
  1414. endif
  1415. export GINSTALL
  1416. ifndef CPPROG
  1417. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  1418. ifeq ($(CPPROG),)
  1419. CPPROG= __missing_command_CPPROG
  1420. else
  1421. CPPROG:=$(firstword $(CPPROG))
  1422. endif
  1423. endif
  1424. export CPPROG
  1425. ifndef RMPROG
  1426. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  1427. ifeq ($(RMPROG),)
  1428. RMPROG= __missing_command_RMPROG
  1429. else
  1430. RMPROG:=$(firstword $(RMPROG))
  1431. endif
  1432. endif
  1433. export RMPROG
  1434. ifndef MVPROG
  1435. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  1436. ifeq ($(MVPROG),)
  1437. MVPROG= __missing_command_MVPROG
  1438. else
  1439. MVPROG:=$(firstword $(MVPROG))
  1440. endif
  1441. endif
  1442. export MVPROG
  1443. ifndef MKDIRPROG
  1444. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1445. ifeq ($(MKDIRPROG),)
  1446. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1447. ifeq ($(MKDIRPROG),)
  1448. MKDIRPROG= __missing_command_MKDIRPROG
  1449. else
  1450. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1451. endif
  1452. else
  1453. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1454. endif
  1455. endif
  1456. export MKDIRPROG
  1457. ifndef ECHOREDIR
  1458. ifndef inUnix
  1459. ECHOREDIR=echo
  1460. else
  1461. ECHOREDIR=$(ECHO)
  1462. endif
  1463. endif
  1464. ifndef COPY
  1465. COPY:=$(CPPROG) -fp
  1466. endif
  1467. ifndef COPYTREE
  1468. COPYTREE:=$(CPPROG) -Rfp
  1469. endif
  1470. ifndef MKDIRTREE
  1471. MKDIRTREE:=$(MKDIRPROG) -p
  1472. endif
  1473. ifndef MOVE
  1474. MOVE:=$(MVPROG) -f
  1475. endif
  1476. ifndef DEL
  1477. DEL:=$(RMPROG) -f
  1478. endif
  1479. ifndef DELTREE
  1480. DELTREE:=$(RMPROG) -rf
  1481. endif
  1482. ifndef INSTALL
  1483. ifdef inUnix
  1484. INSTALL:=$(GINSTALL) -c -m 644
  1485. else
  1486. INSTALL:=$(COPY)
  1487. endif
  1488. endif
  1489. ifndef INSTALLEXE
  1490. ifdef inUnix
  1491. INSTALLEXE:=$(GINSTALL) -c -m 755
  1492. else
  1493. INSTALLEXE:=$(COPY)
  1494. endif
  1495. endif
  1496. ifndef MKDIR
  1497. MKDIR:=$(GINSTALL) -m 755 -d
  1498. endif
  1499. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  1500. ifndef PPUMOVE
  1501. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  1502. ifeq ($(PPUMOVE),)
  1503. PPUMOVE= __missing_command_PPUMOVE
  1504. else
  1505. PPUMOVE:=$(firstword $(PPUMOVE))
  1506. endif
  1507. endif
  1508. export PPUMOVE
  1509. ifndef FPCMAKE
  1510. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  1511. ifeq ($(FPCMAKE),)
  1512. FPCMAKE= __missing_command_FPCMAKE
  1513. else
  1514. FPCMAKE:=$(firstword $(FPCMAKE))
  1515. endif
  1516. endif
  1517. export FPCMAKE
  1518. ifndef ZIPPROG
  1519. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  1520. ifeq ($(ZIPPROG),)
  1521. ZIPPROG= __missing_command_ZIPPROG
  1522. else
  1523. ZIPPROG:=$(firstword $(ZIPPROG))
  1524. endif
  1525. endif
  1526. export ZIPPROG
  1527. ifndef TARPROG
  1528. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  1529. ifeq ($(TARPROG),)
  1530. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  1531. ifeq ($(TARPROG),)
  1532. TARPROG= __missing_command_TARPROG
  1533. else
  1534. TARPROG:=$(firstword $(TARPROG))
  1535. endif
  1536. else
  1537. TARPROG:=$(firstword $(TARPROG))
  1538. endif
  1539. endif
  1540. export TARPROG
  1541. ASNAME=$(BINUTILSPREFIX)as
  1542. LDNAME=$(BINUTILSPREFIX)ld
  1543. ARNAME=$(BINUTILSPREFIX)ar
  1544. RCNAME=$(BINUTILSPREFIX)rc
  1545. ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
  1546. ifeq ($(OS_TARGET),win32)
  1547. ifeq ($(CROSSBINDIR),)
  1548. ASNAME=asw
  1549. LDNAME=ldw
  1550. ARNAME=arw
  1551. endif
  1552. endif
  1553. endif
  1554. ifndef ASPROG
  1555. ifdef CROSSBINDIR
  1556. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  1557. else
  1558. ASPROG=$(ASNAME)
  1559. endif
  1560. endif
  1561. ifndef LDPROG
  1562. ifdef CROSSBINDIR
  1563. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  1564. else
  1565. LDPROG=$(LDNAME)
  1566. endif
  1567. endif
  1568. ifndef RCPROG
  1569. ifdef CROSSBINDIR
  1570. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  1571. else
  1572. RCPROG=$(RCNAME)
  1573. endif
  1574. endif
  1575. ifndef ARPROG
  1576. ifdef CROSSBINDIR
  1577. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  1578. else
  1579. ARPROG=$(ARNAME)
  1580. endif
  1581. endif
  1582. AS=$(ASPROG)
  1583. LD=$(LDPROG)
  1584. RC=$(RCPROG)
  1585. AR=$(ARPROG)
  1586. PPAS=ppas$(SRCBATCHEXT)
  1587. ifdef inUnix
  1588. LDCONFIG=ldconfig
  1589. else
  1590. LDCONFIG=
  1591. endif
  1592. ifdef DATE
  1593. DATESTR:=$(shell $(DATE) +%Y%m%d)
  1594. else
  1595. DATESTR=
  1596. endif
  1597. ifndef UPXPROG
  1598. ifeq ($(OS_TARGET),go32v2)
  1599. UPXPROG:=1
  1600. endif
  1601. ifeq ($(OS_TARGET),win32)
  1602. UPXPROG:=1
  1603. endif
  1604. ifdef UPXPROG
  1605. UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
  1606. ifeq ($(UPXPROG),)
  1607. UPXPROG=
  1608. else
  1609. UPXPROG:=$(firstword $(UPXPROG))
  1610. endif
  1611. else
  1612. UPXPROG=
  1613. endif
  1614. endif
  1615. export UPXPROG
  1616. ZIPOPT=-9
  1617. ZIPEXT=.zip
  1618. ifeq ($(USETAR),bz2)
  1619. TAROPT=vj
  1620. TAREXT=.tar.bz2
  1621. else
  1622. TAROPT=vz
  1623. TAREXT=.tar.gz
  1624. endif
  1625. ifndef NOCPUDEF
  1626. override FPCOPTDEF=$(CPU_TARGET)
  1627. endif
  1628. ifneq ($(OS_TARGET),$(OS_SOURCE))
  1629. override FPCOPT+=-T$(OS_TARGET)
  1630. endif
  1631. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  1632. override FPCOPT+=-P$(CPU_TARGET)
  1633. endif
  1634. ifeq ($(OS_SOURCE),openbsd)
  1635. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  1636. endif
  1637. ifndef CROSSBOOTSTRAP
  1638. ifneq ($(BINUTILSPREFIX),)
  1639. override FPCOPT+=-XP$(BINUTILSPREFIX)
  1640. endif
  1641. ifneq ($(BINUTILSPREFIX),)
  1642. override FPCOPT+=-Xr$(RLINKPATH)
  1643. endif
  1644. endif
  1645. ifdef UNITDIR
  1646. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  1647. endif
  1648. ifdef LIBDIR
  1649. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  1650. endif
  1651. ifdef OBJDIR
  1652. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  1653. endif
  1654. ifdef INCDIR
  1655. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  1656. endif
  1657. ifdef LINKSMART
  1658. override FPCOPT+=-XX
  1659. endif
  1660. ifdef CREATESMART
  1661. override FPCOPT+=-CX
  1662. endif
  1663. ifdef DEBUG
  1664. override FPCOPT+=-gl
  1665. override FPCOPTDEF+=DEBUG
  1666. endif
  1667. ifdef RELEASE
  1668. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  1669. ifeq ($(CPU_TARGET),i386)
  1670. FPCCPUOPT:=-OG2p3
  1671. endif
  1672. ifeq ($(CPU_TARGET),powerpc)
  1673. FPCCPUOPT:=-O1r
  1674. endif
  1675. else
  1676. FPCCPUOPT:=-O2
  1677. endif
  1678. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  1679. override FPCOPTDEF+=RELEASE
  1680. endif
  1681. ifdef STRIP
  1682. override FPCOPT+=-Xs
  1683. endif
  1684. ifdef OPTIMIZE
  1685. override FPCOPT+=-O2
  1686. endif
  1687. ifdef VERBOSE
  1688. override FPCOPT+=-vwni
  1689. endif
  1690. ifdef COMPILER_OPTIONS
  1691. override FPCOPT+=$(COMPILER_OPTIONS)
  1692. endif
  1693. ifdef COMPILER_UNITDIR
  1694. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  1695. endif
  1696. ifdef COMPILER_LIBRARYDIR
  1697. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  1698. endif
  1699. ifdef COMPILER_OBJECTDIR
  1700. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  1701. endif
  1702. ifdef COMPILER_INCLUDEDIR
  1703. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  1704. endif
  1705. ifdef CROSSBINDIR
  1706. override FPCOPT+=-FD$(CROSSBINDIR)
  1707. endif
  1708. ifdef COMPILER_TARGETDIR
  1709. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  1710. ifeq ($(COMPILER_TARGETDIR),.)
  1711. override TARGETDIRPREFIX=
  1712. else
  1713. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  1714. endif
  1715. endif
  1716. ifdef COMPILER_UNITTARGETDIR
  1717. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  1718. ifeq ($(COMPILER_UNITTARGETDIR),.)
  1719. override UNITTARGETDIRPREFIX=
  1720. else
  1721. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  1722. endif
  1723. else
  1724. ifdef COMPILER_TARGETDIR
  1725. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  1726. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  1727. endif
  1728. endif
  1729. ifdef CREATESHARED
  1730. override FPCOPT+=-Cg
  1731. ifeq ($(CPU_TARGET),i386)
  1732. override FPCOPT+=-Aas
  1733. endif
  1734. endif
  1735. ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
  1736. ifeq ($(OS_TARGET),linux)
  1737. ifeq ($(CPU_TARGET),x86_64)
  1738. override FPCOPT+=-Cg
  1739. endif
  1740. endif
  1741. endif
  1742. ifdef LINKSHARED
  1743. endif
  1744. ifdef OPT
  1745. override FPCOPT+=$(OPT)
  1746. endif
  1747. ifdef FPCOPTDEF
  1748. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  1749. endif
  1750. ifdef CFGFILE
  1751. override FPCOPT+=@$(CFGFILE)
  1752. endif
  1753. ifdef USEENV
  1754. override FPCEXTCMD:=$(FPCOPT)
  1755. override FPCOPT:=!FPCEXTCMD
  1756. export FPCEXTCMD
  1757. endif
  1758. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  1759. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  1760. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  1761. override ACROSSCOMPILE=1
  1762. endif
  1763. ifdef ACROSSCOMPILE
  1764. override FPCOPT+=$(CROSSOPT)
  1765. endif
  1766. override COMPILER:=$(FPC) $(FPCOPT)
  1767. ifeq (,$(findstring -s ,$(COMPILER)))
  1768. EXECPPAS=
  1769. else
  1770. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  1771. EXECPPAS:=@$(PPAS)
  1772. endif
  1773. endif
  1774. .PHONY: fpc_units
  1775. ifneq ($(TARGET_UNITS),)
  1776. override ALLTARGET+=fpc_units
  1777. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  1778. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  1779. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  1780. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  1781. endif
  1782. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  1783. ifdef TARGET_RSTS
  1784. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  1785. override CLEANRSTFILES+=$(RSTFILES)
  1786. endif
  1787. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  1788. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  1789. @$(ECHOREDIR) Compiled > $(FPCMADE)
  1790. fpc_all: $(FPCMADE)
  1791. fpc_smart:
  1792. $(MAKE) all LINKSMART=1 CREATESMART=1
  1793. fpc_debug:
  1794. $(MAKE) all DEBUG=1
  1795. fpc_release:
  1796. $(MAKE) all RELEASE=1
  1797. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  1798. $(COMPILER_UNITTARGETDIR):
  1799. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  1800. $(COMPILER_TARGETDIR):
  1801. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  1802. %$(PPUEXT): %.pp
  1803. $(COMPILER) $<
  1804. $(EXECPPAS)
  1805. %$(PPUEXT): %.pas
  1806. $(COMPILER) $<
  1807. $(EXECPPAS)
  1808. %$(EXEEXT): %.pp
  1809. $(COMPILER) $<
  1810. $(EXECPPAS)
  1811. %$(EXEEXT): %.pas
  1812. $(COMPILER) $<
  1813. $(EXECPPAS)
  1814. %$(EXEEXT): %.lpr
  1815. $(COMPILER) $<
  1816. $(EXECPPAS)
  1817. %$(EXEEXT): %.dpr
  1818. $(COMPILER) $<
  1819. $(EXECPPAS)
  1820. %.res: %.rc
  1821. windres -i $< -o $@
  1822. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1823. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1824. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1825. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1826. vpath %.inc $(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)