Makefile 81 KB

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