Makefile 65 KB

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