Makefile 87 KB

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