Makefile 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/04/25]
  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 i386-nativent i386-iphonesim 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 powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd x86_64-solaris x86_64-openbsd 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 powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux jvm-java jvm-android
  6. BSDs = freebsd netbsd openbsd darwin
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  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=haiku
  104. override CPU_TARGET_DEFAULT=i386
  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. ifndef CPU_SOURCE
  159. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  160. endif
  161. ifndef CPU_TARGET
  162. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  163. endif
  164. ifndef OS_SOURCE
  165. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  166. endif
  167. ifndef OS_TARGET
  168. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  169. endif
  170. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  171. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  172. ifeq ($(CPU_TARGET),armeb)
  173. ARCH=arm
  174. override FPCOPT+=-Cb
  175. else
  176. ifeq ($(CPU_TARGET),armel)
  177. ARCH=arm
  178. override FPCOPT+=-CaEABI
  179. else
  180. ARCH=$(CPU_TARGET)
  181. endif
  182. endif
  183. ifeq ($(FULL_TARGET),arm-embedded)
  184. ifeq ($(SUBARCH),)
  185. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  186. endif
  187. override FPCOPT+=-Cp$(SUBARCH)
  188. endif
  189. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  190. TARGETSUFFIX=$(OS_TARGET)
  191. SOURCESUFFIX=$(OS_SOURCE)
  192. else
  193. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  194. TARGETSUFFIX=$(OS_TARGET)
  195. else
  196. TARGETSUFFIX=$(FULL_TARGET)
  197. endif
  198. SOURCESUFFIX=$(FULL_SOURCE)
  199. endif
  200. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  201. CROSSCOMPILE=1
  202. endif
  203. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  204. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  205. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  206. endif
  207. endif
  208. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  209. BSDhier=1
  210. endif
  211. ifeq ($(OS_TARGET),linux)
  212. linuxHier=1
  213. endif
  214. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  215. ifdef FPCDIR
  216. override FPCDIR:=$(subst \,/,$(FPCDIR))
  217. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  218. override FPCDIR=wrong
  219. endif
  220. else
  221. override FPCDIR=wrong
  222. endif
  223. ifdef DEFAULT_FPCDIR
  224. ifeq ($(FPCDIR),wrong)
  225. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  226. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  227. override FPCDIR=wrong
  228. endif
  229. endif
  230. endif
  231. ifeq ($(FPCDIR),wrong)
  232. ifdef inUnix
  233. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  234. ifeq ($(wildcard $(FPCDIR)/units),)
  235. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  236. endif
  237. else
  238. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  239. override FPCDIR:=$(FPCDIR)/..
  240. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  241. override FPCDIR:=$(FPCDIR)/..
  242. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  243. override FPCDIR:=$(BASEDIR)
  244. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  245. override FPCDIR=c:/pp
  246. endif
  247. endif
  248. endif
  249. endif
  250. endif
  251. ifndef CROSSBINDIR
  252. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  253. endif
  254. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  255. ifeq ($(OS_SOURCE),darwin)
  256. DARWIN2DARWIN=1
  257. endif
  258. endif
  259. ifndef BINUTILSPREFIX
  260. ifndef CROSSBINDIR
  261. ifdef CROSSCOMPILE
  262. ifndef DARWIN2DARWIN
  263. ifneq ($(CPU_TARGET),jvm)
  264. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  265. endif
  266. endif
  267. endif
  268. endif
  269. endif
  270. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  271. ifeq ($(UNITSDIR),)
  272. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  273. endif
  274. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
  275. ifndef FPCFPMAKE
  276. ifdef CROSSCOMPILE
  277. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  278. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  279. ifneq ($(FPCPROG),)
  280. FPCPROG:=$(firstword $(FPCPROG))
  281. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  282. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  283. FPCFPMAKE:=$(firstword $(FPCPROG))
  284. endif
  285. else
  286. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  287. endif
  288. else
  289. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  290. FPMAKE_SKIP_CONFIG=-n
  291. export FPCFPMAKE
  292. export FPMAKE_SKIP_CONFIG
  293. endif
  294. else
  295. FPMAKE_SKIP_CONFIG=-n
  296. FPCFPMAKE=$(FPC)
  297. endif
  298. endif
  299. override PACKAGE_NAME=rtl
  300. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  301. RTL=..
  302. INC=$(RTL)/inc
  303. PROCINC=$(RTL)/$(CPU_TARGET)
  304. UNIXINC=$(RTL)/unix
  305. HAIKUINC=$(RTL)/haiku
  306. UNITPREFIX=rtl
  307. ifdef RELEASE
  308. override FPCOPT+=-Ur
  309. endif
  310. override FPCOPT+= -dHASUNIX -n -dFPC_USE_LIBC -Si
  311. OBJPASDIR=$(RTL)/objpas
  312. GRAPHDIR=$(INC)/graph
  313. ifeq ($(FULL_TARGET),i386-linux)
  314. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  315. endif
  316. ifeq ($(FULL_TARGET),i386-go32v2)
  317. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  318. endif
  319. ifeq ($(FULL_TARGET),i386-win32)
  320. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  321. endif
  322. ifeq ($(FULL_TARGET),i386-os2)
  323. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  324. endif
  325. ifeq ($(FULL_TARGET),i386-freebsd)
  326. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  327. endif
  328. ifeq ($(FULL_TARGET),i386-beos)
  329. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  330. endif
  331. ifeq ($(FULL_TARGET),i386-haiku)
  332. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  333. endif
  334. ifeq ($(FULL_TARGET),i386-netbsd)
  335. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  336. endif
  337. ifeq ($(FULL_TARGET),i386-solaris)
  338. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  339. endif
  340. ifeq ($(FULL_TARGET),i386-qnx)
  341. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  342. endif
  343. ifeq ($(FULL_TARGET),i386-netware)
  344. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  345. endif
  346. ifeq ($(FULL_TARGET),i386-openbsd)
  347. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  348. endif
  349. ifeq ($(FULL_TARGET),i386-wdosx)
  350. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  351. endif
  352. ifeq ($(FULL_TARGET),i386-darwin)
  353. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  354. endif
  355. ifeq ($(FULL_TARGET),i386-emx)
  356. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  357. endif
  358. ifeq ($(FULL_TARGET),i386-watcom)
  359. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  360. endif
  361. ifeq ($(FULL_TARGET),i386-netwlibc)
  362. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  363. endif
  364. ifeq ($(FULL_TARGET),i386-wince)
  365. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  366. endif
  367. ifeq ($(FULL_TARGET),i386-embedded)
  368. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  369. endif
  370. ifeq ($(FULL_TARGET),i386-symbian)
  371. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  372. endif
  373. ifeq ($(FULL_TARGET),i386-nativent)
  374. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  375. endif
  376. ifeq ($(FULL_TARGET),i386-iphonesim)
  377. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  378. endif
  379. ifeq ($(FULL_TARGET),m68k-linux)
  380. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  381. endif
  382. ifeq ($(FULL_TARGET),m68k-freebsd)
  383. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  384. endif
  385. ifeq ($(FULL_TARGET),m68k-netbsd)
  386. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  387. endif
  388. ifeq ($(FULL_TARGET),m68k-amiga)
  389. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  390. endif
  391. ifeq ($(FULL_TARGET),m68k-atari)
  392. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  393. endif
  394. ifeq ($(FULL_TARGET),m68k-openbsd)
  395. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  396. endif
  397. ifeq ($(FULL_TARGET),m68k-palmos)
  398. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  399. endif
  400. ifeq ($(FULL_TARGET),m68k-embedded)
  401. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  402. endif
  403. ifeq ($(FULL_TARGET),powerpc-linux)
  404. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  405. endif
  406. ifeq ($(FULL_TARGET),powerpc-netbsd)
  407. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  408. endif
  409. ifeq ($(FULL_TARGET),powerpc-amiga)
  410. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  411. endif
  412. ifeq ($(FULL_TARGET),powerpc-macos)
  413. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  414. endif
  415. ifeq ($(FULL_TARGET),powerpc-darwin)
  416. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  417. endif
  418. ifeq ($(FULL_TARGET),powerpc-morphos)
  419. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  420. endif
  421. ifeq ($(FULL_TARGET),powerpc-embedded)
  422. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  423. endif
  424. ifeq ($(FULL_TARGET),powerpc-wii)
  425. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  426. endif
  427. ifeq ($(FULL_TARGET),powerpc-aix)
  428. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  429. endif
  430. ifeq ($(FULL_TARGET),sparc-linux)
  431. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  432. endif
  433. ifeq ($(FULL_TARGET),sparc-netbsd)
  434. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  435. endif
  436. ifeq ($(FULL_TARGET),sparc-solaris)
  437. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  438. endif
  439. ifeq ($(FULL_TARGET),sparc-embedded)
  440. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  441. endif
  442. ifeq ($(FULL_TARGET),x86_64-linux)
  443. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  444. endif
  445. ifeq ($(FULL_TARGET),x86_64-freebsd)
  446. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  447. endif
  448. ifeq ($(FULL_TARGET),x86_64-netbsd)
  449. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  450. endif
  451. ifeq ($(FULL_TARGET),x86_64-solaris)
  452. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  453. endif
  454. ifeq ($(FULL_TARGET),x86_64-openbsd)
  455. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  456. endif
  457. ifeq ($(FULL_TARGET),x86_64-darwin)
  458. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  459. endif
  460. ifeq ($(FULL_TARGET),x86_64-win64)
  461. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  462. endif
  463. ifeq ($(FULL_TARGET),x86_64-embedded)
  464. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  465. endif
  466. ifeq ($(FULL_TARGET),arm-linux)
  467. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  468. endif
  469. ifeq ($(FULL_TARGET),arm-palmos)
  470. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  471. endif
  472. ifeq ($(FULL_TARGET),arm-darwin)
  473. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  474. endif
  475. ifeq ($(FULL_TARGET),arm-wince)
  476. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  477. endif
  478. ifeq ($(FULL_TARGET),arm-gba)
  479. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  480. endif
  481. ifeq ($(FULL_TARGET),arm-nds)
  482. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  483. endif
  484. ifeq ($(FULL_TARGET),arm-embedded)
  485. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  486. endif
  487. ifeq ($(FULL_TARGET),arm-symbian)
  488. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  489. endif
  490. ifeq ($(FULL_TARGET),powerpc64-linux)
  491. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  492. endif
  493. ifeq ($(FULL_TARGET),powerpc64-darwin)
  494. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  495. endif
  496. ifeq ($(FULL_TARGET),powerpc64-embedded)
  497. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  498. endif
  499. ifeq ($(FULL_TARGET),powerpc64-aix)
  500. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  501. endif
  502. ifeq ($(FULL_TARGET),avr-embedded)
  503. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  504. endif
  505. ifeq ($(FULL_TARGET),armeb-linux)
  506. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  507. endif
  508. ifeq ($(FULL_TARGET),armeb-embedded)
  509. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  510. endif
  511. ifeq ($(FULL_TARGET),mips-linux)
  512. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  513. endif
  514. ifeq ($(FULL_TARGET),mipsel-linux)
  515. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  516. endif
  517. ifeq ($(FULL_TARGET),jvm-java)
  518. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  519. endif
  520. ifeq ($(FULL_TARGET),jvm-android)
  521. override TARGET_UNITS+=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings errors dos dl objects sysconst sysutils types charset ucomplex typinfo classes fgl math varutils cpu mmx getopts heaptrc lineinfo lnfodwrf variants rtlconsts syscall unix unixutil strutils termio initc cmem crt video mouse keyboard dateutils fmtbcd sockets dynlibs cwstring cthreads convutils stdconvs fpintres clocale
  522. endif
  523. ifeq ($(FULL_TARGET),i386-linux)
  524. override TARGET_IMPLICITUNITS+=exeinfo
  525. endif
  526. ifeq ($(FULL_TARGET),i386-go32v2)
  527. override TARGET_IMPLICITUNITS+=exeinfo
  528. endif
  529. ifeq ($(FULL_TARGET),i386-win32)
  530. override TARGET_IMPLICITUNITS+=exeinfo
  531. endif
  532. ifeq ($(FULL_TARGET),i386-os2)
  533. override TARGET_IMPLICITUNITS+=exeinfo
  534. endif
  535. ifeq ($(FULL_TARGET),i386-freebsd)
  536. override TARGET_IMPLICITUNITS+=exeinfo
  537. endif
  538. ifeq ($(FULL_TARGET),i386-beos)
  539. override TARGET_IMPLICITUNITS+=exeinfo
  540. endif
  541. ifeq ($(FULL_TARGET),i386-haiku)
  542. override TARGET_IMPLICITUNITS+=exeinfo
  543. endif
  544. ifeq ($(FULL_TARGET),i386-netbsd)
  545. override TARGET_IMPLICITUNITS+=exeinfo
  546. endif
  547. ifeq ($(FULL_TARGET),i386-solaris)
  548. override TARGET_IMPLICITUNITS+=exeinfo
  549. endif
  550. ifeq ($(FULL_TARGET),i386-qnx)
  551. override TARGET_IMPLICITUNITS+=exeinfo
  552. endif
  553. ifeq ($(FULL_TARGET),i386-netware)
  554. override TARGET_IMPLICITUNITS+=exeinfo
  555. endif
  556. ifeq ($(FULL_TARGET),i386-openbsd)
  557. override TARGET_IMPLICITUNITS+=exeinfo
  558. endif
  559. ifeq ($(FULL_TARGET),i386-wdosx)
  560. override TARGET_IMPLICITUNITS+=exeinfo
  561. endif
  562. ifeq ($(FULL_TARGET),i386-darwin)
  563. override TARGET_IMPLICITUNITS+=exeinfo
  564. endif
  565. ifeq ($(FULL_TARGET),i386-emx)
  566. override TARGET_IMPLICITUNITS+=exeinfo
  567. endif
  568. ifeq ($(FULL_TARGET),i386-watcom)
  569. override TARGET_IMPLICITUNITS+=exeinfo
  570. endif
  571. ifeq ($(FULL_TARGET),i386-netwlibc)
  572. override TARGET_IMPLICITUNITS+=exeinfo
  573. endif
  574. ifeq ($(FULL_TARGET),i386-wince)
  575. override TARGET_IMPLICITUNITS+=exeinfo
  576. endif
  577. ifeq ($(FULL_TARGET),i386-embedded)
  578. override TARGET_IMPLICITUNITS+=exeinfo
  579. endif
  580. ifeq ($(FULL_TARGET),i386-symbian)
  581. override TARGET_IMPLICITUNITS+=exeinfo
  582. endif
  583. ifeq ($(FULL_TARGET),i386-nativent)
  584. override TARGET_IMPLICITUNITS+=exeinfo
  585. endif
  586. ifeq ($(FULL_TARGET),i386-iphonesim)
  587. override TARGET_IMPLICITUNITS+=exeinfo
  588. endif
  589. ifeq ($(FULL_TARGET),m68k-linux)
  590. override TARGET_IMPLICITUNITS+=exeinfo
  591. endif
  592. ifeq ($(FULL_TARGET),m68k-freebsd)
  593. override TARGET_IMPLICITUNITS+=exeinfo
  594. endif
  595. ifeq ($(FULL_TARGET),m68k-netbsd)
  596. override TARGET_IMPLICITUNITS+=exeinfo
  597. endif
  598. ifeq ($(FULL_TARGET),m68k-amiga)
  599. override TARGET_IMPLICITUNITS+=exeinfo
  600. endif
  601. ifeq ($(FULL_TARGET),m68k-atari)
  602. override TARGET_IMPLICITUNITS+=exeinfo
  603. endif
  604. ifeq ($(FULL_TARGET),m68k-openbsd)
  605. override TARGET_IMPLICITUNITS+=exeinfo
  606. endif
  607. ifeq ($(FULL_TARGET),m68k-palmos)
  608. override TARGET_IMPLICITUNITS+=exeinfo
  609. endif
  610. ifeq ($(FULL_TARGET),m68k-embedded)
  611. override TARGET_IMPLICITUNITS+=exeinfo
  612. endif
  613. ifeq ($(FULL_TARGET),powerpc-linux)
  614. override TARGET_IMPLICITUNITS+=exeinfo
  615. endif
  616. ifeq ($(FULL_TARGET),powerpc-netbsd)
  617. override TARGET_IMPLICITUNITS+=exeinfo
  618. endif
  619. ifeq ($(FULL_TARGET),powerpc-amiga)
  620. override TARGET_IMPLICITUNITS+=exeinfo
  621. endif
  622. ifeq ($(FULL_TARGET),powerpc-macos)
  623. override TARGET_IMPLICITUNITS+=exeinfo
  624. endif
  625. ifeq ($(FULL_TARGET),powerpc-darwin)
  626. override TARGET_IMPLICITUNITS+=exeinfo
  627. endif
  628. ifeq ($(FULL_TARGET),powerpc-morphos)
  629. override TARGET_IMPLICITUNITS+=exeinfo
  630. endif
  631. ifeq ($(FULL_TARGET),powerpc-embedded)
  632. override TARGET_IMPLICITUNITS+=exeinfo
  633. endif
  634. ifeq ($(FULL_TARGET),powerpc-wii)
  635. override TARGET_IMPLICITUNITS+=exeinfo
  636. endif
  637. ifeq ($(FULL_TARGET),powerpc-aix)
  638. override TARGET_IMPLICITUNITS+=exeinfo
  639. endif
  640. ifeq ($(FULL_TARGET),sparc-linux)
  641. override TARGET_IMPLICITUNITS+=exeinfo
  642. endif
  643. ifeq ($(FULL_TARGET),sparc-netbsd)
  644. override TARGET_IMPLICITUNITS+=exeinfo
  645. endif
  646. ifeq ($(FULL_TARGET),sparc-solaris)
  647. override TARGET_IMPLICITUNITS+=exeinfo
  648. endif
  649. ifeq ($(FULL_TARGET),sparc-embedded)
  650. override TARGET_IMPLICITUNITS+=exeinfo
  651. endif
  652. ifeq ($(FULL_TARGET),x86_64-linux)
  653. override TARGET_IMPLICITUNITS+=exeinfo
  654. endif
  655. ifeq ($(FULL_TARGET),x86_64-freebsd)
  656. override TARGET_IMPLICITUNITS+=exeinfo
  657. endif
  658. ifeq ($(FULL_TARGET),x86_64-netbsd)
  659. override TARGET_IMPLICITUNITS+=exeinfo
  660. endif
  661. ifeq ($(FULL_TARGET),x86_64-solaris)
  662. override TARGET_IMPLICITUNITS+=exeinfo
  663. endif
  664. ifeq ($(FULL_TARGET),x86_64-openbsd)
  665. override TARGET_IMPLICITUNITS+=exeinfo
  666. endif
  667. ifeq ($(FULL_TARGET),x86_64-darwin)
  668. override TARGET_IMPLICITUNITS+=exeinfo
  669. endif
  670. ifeq ($(FULL_TARGET),x86_64-win64)
  671. override TARGET_IMPLICITUNITS+=exeinfo
  672. endif
  673. ifeq ($(FULL_TARGET),x86_64-embedded)
  674. override TARGET_IMPLICITUNITS+=exeinfo
  675. endif
  676. ifeq ($(FULL_TARGET),arm-linux)
  677. override TARGET_IMPLICITUNITS+=exeinfo
  678. endif
  679. ifeq ($(FULL_TARGET),arm-palmos)
  680. override TARGET_IMPLICITUNITS+=exeinfo
  681. endif
  682. ifeq ($(FULL_TARGET),arm-darwin)
  683. override TARGET_IMPLICITUNITS+=exeinfo
  684. endif
  685. ifeq ($(FULL_TARGET),arm-wince)
  686. override TARGET_IMPLICITUNITS+=exeinfo
  687. endif
  688. ifeq ($(FULL_TARGET),arm-gba)
  689. override TARGET_IMPLICITUNITS+=exeinfo
  690. endif
  691. ifeq ($(FULL_TARGET),arm-nds)
  692. override TARGET_IMPLICITUNITS+=exeinfo
  693. endif
  694. ifeq ($(FULL_TARGET),arm-embedded)
  695. override TARGET_IMPLICITUNITS+=exeinfo
  696. endif
  697. ifeq ($(FULL_TARGET),arm-symbian)
  698. override TARGET_IMPLICITUNITS+=exeinfo
  699. endif
  700. ifeq ($(FULL_TARGET),powerpc64-linux)
  701. override TARGET_IMPLICITUNITS+=exeinfo
  702. endif
  703. ifeq ($(FULL_TARGET),powerpc64-darwin)
  704. override TARGET_IMPLICITUNITS+=exeinfo
  705. endif
  706. ifeq ($(FULL_TARGET),powerpc64-embedded)
  707. override TARGET_IMPLICITUNITS+=exeinfo
  708. endif
  709. ifeq ($(FULL_TARGET),powerpc64-aix)
  710. override TARGET_IMPLICITUNITS+=exeinfo
  711. endif
  712. ifeq ($(FULL_TARGET),avr-embedded)
  713. override TARGET_IMPLICITUNITS+=exeinfo
  714. endif
  715. ifeq ($(FULL_TARGET),armeb-linux)
  716. override TARGET_IMPLICITUNITS+=exeinfo
  717. endif
  718. ifeq ($(FULL_TARGET),armeb-embedded)
  719. override TARGET_IMPLICITUNITS+=exeinfo
  720. endif
  721. ifeq ($(FULL_TARGET),mips-linux)
  722. override TARGET_IMPLICITUNITS+=exeinfo
  723. endif
  724. ifeq ($(FULL_TARGET),mipsel-linux)
  725. override TARGET_IMPLICITUNITS+=exeinfo
  726. endif
  727. ifeq ($(FULL_TARGET),jvm-java)
  728. override TARGET_IMPLICITUNITS+=exeinfo
  729. endif
  730. ifeq ($(FULL_TARGET),jvm-android)
  731. override TARGET_IMPLICITUNITS+=exeinfo
  732. endif
  733. ifeq ($(FULL_TARGET),i386-linux)
  734. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  735. endif
  736. ifeq ($(FULL_TARGET),i386-go32v2)
  737. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  738. endif
  739. ifeq ($(FULL_TARGET),i386-win32)
  740. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  741. endif
  742. ifeq ($(FULL_TARGET),i386-os2)
  743. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  744. endif
  745. ifeq ($(FULL_TARGET),i386-freebsd)
  746. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  747. endif
  748. ifeq ($(FULL_TARGET),i386-beos)
  749. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  750. endif
  751. ifeq ($(FULL_TARGET),i386-haiku)
  752. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  753. endif
  754. ifeq ($(FULL_TARGET),i386-netbsd)
  755. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  756. endif
  757. ifeq ($(FULL_TARGET),i386-solaris)
  758. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  759. endif
  760. ifeq ($(FULL_TARGET),i386-qnx)
  761. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  762. endif
  763. ifeq ($(FULL_TARGET),i386-netware)
  764. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  765. endif
  766. ifeq ($(FULL_TARGET),i386-openbsd)
  767. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  768. endif
  769. ifeq ($(FULL_TARGET),i386-wdosx)
  770. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  771. endif
  772. ifeq ($(FULL_TARGET),i386-darwin)
  773. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  774. endif
  775. ifeq ($(FULL_TARGET),i386-emx)
  776. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  777. endif
  778. ifeq ($(FULL_TARGET),i386-watcom)
  779. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  780. endif
  781. ifeq ($(FULL_TARGET),i386-netwlibc)
  782. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  783. endif
  784. ifeq ($(FULL_TARGET),i386-wince)
  785. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  786. endif
  787. ifeq ($(FULL_TARGET),i386-embedded)
  788. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  789. endif
  790. ifeq ($(FULL_TARGET),i386-symbian)
  791. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  792. endif
  793. ifeq ($(FULL_TARGET),i386-nativent)
  794. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  795. endif
  796. ifeq ($(FULL_TARGET),i386-iphonesim)
  797. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  798. endif
  799. ifeq ($(FULL_TARGET),m68k-linux)
  800. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  801. endif
  802. ifeq ($(FULL_TARGET),m68k-freebsd)
  803. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  804. endif
  805. ifeq ($(FULL_TARGET),m68k-netbsd)
  806. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  807. endif
  808. ifeq ($(FULL_TARGET),m68k-amiga)
  809. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  810. endif
  811. ifeq ($(FULL_TARGET),m68k-atari)
  812. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  813. endif
  814. ifeq ($(FULL_TARGET),m68k-openbsd)
  815. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  816. endif
  817. ifeq ($(FULL_TARGET),m68k-palmos)
  818. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  819. endif
  820. ifeq ($(FULL_TARGET),m68k-embedded)
  821. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  822. endif
  823. ifeq ($(FULL_TARGET),powerpc-linux)
  824. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  825. endif
  826. ifeq ($(FULL_TARGET),powerpc-netbsd)
  827. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  828. endif
  829. ifeq ($(FULL_TARGET),powerpc-amiga)
  830. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  831. endif
  832. ifeq ($(FULL_TARGET),powerpc-macos)
  833. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  834. endif
  835. ifeq ($(FULL_TARGET),powerpc-darwin)
  836. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  837. endif
  838. ifeq ($(FULL_TARGET),powerpc-morphos)
  839. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  840. endif
  841. ifeq ($(FULL_TARGET),powerpc-embedded)
  842. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  843. endif
  844. ifeq ($(FULL_TARGET),powerpc-wii)
  845. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  846. endif
  847. ifeq ($(FULL_TARGET),powerpc-aix)
  848. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  849. endif
  850. ifeq ($(FULL_TARGET),sparc-linux)
  851. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  852. endif
  853. ifeq ($(FULL_TARGET),sparc-netbsd)
  854. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  855. endif
  856. ifeq ($(FULL_TARGET),sparc-solaris)
  857. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  858. endif
  859. ifeq ($(FULL_TARGET),sparc-embedded)
  860. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  861. endif
  862. ifeq ($(FULL_TARGET),x86_64-linux)
  863. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  864. endif
  865. ifeq ($(FULL_TARGET),x86_64-freebsd)
  866. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  867. endif
  868. ifeq ($(FULL_TARGET),x86_64-netbsd)
  869. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  870. endif
  871. ifeq ($(FULL_TARGET),x86_64-solaris)
  872. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  873. endif
  874. ifeq ($(FULL_TARGET),x86_64-openbsd)
  875. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  876. endif
  877. ifeq ($(FULL_TARGET),x86_64-darwin)
  878. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  879. endif
  880. ifeq ($(FULL_TARGET),x86_64-win64)
  881. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  882. endif
  883. ifeq ($(FULL_TARGET),x86_64-embedded)
  884. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  885. endif
  886. ifeq ($(FULL_TARGET),arm-linux)
  887. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  888. endif
  889. ifeq ($(FULL_TARGET),arm-palmos)
  890. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  891. endif
  892. ifeq ($(FULL_TARGET),arm-darwin)
  893. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  894. endif
  895. ifeq ($(FULL_TARGET),arm-wince)
  896. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  897. endif
  898. ifeq ($(FULL_TARGET),arm-gba)
  899. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  900. endif
  901. ifeq ($(FULL_TARGET),arm-nds)
  902. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  903. endif
  904. ifeq ($(FULL_TARGET),arm-embedded)
  905. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  906. endif
  907. ifeq ($(FULL_TARGET),arm-symbian)
  908. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  909. endif
  910. ifeq ($(FULL_TARGET),powerpc64-linux)
  911. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  912. endif
  913. ifeq ($(FULL_TARGET),powerpc64-darwin)
  914. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  915. endif
  916. ifeq ($(FULL_TARGET),powerpc64-embedded)
  917. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  918. endif
  919. ifeq ($(FULL_TARGET),powerpc64-aix)
  920. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  921. endif
  922. ifeq ($(FULL_TARGET),avr-embedded)
  923. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  924. endif
  925. ifeq ($(FULL_TARGET),armeb-linux)
  926. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  927. endif
  928. ifeq ($(FULL_TARGET),armeb-embedded)
  929. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  930. endif
  931. ifeq ($(FULL_TARGET),mips-linux)
  932. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  933. endif
  934. ifeq ($(FULL_TARGET),mipsel-linux)
  935. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  936. endif
  937. ifeq ($(FULL_TARGET),jvm-java)
  938. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  939. endif
  940. ifeq ($(FULL_TARGET),jvm-android)
  941. override TARGET_LOADERS+=prt0 cprt0 func dllprt
  942. endif
  943. ifeq ($(FULL_TARGET),i386-linux)
  944. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  945. endif
  946. ifeq ($(FULL_TARGET),i386-go32v2)
  947. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  948. endif
  949. ifeq ($(FULL_TARGET),i386-win32)
  950. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  951. endif
  952. ifeq ($(FULL_TARGET),i386-os2)
  953. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  954. endif
  955. ifeq ($(FULL_TARGET),i386-freebsd)
  956. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  957. endif
  958. ifeq ($(FULL_TARGET),i386-beos)
  959. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  960. endif
  961. ifeq ($(FULL_TARGET),i386-haiku)
  962. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  963. endif
  964. ifeq ($(FULL_TARGET),i386-netbsd)
  965. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  966. endif
  967. ifeq ($(FULL_TARGET),i386-solaris)
  968. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  969. endif
  970. ifeq ($(FULL_TARGET),i386-qnx)
  971. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  972. endif
  973. ifeq ($(FULL_TARGET),i386-netware)
  974. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  975. endif
  976. ifeq ($(FULL_TARGET),i386-openbsd)
  977. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  978. endif
  979. ifeq ($(FULL_TARGET),i386-wdosx)
  980. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  981. endif
  982. ifeq ($(FULL_TARGET),i386-darwin)
  983. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  984. endif
  985. ifeq ($(FULL_TARGET),i386-emx)
  986. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  987. endif
  988. ifeq ($(FULL_TARGET),i386-watcom)
  989. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  990. endif
  991. ifeq ($(FULL_TARGET),i386-netwlibc)
  992. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  993. endif
  994. ifeq ($(FULL_TARGET),i386-wince)
  995. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  996. endif
  997. ifeq ($(FULL_TARGET),i386-embedded)
  998. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  999. endif
  1000. ifeq ($(FULL_TARGET),i386-symbian)
  1001. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1002. endif
  1003. ifeq ($(FULL_TARGET),i386-nativent)
  1004. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1005. endif
  1006. ifeq ($(FULL_TARGET),i386-iphonesim)
  1007. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1008. endif
  1009. ifeq ($(FULL_TARGET),m68k-linux)
  1010. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1011. endif
  1012. ifeq ($(FULL_TARGET),m68k-freebsd)
  1013. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1014. endif
  1015. ifeq ($(FULL_TARGET),m68k-netbsd)
  1016. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1017. endif
  1018. ifeq ($(FULL_TARGET),m68k-amiga)
  1019. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1020. endif
  1021. ifeq ($(FULL_TARGET),m68k-atari)
  1022. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1023. endif
  1024. ifeq ($(FULL_TARGET),m68k-openbsd)
  1025. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1026. endif
  1027. ifeq ($(FULL_TARGET),m68k-palmos)
  1028. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1029. endif
  1030. ifeq ($(FULL_TARGET),m68k-embedded)
  1031. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1032. endif
  1033. ifeq ($(FULL_TARGET),powerpc-linux)
  1034. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1035. endif
  1036. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1037. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1038. endif
  1039. ifeq ($(FULL_TARGET),powerpc-amiga)
  1040. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1041. endif
  1042. ifeq ($(FULL_TARGET),powerpc-macos)
  1043. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1044. endif
  1045. ifeq ($(FULL_TARGET),powerpc-darwin)
  1046. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1047. endif
  1048. ifeq ($(FULL_TARGET),powerpc-morphos)
  1049. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1050. endif
  1051. ifeq ($(FULL_TARGET),powerpc-embedded)
  1052. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1053. endif
  1054. ifeq ($(FULL_TARGET),powerpc-wii)
  1055. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1056. endif
  1057. ifeq ($(FULL_TARGET),powerpc-aix)
  1058. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1059. endif
  1060. ifeq ($(FULL_TARGET),sparc-linux)
  1061. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1062. endif
  1063. ifeq ($(FULL_TARGET),sparc-netbsd)
  1064. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1065. endif
  1066. ifeq ($(FULL_TARGET),sparc-solaris)
  1067. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1068. endif
  1069. ifeq ($(FULL_TARGET),sparc-embedded)
  1070. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1071. endif
  1072. ifeq ($(FULL_TARGET),x86_64-linux)
  1073. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1074. endif
  1075. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1076. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1077. endif
  1078. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1079. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1080. endif
  1081. ifeq ($(FULL_TARGET),x86_64-solaris)
  1082. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1083. endif
  1084. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1085. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1086. endif
  1087. ifeq ($(FULL_TARGET),x86_64-darwin)
  1088. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1089. endif
  1090. ifeq ($(FULL_TARGET),x86_64-win64)
  1091. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1092. endif
  1093. ifeq ($(FULL_TARGET),x86_64-embedded)
  1094. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1095. endif
  1096. ifeq ($(FULL_TARGET),arm-linux)
  1097. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1098. endif
  1099. ifeq ($(FULL_TARGET),arm-palmos)
  1100. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1101. endif
  1102. ifeq ($(FULL_TARGET),arm-darwin)
  1103. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1104. endif
  1105. ifeq ($(FULL_TARGET),arm-wince)
  1106. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1107. endif
  1108. ifeq ($(FULL_TARGET),arm-gba)
  1109. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1110. endif
  1111. ifeq ($(FULL_TARGET),arm-nds)
  1112. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1113. endif
  1114. ifeq ($(FULL_TARGET),arm-embedded)
  1115. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1116. endif
  1117. ifeq ($(FULL_TARGET),arm-symbian)
  1118. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1119. endif
  1120. ifeq ($(FULL_TARGET),powerpc64-linux)
  1121. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1122. endif
  1123. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1124. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1125. endif
  1126. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1127. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1128. endif
  1129. ifeq ($(FULL_TARGET),powerpc64-aix)
  1130. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1131. endif
  1132. ifeq ($(FULL_TARGET),avr-embedded)
  1133. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1134. endif
  1135. ifeq ($(FULL_TARGET),armeb-linux)
  1136. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1137. endif
  1138. ifeq ($(FULL_TARGET),armeb-embedded)
  1139. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1140. endif
  1141. ifeq ($(FULL_TARGET),mips-linux)
  1142. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1143. endif
  1144. ifeq ($(FULL_TARGET),mipsel-linux)
  1145. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1146. endif
  1147. ifeq ($(FULL_TARGET),jvm-java)
  1148. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1149. endif
  1150. ifeq ($(FULL_TARGET),jvm-android)
  1151. override TARGET_RSTS+=math varutils typinfo variants sysconst rtlconsts dateutils stdconvs
  1152. endif
  1153. override INSTALL_FPCPACKAGE=y
  1154. ifeq ($(FULL_TARGET),i386-linux)
  1155. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1156. endif
  1157. ifeq ($(FULL_TARGET),i386-go32v2)
  1158. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1159. endif
  1160. ifeq ($(FULL_TARGET),i386-win32)
  1161. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1162. endif
  1163. ifeq ($(FULL_TARGET),i386-os2)
  1164. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1165. endif
  1166. ifeq ($(FULL_TARGET),i386-freebsd)
  1167. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1168. endif
  1169. ifeq ($(FULL_TARGET),i386-beos)
  1170. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1171. endif
  1172. ifeq ($(FULL_TARGET),i386-haiku)
  1173. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1174. endif
  1175. ifeq ($(FULL_TARGET),i386-netbsd)
  1176. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1177. endif
  1178. ifeq ($(FULL_TARGET),i386-solaris)
  1179. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1180. endif
  1181. ifeq ($(FULL_TARGET),i386-qnx)
  1182. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1183. endif
  1184. ifeq ($(FULL_TARGET),i386-netware)
  1185. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1186. endif
  1187. ifeq ($(FULL_TARGET),i386-openbsd)
  1188. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1189. endif
  1190. ifeq ($(FULL_TARGET),i386-wdosx)
  1191. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1192. endif
  1193. ifeq ($(FULL_TARGET),i386-darwin)
  1194. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1195. endif
  1196. ifeq ($(FULL_TARGET),i386-emx)
  1197. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1198. endif
  1199. ifeq ($(FULL_TARGET),i386-watcom)
  1200. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1201. endif
  1202. ifeq ($(FULL_TARGET),i386-netwlibc)
  1203. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1204. endif
  1205. ifeq ($(FULL_TARGET),i386-wince)
  1206. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1207. endif
  1208. ifeq ($(FULL_TARGET),i386-embedded)
  1209. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1210. endif
  1211. ifeq ($(FULL_TARGET),i386-symbian)
  1212. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1213. endif
  1214. ifeq ($(FULL_TARGET),i386-nativent)
  1215. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1216. endif
  1217. ifeq ($(FULL_TARGET),i386-iphonesim)
  1218. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1219. endif
  1220. ifeq ($(FULL_TARGET),m68k-linux)
  1221. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1222. endif
  1223. ifeq ($(FULL_TARGET),m68k-freebsd)
  1224. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1225. endif
  1226. ifeq ($(FULL_TARGET),m68k-netbsd)
  1227. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1228. endif
  1229. ifeq ($(FULL_TARGET),m68k-amiga)
  1230. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1231. endif
  1232. ifeq ($(FULL_TARGET),m68k-atari)
  1233. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1234. endif
  1235. ifeq ($(FULL_TARGET),m68k-openbsd)
  1236. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1237. endif
  1238. ifeq ($(FULL_TARGET),m68k-palmos)
  1239. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1240. endif
  1241. ifeq ($(FULL_TARGET),m68k-embedded)
  1242. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1243. endif
  1244. ifeq ($(FULL_TARGET),powerpc-linux)
  1245. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1246. endif
  1247. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1248. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1249. endif
  1250. ifeq ($(FULL_TARGET),powerpc-amiga)
  1251. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1252. endif
  1253. ifeq ($(FULL_TARGET),powerpc-macos)
  1254. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1255. endif
  1256. ifeq ($(FULL_TARGET),powerpc-darwin)
  1257. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1258. endif
  1259. ifeq ($(FULL_TARGET),powerpc-morphos)
  1260. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1261. endif
  1262. ifeq ($(FULL_TARGET),powerpc-embedded)
  1263. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1264. endif
  1265. ifeq ($(FULL_TARGET),powerpc-wii)
  1266. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1267. endif
  1268. ifeq ($(FULL_TARGET),powerpc-aix)
  1269. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1270. endif
  1271. ifeq ($(FULL_TARGET),sparc-linux)
  1272. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1273. endif
  1274. ifeq ($(FULL_TARGET),sparc-netbsd)
  1275. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1276. endif
  1277. ifeq ($(FULL_TARGET),sparc-solaris)
  1278. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1279. endif
  1280. ifeq ($(FULL_TARGET),sparc-embedded)
  1281. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1282. endif
  1283. ifeq ($(FULL_TARGET),x86_64-linux)
  1284. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1285. endif
  1286. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1287. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1288. endif
  1289. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1290. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1291. endif
  1292. ifeq ($(FULL_TARGET),x86_64-solaris)
  1293. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1294. endif
  1295. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1296. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1297. endif
  1298. ifeq ($(FULL_TARGET),x86_64-darwin)
  1299. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1300. endif
  1301. ifeq ($(FULL_TARGET),x86_64-win64)
  1302. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1303. endif
  1304. ifeq ($(FULL_TARGET),x86_64-embedded)
  1305. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1306. endif
  1307. ifeq ($(FULL_TARGET),arm-linux)
  1308. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1309. endif
  1310. ifeq ($(FULL_TARGET),arm-palmos)
  1311. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1312. endif
  1313. ifeq ($(FULL_TARGET),arm-darwin)
  1314. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1315. endif
  1316. ifeq ($(FULL_TARGET),arm-wince)
  1317. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1318. endif
  1319. ifeq ($(FULL_TARGET),arm-gba)
  1320. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1321. endif
  1322. ifeq ($(FULL_TARGET),arm-nds)
  1323. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1324. endif
  1325. ifeq ($(FULL_TARGET),arm-embedded)
  1326. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1327. endif
  1328. ifeq ($(FULL_TARGET),arm-symbian)
  1329. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1330. endif
  1331. ifeq ($(FULL_TARGET),powerpc64-linux)
  1332. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1333. endif
  1334. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1335. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1336. endif
  1337. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1338. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1339. endif
  1340. ifeq ($(FULL_TARGET),powerpc64-aix)
  1341. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1342. endif
  1343. ifeq ($(FULL_TARGET),avr-embedded)
  1344. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1345. endif
  1346. ifeq ($(FULL_TARGET),armeb-linux)
  1347. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1348. endif
  1349. ifeq ($(FULL_TARGET),armeb-embedded)
  1350. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1351. endif
  1352. ifeq ($(FULL_TARGET),mips-linux)
  1353. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1354. endif
  1355. ifeq ($(FULL_TARGET),mipsel-linux)
  1356. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1357. endif
  1358. ifeq ($(FULL_TARGET),jvm-java)
  1359. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1360. endif
  1361. ifeq ($(FULL_TARGET),jvm-android)
  1362. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC) $(HAIKUINC)
  1363. endif
  1364. ifeq ($(FULL_TARGET),i386-linux)
  1365. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1366. endif
  1367. ifeq ($(FULL_TARGET),i386-go32v2)
  1368. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1369. endif
  1370. ifeq ($(FULL_TARGET),i386-win32)
  1371. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1372. endif
  1373. ifeq ($(FULL_TARGET),i386-os2)
  1374. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1375. endif
  1376. ifeq ($(FULL_TARGET),i386-freebsd)
  1377. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1378. endif
  1379. ifeq ($(FULL_TARGET),i386-beos)
  1380. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1381. endif
  1382. ifeq ($(FULL_TARGET),i386-haiku)
  1383. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1384. endif
  1385. ifeq ($(FULL_TARGET),i386-netbsd)
  1386. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1387. endif
  1388. ifeq ($(FULL_TARGET),i386-solaris)
  1389. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1390. endif
  1391. ifeq ($(FULL_TARGET),i386-qnx)
  1392. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1393. endif
  1394. ifeq ($(FULL_TARGET),i386-netware)
  1395. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1396. endif
  1397. ifeq ($(FULL_TARGET),i386-openbsd)
  1398. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1399. endif
  1400. ifeq ($(FULL_TARGET),i386-wdosx)
  1401. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1402. endif
  1403. ifeq ($(FULL_TARGET),i386-darwin)
  1404. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1405. endif
  1406. ifeq ($(FULL_TARGET),i386-emx)
  1407. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1408. endif
  1409. ifeq ($(FULL_TARGET),i386-watcom)
  1410. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1411. endif
  1412. ifeq ($(FULL_TARGET),i386-netwlibc)
  1413. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1414. endif
  1415. ifeq ($(FULL_TARGET),i386-wince)
  1416. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1417. endif
  1418. ifeq ($(FULL_TARGET),i386-embedded)
  1419. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1420. endif
  1421. ifeq ($(FULL_TARGET),i386-symbian)
  1422. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1423. endif
  1424. ifeq ($(FULL_TARGET),i386-nativent)
  1425. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1426. endif
  1427. ifeq ($(FULL_TARGET),i386-iphonesim)
  1428. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1429. endif
  1430. ifeq ($(FULL_TARGET),m68k-linux)
  1431. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1432. endif
  1433. ifeq ($(FULL_TARGET),m68k-freebsd)
  1434. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1435. endif
  1436. ifeq ($(FULL_TARGET),m68k-netbsd)
  1437. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1438. endif
  1439. ifeq ($(FULL_TARGET),m68k-amiga)
  1440. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1441. endif
  1442. ifeq ($(FULL_TARGET),m68k-atari)
  1443. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1444. endif
  1445. ifeq ($(FULL_TARGET),m68k-openbsd)
  1446. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1447. endif
  1448. ifeq ($(FULL_TARGET),m68k-palmos)
  1449. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1450. endif
  1451. ifeq ($(FULL_TARGET),m68k-embedded)
  1452. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1453. endif
  1454. ifeq ($(FULL_TARGET),powerpc-linux)
  1455. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1456. endif
  1457. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1458. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1459. endif
  1460. ifeq ($(FULL_TARGET),powerpc-amiga)
  1461. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1462. endif
  1463. ifeq ($(FULL_TARGET),powerpc-macos)
  1464. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1465. endif
  1466. ifeq ($(FULL_TARGET),powerpc-darwin)
  1467. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1468. endif
  1469. ifeq ($(FULL_TARGET),powerpc-morphos)
  1470. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1471. endif
  1472. ifeq ($(FULL_TARGET),powerpc-embedded)
  1473. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1474. endif
  1475. ifeq ($(FULL_TARGET),powerpc-wii)
  1476. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1477. endif
  1478. ifeq ($(FULL_TARGET),powerpc-aix)
  1479. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1480. endif
  1481. ifeq ($(FULL_TARGET),sparc-linux)
  1482. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1483. endif
  1484. ifeq ($(FULL_TARGET),sparc-netbsd)
  1485. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1486. endif
  1487. ifeq ($(FULL_TARGET),sparc-solaris)
  1488. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1489. endif
  1490. ifeq ($(FULL_TARGET),sparc-embedded)
  1491. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1492. endif
  1493. ifeq ($(FULL_TARGET),x86_64-linux)
  1494. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1495. endif
  1496. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1497. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1498. endif
  1499. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1500. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1501. endif
  1502. ifeq ($(FULL_TARGET),x86_64-solaris)
  1503. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1504. endif
  1505. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1506. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1507. endif
  1508. ifeq ($(FULL_TARGET),x86_64-darwin)
  1509. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1510. endif
  1511. ifeq ($(FULL_TARGET),x86_64-win64)
  1512. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1513. endif
  1514. ifeq ($(FULL_TARGET),x86_64-embedded)
  1515. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1516. endif
  1517. ifeq ($(FULL_TARGET),arm-linux)
  1518. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1519. endif
  1520. ifeq ($(FULL_TARGET),arm-palmos)
  1521. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1522. endif
  1523. ifeq ($(FULL_TARGET),arm-darwin)
  1524. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1525. endif
  1526. ifeq ($(FULL_TARGET),arm-wince)
  1527. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1528. endif
  1529. ifeq ($(FULL_TARGET),arm-gba)
  1530. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1531. endif
  1532. ifeq ($(FULL_TARGET),arm-nds)
  1533. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1534. endif
  1535. ifeq ($(FULL_TARGET),arm-embedded)
  1536. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1537. endif
  1538. ifeq ($(FULL_TARGET),arm-symbian)
  1539. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1540. endif
  1541. ifeq ($(FULL_TARGET),powerpc64-linux)
  1542. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1543. endif
  1544. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1545. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1546. endif
  1547. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1548. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1549. endif
  1550. ifeq ($(FULL_TARGET),powerpc64-aix)
  1551. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1552. endif
  1553. ifeq ($(FULL_TARGET),avr-embedded)
  1554. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1555. endif
  1556. ifeq ($(FULL_TARGET),armeb-linux)
  1557. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1558. endif
  1559. ifeq ($(FULL_TARGET),armeb-embedded)
  1560. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1561. endif
  1562. ifeq ($(FULL_TARGET),mips-linux)
  1563. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1564. endif
  1565. ifeq ($(FULL_TARGET),mipsel-linux)
  1566. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1567. endif
  1568. ifeq ($(FULL_TARGET),jvm-java)
  1569. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1570. endif
  1571. ifeq ($(FULL_TARGET),jvm-android)
  1572. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(HAIKUINC)
  1573. endif
  1574. ifeq ($(FULL_TARGET),i386-linux)
  1575. override COMPILER_TARGETDIR+=.
  1576. endif
  1577. ifeq ($(FULL_TARGET),i386-go32v2)
  1578. override COMPILER_TARGETDIR+=.
  1579. endif
  1580. ifeq ($(FULL_TARGET),i386-win32)
  1581. override COMPILER_TARGETDIR+=.
  1582. endif
  1583. ifeq ($(FULL_TARGET),i386-os2)
  1584. override COMPILER_TARGETDIR+=.
  1585. endif
  1586. ifeq ($(FULL_TARGET),i386-freebsd)
  1587. override COMPILER_TARGETDIR+=.
  1588. endif
  1589. ifeq ($(FULL_TARGET),i386-beos)
  1590. override COMPILER_TARGETDIR+=.
  1591. endif
  1592. ifeq ($(FULL_TARGET),i386-haiku)
  1593. override COMPILER_TARGETDIR+=.
  1594. endif
  1595. ifeq ($(FULL_TARGET),i386-netbsd)
  1596. override COMPILER_TARGETDIR+=.
  1597. endif
  1598. ifeq ($(FULL_TARGET),i386-solaris)
  1599. override COMPILER_TARGETDIR+=.
  1600. endif
  1601. ifeq ($(FULL_TARGET),i386-qnx)
  1602. override COMPILER_TARGETDIR+=.
  1603. endif
  1604. ifeq ($(FULL_TARGET),i386-netware)
  1605. override COMPILER_TARGETDIR+=.
  1606. endif
  1607. ifeq ($(FULL_TARGET),i386-openbsd)
  1608. override COMPILER_TARGETDIR+=.
  1609. endif
  1610. ifeq ($(FULL_TARGET),i386-wdosx)
  1611. override COMPILER_TARGETDIR+=.
  1612. endif
  1613. ifeq ($(FULL_TARGET),i386-darwin)
  1614. override COMPILER_TARGETDIR+=.
  1615. endif
  1616. ifeq ($(FULL_TARGET),i386-emx)
  1617. override COMPILER_TARGETDIR+=.
  1618. endif
  1619. ifeq ($(FULL_TARGET),i386-watcom)
  1620. override COMPILER_TARGETDIR+=.
  1621. endif
  1622. ifeq ($(FULL_TARGET),i386-netwlibc)
  1623. override COMPILER_TARGETDIR+=.
  1624. endif
  1625. ifeq ($(FULL_TARGET),i386-wince)
  1626. override COMPILER_TARGETDIR+=.
  1627. endif
  1628. ifeq ($(FULL_TARGET),i386-embedded)
  1629. override COMPILER_TARGETDIR+=.
  1630. endif
  1631. ifeq ($(FULL_TARGET),i386-symbian)
  1632. override COMPILER_TARGETDIR+=.
  1633. endif
  1634. ifeq ($(FULL_TARGET),i386-nativent)
  1635. override COMPILER_TARGETDIR+=.
  1636. endif
  1637. ifeq ($(FULL_TARGET),i386-iphonesim)
  1638. override COMPILER_TARGETDIR+=.
  1639. endif
  1640. ifeq ($(FULL_TARGET),m68k-linux)
  1641. override COMPILER_TARGETDIR+=.
  1642. endif
  1643. ifeq ($(FULL_TARGET),m68k-freebsd)
  1644. override COMPILER_TARGETDIR+=.
  1645. endif
  1646. ifeq ($(FULL_TARGET),m68k-netbsd)
  1647. override COMPILER_TARGETDIR+=.
  1648. endif
  1649. ifeq ($(FULL_TARGET),m68k-amiga)
  1650. override COMPILER_TARGETDIR+=.
  1651. endif
  1652. ifeq ($(FULL_TARGET),m68k-atari)
  1653. override COMPILER_TARGETDIR+=.
  1654. endif
  1655. ifeq ($(FULL_TARGET),m68k-openbsd)
  1656. override COMPILER_TARGETDIR+=.
  1657. endif
  1658. ifeq ($(FULL_TARGET),m68k-palmos)
  1659. override COMPILER_TARGETDIR+=.
  1660. endif
  1661. ifeq ($(FULL_TARGET),m68k-embedded)
  1662. override COMPILER_TARGETDIR+=.
  1663. endif
  1664. ifeq ($(FULL_TARGET),powerpc-linux)
  1665. override COMPILER_TARGETDIR+=.
  1666. endif
  1667. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1668. override COMPILER_TARGETDIR+=.
  1669. endif
  1670. ifeq ($(FULL_TARGET),powerpc-amiga)
  1671. override COMPILER_TARGETDIR+=.
  1672. endif
  1673. ifeq ($(FULL_TARGET),powerpc-macos)
  1674. override COMPILER_TARGETDIR+=.
  1675. endif
  1676. ifeq ($(FULL_TARGET),powerpc-darwin)
  1677. override COMPILER_TARGETDIR+=.
  1678. endif
  1679. ifeq ($(FULL_TARGET),powerpc-morphos)
  1680. override COMPILER_TARGETDIR+=.
  1681. endif
  1682. ifeq ($(FULL_TARGET),powerpc-embedded)
  1683. override COMPILER_TARGETDIR+=.
  1684. endif
  1685. ifeq ($(FULL_TARGET),powerpc-wii)
  1686. override COMPILER_TARGETDIR+=.
  1687. endif
  1688. ifeq ($(FULL_TARGET),powerpc-aix)
  1689. override COMPILER_TARGETDIR+=.
  1690. endif
  1691. ifeq ($(FULL_TARGET),sparc-linux)
  1692. override COMPILER_TARGETDIR+=.
  1693. endif
  1694. ifeq ($(FULL_TARGET),sparc-netbsd)
  1695. override COMPILER_TARGETDIR+=.
  1696. endif
  1697. ifeq ($(FULL_TARGET),sparc-solaris)
  1698. override COMPILER_TARGETDIR+=.
  1699. endif
  1700. ifeq ($(FULL_TARGET),sparc-embedded)
  1701. override COMPILER_TARGETDIR+=.
  1702. endif
  1703. ifeq ($(FULL_TARGET),x86_64-linux)
  1704. override COMPILER_TARGETDIR+=.
  1705. endif
  1706. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1707. override COMPILER_TARGETDIR+=.
  1708. endif
  1709. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1710. override COMPILER_TARGETDIR+=.
  1711. endif
  1712. ifeq ($(FULL_TARGET),x86_64-solaris)
  1713. override COMPILER_TARGETDIR+=.
  1714. endif
  1715. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1716. override COMPILER_TARGETDIR+=.
  1717. endif
  1718. ifeq ($(FULL_TARGET),x86_64-darwin)
  1719. override COMPILER_TARGETDIR+=.
  1720. endif
  1721. ifeq ($(FULL_TARGET),x86_64-win64)
  1722. override COMPILER_TARGETDIR+=.
  1723. endif
  1724. ifeq ($(FULL_TARGET),x86_64-embedded)
  1725. override COMPILER_TARGETDIR+=.
  1726. endif
  1727. ifeq ($(FULL_TARGET),arm-linux)
  1728. override COMPILER_TARGETDIR+=.
  1729. endif
  1730. ifeq ($(FULL_TARGET),arm-palmos)
  1731. override COMPILER_TARGETDIR+=.
  1732. endif
  1733. ifeq ($(FULL_TARGET),arm-darwin)
  1734. override COMPILER_TARGETDIR+=.
  1735. endif
  1736. ifeq ($(FULL_TARGET),arm-wince)
  1737. override COMPILER_TARGETDIR+=.
  1738. endif
  1739. ifeq ($(FULL_TARGET),arm-gba)
  1740. override COMPILER_TARGETDIR+=.
  1741. endif
  1742. ifeq ($(FULL_TARGET),arm-nds)
  1743. override COMPILER_TARGETDIR+=.
  1744. endif
  1745. ifeq ($(FULL_TARGET),arm-embedded)
  1746. override COMPILER_TARGETDIR+=.
  1747. endif
  1748. ifeq ($(FULL_TARGET),arm-symbian)
  1749. override COMPILER_TARGETDIR+=.
  1750. endif
  1751. ifeq ($(FULL_TARGET),powerpc64-linux)
  1752. override COMPILER_TARGETDIR+=.
  1753. endif
  1754. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1755. override COMPILER_TARGETDIR+=.
  1756. endif
  1757. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1758. override COMPILER_TARGETDIR+=.
  1759. endif
  1760. ifeq ($(FULL_TARGET),powerpc64-aix)
  1761. override COMPILER_TARGETDIR+=.
  1762. endif
  1763. ifeq ($(FULL_TARGET),avr-embedded)
  1764. override COMPILER_TARGETDIR+=.
  1765. endif
  1766. ifeq ($(FULL_TARGET),armeb-linux)
  1767. override COMPILER_TARGETDIR+=.
  1768. endif
  1769. ifeq ($(FULL_TARGET),armeb-embedded)
  1770. override COMPILER_TARGETDIR+=.
  1771. endif
  1772. ifeq ($(FULL_TARGET),mips-linux)
  1773. override COMPILER_TARGETDIR+=.
  1774. endif
  1775. ifeq ($(FULL_TARGET),mipsel-linux)
  1776. override COMPILER_TARGETDIR+=.
  1777. endif
  1778. ifeq ($(FULL_TARGET),jvm-java)
  1779. override COMPILER_TARGETDIR+=.
  1780. endif
  1781. ifeq ($(FULL_TARGET),jvm-android)
  1782. override COMPILER_TARGETDIR+=.
  1783. endif
  1784. ifdef REQUIRE_UNITSDIR
  1785. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1786. endif
  1787. ifdef REQUIRE_PACKAGESDIR
  1788. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1789. endif
  1790. ifdef ZIPINSTALL
  1791. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  1792. UNIXHier=1
  1793. endif
  1794. else
  1795. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  1796. UNIXHier=1
  1797. endif
  1798. endif
  1799. ifndef INSTALL_PREFIX
  1800. ifdef PREFIX
  1801. INSTALL_PREFIX=$(PREFIX)
  1802. endif
  1803. endif
  1804. ifndef INSTALL_PREFIX
  1805. ifdef UNIXHier
  1806. INSTALL_PREFIX=/usr/local
  1807. else
  1808. ifdef INSTALL_FPCPACKAGE
  1809. INSTALL_BASEDIR:=/pp
  1810. else
  1811. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1812. endif
  1813. endif
  1814. endif
  1815. export INSTALL_PREFIX
  1816. ifdef INSTALL_FPCSUBDIR
  1817. export INSTALL_FPCSUBDIR
  1818. endif
  1819. ifndef DIST_DESTDIR
  1820. DIST_DESTDIR:=$(BASEDIR)
  1821. endif
  1822. export DIST_DESTDIR
  1823. ifndef COMPILER_UNITTARGETDIR
  1824. ifdef PACKAGEDIR_MAIN
  1825. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1826. else
  1827. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1828. endif
  1829. endif
  1830. ifndef COMPILER_TARGETDIR
  1831. COMPILER_TARGETDIR=.
  1832. endif
  1833. ifndef INSTALL_BASEDIR
  1834. ifdef UNIXHier
  1835. ifdef INSTALL_FPCPACKAGE
  1836. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1837. else
  1838. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1839. endif
  1840. else
  1841. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1842. endif
  1843. endif
  1844. ifndef INSTALL_BINDIR
  1845. ifdef UNIXHier
  1846. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1847. else
  1848. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1849. ifdef INSTALL_FPCPACKAGE
  1850. ifdef CROSSCOMPILE
  1851. ifdef CROSSINSTALL
  1852. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1853. else
  1854. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1855. endif
  1856. else
  1857. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1858. endif
  1859. endif
  1860. endif
  1861. endif
  1862. ifndef INSTALL_UNITDIR
  1863. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1864. ifdef INSTALL_FPCPACKAGE
  1865. ifdef PACKAGE_NAME
  1866. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1867. endif
  1868. endif
  1869. endif
  1870. ifndef INSTALL_LIBDIR
  1871. ifdef UNIXHier
  1872. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1873. else
  1874. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1875. endif
  1876. endif
  1877. ifndef INSTALL_SOURCEDIR
  1878. ifdef UNIXHier
  1879. ifdef BSDhier
  1880. SRCPREFIXDIR=share/src
  1881. else
  1882. ifdef linuxHier
  1883. SRCPREFIXDIR=share/src
  1884. else
  1885. SRCPREFIXDIR=src
  1886. endif
  1887. endif
  1888. ifdef INSTALL_FPCPACKAGE
  1889. ifdef INSTALL_FPCSUBDIR
  1890. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1891. else
  1892. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1893. endif
  1894. else
  1895. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1896. endif
  1897. else
  1898. ifdef INSTALL_FPCPACKAGE
  1899. ifdef INSTALL_FPCSUBDIR
  1900. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1901. else
  1902. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1903. endif
  1904. else
  1905. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1906. endif
  1907. endif
  1908. endif
  1909. ifndef INSTALL_DOCDIR
  1910. ifdef UNIXHier
  1911. ifdef BSDhier
  1912. DOCPREFIXDIR=share/doc
  1913. else
  1914. ifdef linuxHier
  1915. DOCPREFIXDIR=share/doc
  1916. else
  1917. DOCPREFIXDIR=doc
  1918. endif
  1919. endif
  1920. ifdef INSTALL_FPCPACKAGE
  1921. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1922. else
  1923. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1924. endif
  1925. else
  1926. ifdef INSTALL_FPCPACKAGE
  1927. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1928. else
  1929. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1930. endif
  1931. endif
  1932. endif
  1933. ifndef INSTALL_EXAMPLEDIR
  1934. ifdef UNIXHier
  1935. ifdef INSTALL_FPCPACKAGE
  1936. ifdef BSDhier
  1937. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1938. else
  1939. ifdef linuxHier
  1940. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1941. else
  1942. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1943. endif
  1944. endif
  1945. else
  1946. ifdef BSDhier
  1947. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1948. else
  1949. ifdef linuxHier
  1950. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1951. else
  1952. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1953. endif
  1954. endif
  1955. endif
  1956. else
  1957. ifdef INSTALL_FPCPACKAGE
  1958. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1959. else
  1960. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1961. endif
  1962. endif
  1963. endif
  1964. ifndef INSTALL_DATADIR
  1965. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1966. endif
  1967. ifndef INSTALL_SHAREDDIR
  1968. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1969. endif
  1970. ifdef CROSSCOMPILE
  1971. ifndef CROSSBINDIR
  1972. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1973. ifeq ($(CROSSBINDIR),)
  1974. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1975. endif
  1976. endif
  1977. else
  1978. CROSSBINDIR=
  1979. endif
  1980. BATCHEXT=.bat
  1981. LOADEREXT=.as
  1982. EXEEXT=.exe
  1983. PPLEXT=.ppl
  1984. PPUEXT=.ppu
  1985. OEXT=.o
  1986. ASMEXT=.s
  1987. SMARTEXT=.sl
  1988. STATICLIBEXT=.a
  1989. SHAREDLIBEXT=.so
  1990. SHAREDLIBPREFIX=libfp
  1991. STATICLIBPREFIX=libp
  1992. IMPORTLIBPREFIX=libimp
  1993. RSTEXT=.rst
  1994. EXEDBGEXT=.dbg
  1995. ifeq ($(OS_TARGET),go32v1)
  1996. STATICLIBPREFIX=
  1997. SHORTSUFFIX=v1
  1998. endif
  1999. ifeq ($(OS_TARGET),go32v2)
  2000. STATICLIBPREFIX=
  2001. SHORTSUFFIX=dos
  2002. IMPORTLIBPREFIX=
  2003. endif
  2004. ifeq ($(OS_TARGET),watcom)
  2005. STATICLIBPREFIX=
  2006. OEXT=.obj
  2007. ASMEXT=.asm
  2008. SHAREDLIBEXT=.dll
  2009. SHORTSUFFIX=wat
  2010. IMPORTLIBPREFIX=
  2011. endif
  2012. ifeq ($(OS_TARGET),linux)
  2013. BATCHEXT=.sh
  2014. EXEEXT=
  2015. HASSHAREDLIB=1
  2016. SHORTSUFFIX=lnx
  2017. endif
  2018. ifeq ($(OS_TARGET),freebsd)
  2019. BATCHEXT=.sh
  2020. EXEEXT=
  2021. HASSHAREDLIB=1
  2022. SHORTSUFFIX=fbs
  2023. endif
  2024. ifeq ($(OS_TARGET),netbsd)
  2025. BATCHEXT=.sh
  2026. EXEEXT=
  2027. HASSHAREDLIB=1
  2028. SHORTSUFFIX=nbs
  2029. endif
  2030. ifeq ($(OS_TARGET),openbsd)
  2031. BATCHEXT=.sh
  2032. EXEEXT=
  2033. HASSHAREDLIB=1
  2034. SHORTSUFFIX=obs
  2035. endif
  2036. ifeq ($(OS_TARGET),win32)
  2037. SHAREDLIBEXT=.dll
  2038. SHORTSUFFIX=w32
  2039. endif
  2040. ifeq ($(OS_TARGET),os2)
  2041. BATCHEXT=.cmd
  2042. AOUTEXT=.out
  2043. STATICLIBPREFIX=
  2044. SHAREDLIBEXT=.dll
  2045. SHORTSUFFIX=os2
  2046. ECHO=echo
  2047. IMPORTLIBPREFIX=
  2048. endif
  2049. ifeq ($(OS_TARGET),emx)
  2050. BATCHEXT=.cmd
  2051. AOUTEXT=.out
  2052. STATICLIBPREFIX=
  2053. SHAREDLIBEXT=.dll
  2054. SHORTSUFFIX=emx
  2055. ECHO=echo
  2056. IMPORTLIBPREFIX=
  2057. endif
  2058. ifeq ($(OS_TARGET),amiga)
  2059. EXEEXT=
  2060. SHAREDLIBEXT=.library
  2061. SHORTSUFFIX=amg
  2062. endif
  2063. ifeq ($(OS_TARGET),morphos)
  2064. EXEEXT=
  2065. SHAREDLIBEXT=.library
  2066. SHORTSUFFIX=mos
  2067. endif
  2068. ifeq ($(OS_TARGET),atari)
  2069. EXEEXT=.ttp
  2070. SHORTSUFFIX=ata
  2071. endif
  2072. ifeq ($(OS_TARGET),beos)
  2073. BATCHEXT=.sh
  2074. EXEEXT=
  2075. SHORTSUFFIX=be
  2076. endif
  2077. ifeq ($(OS_TARGET),haiku)
  2078. BATCHEXT=.sh
  2079. EXEEXT=
  2080. SHORTSUFFIX=hai
  2081. endif
  2082. ifeq ($(OS_TARGET),solaris)
  2083. BATCHEXT=.sh
  2084. EXEEXT=
  2085. SHORTSUFFIX=sun
  2086. endif
  2087. ifeq ($(OS_TARGET),qnx)
  2088. BATCHEXT=.sh
  2089. EXEEXT=
  2090. SHORTSUFFIX=qnx
  2091. endif
  2092. ifeq ($(OS_TARGET),netware)
  2093. EXEEXT=.nlm
  2094. STATICLIBPREFIX=
  2095. SHORTSUFFIX=nw
  2096. IMPORTLIBPREFIX=imp
  2097. endif
  2098. ifeq ($(OS_TARGET),netwlibc)
  2099. EXEEXT=.nlm
  2100. STATICLIBPREFIX=
  2101. SHORTSUFFIX=nwl
  2102. IMPORTLIBPREFIX=imp
  2103. endif
  2104. ifeq ($(OS_TARGET),macos)
  2105. BATCHEXT=
  2106. EXEEXT=
  2107. DEBUGSYMEXT=.xcoff
  2108. SHORTSUFFIX=mac
  2109. IMPORTLIBPREFIX=imp
  2110. endif
  2111. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  2112. BATCHEXT=.sh
  2113. EXEEXT=
  2114. HASSHAREDLIB=1
  2115. SHORTSUFFIX=dwn
  2116. EXEDBGEXT=.dSYM
  2117. endif
  2118. ifeq ($(OS_TARGET),gba)
  2119. EXEEXT=.gba
  2120. SHAREDLIBEXT=.so
  2121. SHORTSUFFIX=gba
  2122. endif
  2123. ifeq ($(OS_TARGET),symbian)
  2124. SHAREDLIBEXT=.dll
  2125. SHORTSUFFIX=symbian
  2126. endif
  2127. ifeq ($(OS_TARGET),NativeNT)
  2128. SHAREDLIBEXT=.dll
  2129. SHORTSUFFIX=nativent
  2130. endif
  2131. ifeq ($(OS_TARGET),wii)
  2132. EXEEXT=.dol
  2133. SHAREDLIBEXT=.so
  2134. SHORTSUFFIX=wii
  2135. endif
  2136. ifeq ($(OS_TARGET),aix)
  2137. BATCHEXT=.sh
  2138. EXEEXT=
  2139. SHORTSUFFIX=aix
  2140. endif
  2141. ifeq ($(OS_TARGET),java)
  2142. OEXT=.class
  2143. ASMEXT=.j
  2144. SHAREDLIBEXT=.jar
  2145. SHORTSUFFIX=java
  2146. endif
  2147. ifeq ($(OS_TARGET),android)
  2148. OEXT=.class
  2149. ASMEXT=.j
  2150. SHAREDLIBEXT=.jar
  2151. SHORTSUFFIX=android
  2152. endif
  2153. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  2154. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2155. ZIPSUFFIX=$(SHORTSUFFIX)
  2156. ZIPCROSSPREFIX=
  2157. ZIPSOURCESUFFIX=src
  2158. ZIPEXAMPLESUFFIX=exm
  2159. else
  2160. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2161. ZIPSOURCESUFFIX=.source
  2162. ZIPEXAMPLESUFFIX=.examples
  2163. ifdef CROSSCOMPILE
  2164. ZIPSUFFIX=.$(SOURCESUFFIX)
  2165. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2166. else
  2167. ZIPSUFFIX=.$(TARGETSUFFIX)
  2168. ZIPCROSSPREFIX=
  2169. endif
  2170. endif
  2171. ifndef ECHO
  2172. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2173. ifeq ($(ECHO),)
  2174. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2175. ifeq ($(ECHO),)
  2176. ECHO= __missing_command_ECHO
  2177. else
  2178. ECHO:=$(firstword $(ECHO))
  2179. endif
  2180. else
  2181. ECHO:=$(firstword $(ECHO))
  2182. endif
  2183. endif
  2184. export ECHO
  2185. ifndef DATE
  2186. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2187. ifeq ($(DATE),)
  2188. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2189. ifeq ($(DATE),)
  2190. DATE= __missing_command_DATE
  2191. else
  2192. DATE:=$(firstword $(DATE))
  2193. endif
  2194. else
  2195. DATE:=$(firstword $(DATE))
  2196. endif
  2197. endif
  2198. export DATE
  2199. ifndef GINSTALL
  2200. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2201. ifeq ($(GINSTALL),)
  2202. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2203. ifeq ($(GINSTALL),)
  2204. GINSTALL= __missing_command_GINSTALL
  2205. else
  2206. GINSTALL:=$(firstword $(GINSTALL))
  2207. endif
  2208. else
  2209. GINSTALL:=$(firstword $(GINSTALL))
  2210. endif
  2211. endif
  2212. export GINSTALL
  2213. ifndef CPPROG
  2214. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2215. ifeq ($(CPPROG),)
  2216. CPPROG= __missing_command_CPPROG
  2217. else
  2218. CPPROG:=$(firstword $(CPPROG))
  2219. endif
  2220. endif
  2221. export CPPROG
  2222. ifndef RMPROG
  2223. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2224. ifeq ($(RMPROG),)
  2225. RMPROG= __missing_command_RMPROG
  2226. else
  2227. RMPROG:=$(firstword $(RMPROG))
  2228. endif
  2229. endif
  2230. export RMPROG
  2231. ifndef MVPROG
  2232. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2233. ifeq ($(MVPROG),)
  2234. MVPROG= __missing_command_MVPROG
  2235. else
  2236. MVPROG:=$(firstword $(MVPROG))
  2237. endif
  2238. endif
  2239. export MVPROG
  2240. ifndef MKDIRPROG
  2241. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2242. ifeq ($(MKDIRPROG),)
  2243. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2244. ifeq ($(MKDIRPROG),)
  2245. MKDIRPROG= __missing_command_MKDIRPROG
  2246. else
  2247. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2248. endif
  2249. else
  2250. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2251. endif
  2252. endif
  2253. export MKDIRPROG
  2254. ifndef ECHOREDIR
  2255. ifndef inUnix
  2256. ECHOREDIR=echo
  2257. else
  2258. ECHOREDIR=$(ECHO)
  2259. endif
  2260. endif
  2261. ifndef COPY
  2262. COPY:=$(CPPROG) -fp
  2263. endif
  2264. ifndef COPYTREE
  2265. COPYTREE:=$(CPPROG) -Rfp
  2266. endif
  2267. ifndef MKDIRTREE
  2268. MKDIRTREE:=$(MKDIRPROG) -p
  2269. endif
  2270. ifndef MOVE
  2271. MOVE:=$(MVPROG) -f
  2272. endif
  2273. ifndef DEL
  2274. DEL:=$(RMPROG) -f
  2275. endif
  2276. ifndef DELTREE
  2277. DELTREE:=$(RMPROG) -rf
  2278. endif
  2279. ifndef INSTALL
  2280. ifdef inUnix
  2281. INSTALL:=$(GINSTALL) -c -m 644
  2282. else
  2283. INSTALL:=$(COPY)
  2284. endif
  2285. endif
  2286. ifndef INSTALLEXE
  2287. ifdef inUnix
  2288. INSTALLEXE:=$(GINSTALL) -c -m 755
  2289. else
  2290. INSTALLEXE:=$(COPY)
  2291. endif
  2292. endif
  2293. ifndef MKDIR
  2294. MKDIR:=$(GINSTALL) -m 755 -d
  2295. endif
  2296. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2297. ifndef PPUMOVE
  2298. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2299. ifeq ($(PPUMOVE),)
  2300. PPUMOVE= __missing_command_PPUMOVE
  2301. else
  2302. PPUMOVE:=$(firstword $(PPUMOVE))
  2303. endif
  2304. endif
  2305. export PPUMOVE
  2306. ifndef FPCMAKE
  2307. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2308. ifeq ($(FPCMAKE),)
  2309. FPCMAKE= __missing_command_FPCMAKE
  2310. else
  2311. FPCMAKE:=$(firstword $(FPCMAKE))
  2312. endif
  2313. endif
  2314. export FPCMAKE
  2315. ifndef ZIPPROG
  2316. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2317. ifeq ($(ZIPPROG),)
  2318. ZIPPROG= __missing_command_ZIPPROG
  2319. else
  2320. ZIPPROG:=$(firstword $(ZIPPROG))
  2321. endif
  2322. endif
  2323. export ZIPPROG
  2324. ifndef TARPROG
  2325. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2326. ifeq ($(TARPROG),)
  2327. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2328. ifeq ($(TARPROG),)
  2329. TARPROG= __missing_command_TARPROG
  2330. else
  2331. TARPROG:=$(firstword $(TARPROG))
  2332. endif
  2333. else
  2334. TARPROG:=$(firstword $(TARPROG))
  2335. endif
  2336. endif
  2337. export TARPROG
  2338. ASNAME=$(BINUTILSPREFIX)as
  2339. LDNAME=$(BINUTILSPREFIX)ld
  2340. ARNAME=$(BINUTILSPREFIX)ar
  2341. RCNAME=$(BINUTILSPREFIX)rc
  2342. ifndef ASPROG
  2343. ifdef CROSSBINDIR
  2344. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2345. else
  2346. ASPROG=$(ASNAME)
  2347. endif
  2348. endif
  2349. ifndef LDPROG
  2350. ifdef CROSSBINDIR
  2351. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2352. else
  2353. LDPROG=$(LDNAME)
  2354. endif
  2355. endif
  2356. ifndef RCPROG
  2357. ifdef CROSSBINDIR
  2358. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2359. else
  2360. RCPROG=$(RCNAME)
  2361. endif
  2362. endif
  2363. ifndef ARPROG
  2364. ifdef CROSSBINDIR
  2365. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2366. else
  2367. ARPROG=$(ARNAME)
  2368. endif
  2369. endif
  2370. AS=$(ASPROG)
  2371. LD=$(LDPROG)
  2372. RC=$(RCPROG)
  2373. AR=$(ARPROG)
  2374. PPAS=ppas$(SRCBATCHEXT)
  2375. ifdef inUnix
  2376. LDCONFIG=ldconfig
  2377. else
  2378. LDCONFIG=
  2379. endif
  2380. ifdef DATE
  2381. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2382. else
  2383. DATESTR=
  2384. endif
  2385. ZIPOPT=-9
  2386. ZIPEXT=.zip
  2387. ifeq ($(USETAR),bz2)
  2388. TAROPT=vj
  2389. TAREXT=.tar.bz2
  2390. else
  2391. TAROPT=vz
  2392. TAREXT=.tar.gz
  2393. endif
  2394. ifndef NOCPUDEF
  2395. override FPCOPTDEF=$(ARCH)
  2396. endif
  2397. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2398. override FPCOPT+=-T$(OS_TARGET)
  2399. endif
  2400. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  2401. override FPCOPT+=-P$(ARCH)
  2402. endif
  2403. ifeq ($(OS_SOURCE),openbsd)
  2404. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2405. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  2406. endif
  2407. ifndef CROSSBOOTSTRAP
  2408. ifneq ($(BINUTILSPREFIX),)
  2409. override FPCOPT+=-XP$(BINUTILSPREFIX)
  2410. endif
  2411. ifneq ($(BINUTILSPREFIX),)
  2412. override FPCOPT+=-Xr$(RLINKPATH)
  2413. endif
  2414. endif
  2415. ifndef CROSSCOMPILE
  2416. ifneq ($(BINUTILSPREFIX),)
  2417. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  2418. endif
  2419. endif
  2420. ifdef UNITDIR
  2421. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2422. endif
  2423. ifdef LIBDIR
  2424. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2425. endif
  2426. ifdef OBJDIR
  2427. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2428. endif
  2429. ifdef INCDIR
  2430. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2431. endif
  2432. ifdef LINKSMART
  2433. override FPCOPT+=-XX
  2434. endif
  2435. ifdef CREATESMART
  2436. override FPCOPT+=-CX
  2437. endif
  2438. ifdef DEBUG
  2439. override FPCOPT+=-gl
  2440. override FPCOPTDEF+=DEBUG
  2441. endif
  2442. ifdef RELEASE
  2443. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  2444. ifeq ($(CPU_TARGET),i386)
  2445. FPCCPUOPT:=-OG2p3
  2446. endif
  2447. ifeq ($(CPU_TARGET),powerpc)
  2448. FPCCPUOPT:=-O1r
  2449. endif
  2450. else
  2451. FPCCPUOPT:=-O2
  2452. endif
  2453. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  2454. override FPCOPTDEF+=RELEASE
  2455. endif
  2456. ifdef STRIP
  2457. override FPCOPT+=-Xs
  2458. endif
  2459. ifdef OPTIMIZE
  2460. override FPCOPT+=-O2
  2461. endif
  2462. ifdef VERBOSE
  2463. override FPCOPT+=-vwni
  2464. endif
  2465. ifdef COMPILER_OPTIONS
  2466. override FPCOPT+=$(COMPILER_OPTIONS)
  2467. endif
  2468. ifdef COMPILER_UNITDIR
  2469. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2470. endif
  2471. ifdef COMPILER_LIBRARYDIR
  2472. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2473. endif
  2474. ifdef COMPILER_OBJECTDIR
  2475. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2476. endif
  2477. ifdef COMPILER_INCLUDEDIR
  2478. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2479. endif
  2480. ifdef CROSSBINDIR
  2481. override FPCOPT+=-FD$(CROSSBINDIR)
  2482. endif
  2483. ifdef COMPILER_TARGETDIR
  2484. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2485. ifeq ($(COMPILER_TARGETDIR),.)
  2486. override TARGETDIRPREFIX=
  2487. else
  2488. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2489. endif
  2490. endif
  2491. ifdef COMPILER_UNITTARGETDIR
  2492. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2493. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2494. override UNITTARGETDIRPREFIX=
  2495. else
  2496. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2497. endif
  2498. else
  2499. ifdef COMPILER_TARGETDIR
  2500. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2501. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2502. endif
  2503. endif
  2504. ifdef CREATESHARED
  2505. override FPCOPT+=-Cg
  2506. ifeq ($(CPU_TARGET),i386)
  2507. override FPCOPT+=-Aas
  2508. endif
  2509. endif
  2510. ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
  2511. ifneq ($(findstring $(OS_TARGET),freebsd openbsd netbsd linux solaris),)
  2512. ifeq ($(CPU_TARGET),x86_64)
  2513. override FPCOPT+=-Cg
  2514. endif
  2515. endif
  2516. endif
  2517. ifdef LINKSHARED
  2518. endif
  2519. ifdef OPT
  2520. override FPCOPT+=$(OPT)
  2521. endif
  2522. ifdef FPCOPTDEF
  2523. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2524. endif
  2525. ifdef CFGFILE
  2526. override FPCOPT+=@$(CFGFILE)
  2527. endif
  2528. ifdef USEENV
  2529. override FPCEXTCMD:=$(FPCOPT)
  2530. override FPCOPT:=!FPCEXTCMD
  2531. export FPCEXTCMD
  2532. endif
  2533. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  2534. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  2535. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  2536. override ACROSSCOMPILE=1
  2537. endif
  2538. ifdef ACROSSCOMPILE
  2539. override FPCOPT+=$(CROSSOPT)
  2540. endif
  2541. override COMPILER:=$(FPC) $(FPCOPT)
  2542. ifeq (,$(findstring -s ,$(COMPILER)))
  2543. EXECPPAS=
  2544. else
  2545. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2546. ifdef RUNBATCH
  2547. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  2548. else
  2549. EXECPPAS:=@$(PPAS)
  2550. endif
  2551. endif
  2552. endif
  2553. .PHONY: fpc_loaders
  2554. ifneq ($(TARGET_LOADERS),)
  2555. override ALLTARGET+=fpc_loaders
  2556. override CLEANTARGET+=fpc_loaders_clean
  2557. override INSTALLTARGET+=fpc_loaders_install
  2558. override LOADEROFILES:=$(addsuffix $(OEXT),$(TARGET_LOADERS))
  2559. endif
  2560. %$(OEXT): %$(LOADEREXT)
  2561. ifdef COMPILER_UNITTARGETDIR
  2562. $(AS) -o $(COMPILER_UNITTARGETDIR)/$*$(OEXT) $<
  2563. else
  2564. $(AS) -o $*$(OEXT) $<
  2565. endif
  2566. fpc_loaders: $(COMPILER_UNITTARGETDIR) $(LOADEROFILES)
  2567. fpc_loaders_clean:
  2568. ifdef COMPILER_UNITTARGETDIR
  2569. -$(DEL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES))
  2570. else
  2571. -$(DEL) $(LOADEROFILES)
  2572. endif
  2573. fpc_loaders_install:
  2574. $(MKDIR) $(INSTALL_UNITDIR)
  2575. ifdef COMPILER_UNITTARGETDIR
  2576. $(INSTALL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES)) $(INSTALL_UNITDIR)
  2577. else
  2578. $(INSTALL) $(LOADEROFILES) $(INSTALL_UNITDIR)
  2579. endif
  2580. .PHONY: fpc_units
  2581. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  2582. override ALLTARGET+=fpc_units
  2583. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  2584. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  2585. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2586. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2587. endif
  2588. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  2589. ifdef TARGET_RSTS
  2590. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2591. override CLEANRSTFILES+=$(RSTFILES)
  2592. endif
  2593. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  2594. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2595. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2596. fpc_all: $(FPCMADE)
  2597. fpc_smart:
  2598. $(MAKE) all LINKSMART=1 CREATESMART=1
  2599. fpc_debug:
  2600. $(MAKE) all DEBUG=1
  2601. fpc_release:
  2602. $(MAKE) all RELEASE=1
  2603. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  2604. $(COMPILER_UNITTARGETDIR):
  2605. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2606. $(COMPILER_TARGETDIR):
  2607. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2608. %$(PPUEXT): %.pp
  2609. $(COMPILER) $<
  2610. $(EXECPPAS)
  2611. %$(PPUEXT): %.pas
  2612. $(COMPILER) $<
  2613. $(EXECPPAS)
  2614. %$(EXEEXT): %.pp
  2615. $(COMPILER) $<
  2616. $(EXECPPAS)
  2617. %$(EXEEXT): %.pas
  2618. $(COMPILER) $<
  2619. $(EXECPPAS)
  2620. %$(EXEEXT): %.lpr
  2621. $(COMPILER) $<
  2622. $(EXECPPAS)
  2623. %$(EXEEXT): %.dpr
  2624. $(COMPILER) $<
  2625. $(EXECPPAS)
  2626. %.res: %.rc
  2627. windres -i $< -o $@
  2628. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2629. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2630. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2631. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2632. vpath %.inc $(COMPILER_INCLUDEDIR)
  2633. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2634. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2635. .PHONY: fpc_shared
  2636. override INSTALLTARGET+=fpc_shared_install
  2637. ifndef SHARED_LIBVERSION
  2638. SHARED_LIBVERSION=$(FPC_VERSION)
  2639. endif
  2640. ifndef SHARED_LIBNAME
  2641. SHARED_LIBNAME=$(PACKAGE_NAME)
  2642. endif
  2643. ifndef SHARED_FULLNAME
  2644. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  2645. endif
  2646. ifndef SHARED_LIBUNITS
  2647. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  2648. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  2649. endif
  2650. fpc_shared:
  2651. ifdef HASSHAREDLIB
  2652. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  2653. ifneq ($(SHARED_BUILD),n)
  2654. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
  2655. endif
  2656. else
  2657. @$(ECHO) Shared Libraries not supported
  2658. endif
  2659. fpc_shared_install:
  2660. ifneq ($(SHARED_BUILD),n)
  2661. ifneq ($(SHARED_LIBUNITS),)
  2662. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  2663. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  2664. endif
  2665. endif
  2666. endif
  2667. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2668. ifdef INSTALL_UNITS
  2669. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2670. endif
  2671. ifdef INSTALL_BUILDUNIT
  2672. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2673. endif
  2674. ifdef INSTALLPPUFILES
  2675. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2676. ifneq ($(UNITTARGETDIRPREFIX),)
  2677. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
  2678. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
  2679. endif
  2680. override INSTALL_CREATEPACKAGEFPC=1
  2681. endif
  2682. ifdef INSTALLEXEFILES
  2683. ifneq ($(TARGETDIRPREFIX),)
  2684. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  2685. endif
  2686. endif
  2687. fpc_install: all $(INSTALLTARGET)
  2688. ifdef INSTALLEXEFILES
  2689. $(MKDIR) $(INSTALL_BINDIR)
  2690. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2691. endif
  2692. ifdef INSTALL_CREATEPACKAGEFPC
  2693. ifdef FPCMAKE
  2694. ifdef PACKAGE_VERSION
  2695. ifneq ($(wildcard Makefile.fpc),)
  2696. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  2697. $(MKDIR) $(INSTALL_UNITDIR)
  2698. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2699. endif
  2700. endif
  2701. endif
  2702. endif
  2703. ifdef INSTALLPPUFILES
  2704. $(MKDIR) $(INSTALL_UNITDIR)
  2705. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2706. ifneq ($(INSTALLPPULINKFILES),)
  2707. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2708. endif
  2709. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2710. $(MKDIR) $(INSTALL_LIBDIR)
  2711. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2712. ifdef inUnix
  2713. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2714. endif
  2715. endif
  2716. endif
  2717. ifdef INSTALL_FILES
  2718. $(MKDIR) $(INSTALL_DATADIR)
  2719. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2720. endif
  2721. fpc_sourceinstall: distclean
  2722. $(MKDIR) $(INSTALL_SOURCEDIR)
  2723. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2724. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2725. ifdef HASEXAMPLES
  2726. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2727. endif
  2728. ifdef EXAMPLESOURCEFILES
  2729. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2730. endif
  2731. ifdef TARGET_EXAMPLEDIRS
  2732. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2733. endif
  2734. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2735. ifdef EXEFILES
  2736. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2737. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  2738. endif
  2739. ifdef CLEAN_PROGRAMS
  2740. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  2741. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  2742. endif
  2743. ifdef CLEAN_UNITS
  2744. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2745. endif
  2746. ifdef CLEANPPUFILES
  2747. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2748. ifdef DEBUGSYMEXT
  2749. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2750. endif
  2751. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  2752. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  2753. endif
  2754. fpc_clean: $(CLEANTARGET)
  2755. ifdef CLEANEXEFILES
  2756. -$(DEL) $(CLEANEXEFILES)
  2757. endif
  2758. ifdef CLEANEXEDBGFILES
  2759. -$(DELTREE) $(CLEANEXEDBGFILES)
  2760. endif
  2761. ifdef CLEANPPUFILES
  2762. -$(DEL) $(CLEANPPUFILES)
  2763. endif
  2764. ifneq ($(CLEANPPULINKFILES),)
  2765. -$(DEL) $(CLEANPPULINKFILES)
  2766. endif
  2767. ifdef CLEANRSTFILES
  2768. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2769. endif
  2770. ifdef CLEAN_FILES
  2771. -$(DEL) $(CLEAN_FILES)
  2772. endif
  2773. ifdef LIB_NAME
  2774. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2775. endif
  2776. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2777. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
  2778. fpc_cleanall: $(CLEANTARGET)
  2779. ifdef CLEANEXEFILES
  2780. -$(DEL) $(CLEANEXEFILES)
  2781. endif
  2782. ifdef COMPILER_UNITTARGETDIR
  2783. ifdef CLEANPPUFILES
  2784. -$(DEL) $(CLEANPPUFILES)
  2785. endif
  2786. ifneq ($(CLEANPPULINKFILES),)
  2787. -$(DEL) $(CLEANPPULINKFILES)
  2788. endif
  2789. ifdef CLEANRSTFILES
  2790. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2791. endif
  2792. endif
  2793. ifdef CLEAN_FILES
  2794. -$(DEL) $(CLEAN_FILES)
  2795. endif
  2796. -$(DELTREE) units
  2797. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2798. ifneq ($(PPUEXT),.ppu)
  2799. -$(DEL) *.o *.ppu *.a
  2800. endif
  2801. -$(DELTREE) *$(SMARTEXT)
  2802. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2803. -$(DEL) *_ppas$(BATCHEXT)
  2804. ifdef AOUTEXT
  2805. -$(DEL) *$(AOUTEXT)
  2806. endif
  2807. ifdef DEBUGSYMEXT
  2808. -$(DEL) *$(DEBUGSYMEXT)
  2809. endif
  2810. fpc_distclean: cleanall
  2811. .PHONY: fpc_baseinfo
  2812. override INFORULES+=fpc_baseinfo
  2813. fpc_baseinfo:
  2814. @$(ECHO)
  2815. @$(ECHO) == Package info ==
  2816. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  2817. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  2818. @$(ECHO)
  2819. @$(ECHO) == Configuration info ==
  2820. @$(ECHO)
  2821. @$(ECHO) FPC.......... $(FPC)
  2822. @$(ECHO) FPC Version.. $(FPC_VERSION)
  2823. @$(ECHO) Source CPU... $(CPU_SOURCE)
  2824. @$(ECHO) Target CPU... $(CPU_TARGET)
  2825. @$(ECHO) Source OS.... $(OS_SOURCE)
  2826. @$(ECHO) Target OS.... $(OS_TARGET)
  2827. @$(ECHO) Full Source.. $(FULL_SOURCE)
  2828. @$(ECHO) Full Target.. $(FULL_TARGET)
  2829. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  2830. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  2831. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  2832. @$(ECHO)
  2833. @$(ECHO) == Directory info ==
  2834. @$(ECHO)
  2835. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  2836. @$(ECHO)
  2837. @$(ECHO) Basedir......... $(BASEDIR)
  2838. @$(ECHO) FPCDir.......... $(FPCDIR)
  2839. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  2840. @$(ECHO) UnitsDir........ $(UNITSDIR)
  2841. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  2842. @$(ECHO)
  2843. @$(ECHO) GCC library..... $(GCCLIBDIR)
  2844. @$(ECHO) Other library... $(OTHERLIBDIR)
  2845. @$(ECHO)
  2846. @$(ECHO) == Tools info ==
  2847. @$(ECHO)
  2848. @$(ECHO) As........ $(AS)
  2849. @$(ECHO) Ld........ $(LD)
  2850. @$(ECHO) Ar........ $(AR)
  2851. @$(ECHO) Rc........ $(RC)
  2852. @$(ECHO)
  2853. @$(ECHO) Mv........ $(MVPROG)
  2854. @$(ECHO) Cp........ $(CPPROG)
  2855. @$(ECHO) Rm........ $(RMPROG)
  2856. @$(ECHO) GInstall.. $(GINSTALL)
  2857. @$(ECHO) Echo...... $(ECHO)
  2858. @$(ECHO) Shell..... $(SHELL)
  2859. @$(ECHO) Date...... $(DATE)
  2860. @$(ECHO) FPCMake... $(FPCMAKE)
  2861. @$(ECHO) PPUMove... $(PPUMOVE)
  2862. @$(ECHO) Zip....... $(ZIPPROG)
  2863. @$(ECHO)
  2864. @$(ECHO) == Object info ==
  2865. @$(ECHO)
  2866. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  2867. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  2868. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  2869. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  2870. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  2871. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  2872. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  2873. @$(ECHO)
  2874. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  2875. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  2876. @$(ECHO)
  2877. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  2878. @$(ECHO) Install Files....... $(INSTALL_FILES)
  2879. @$(ECHO)
  2880. @$(ECHO) == Install info ==
  2881. @$(ECHO)
  2882. @$(ECHO) DateStr.............. $(DATESTR)
  2883. @$(ECHO) ZipName.............. $(ZIPNAME)
  2884. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  2885. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  2886. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  2887. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  2888. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  2889. @$(ECHO)
  2890. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  2891. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  2892. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  2893. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  2894. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  2895. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  2896. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  2897. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  2898. @$(ECHO)
  2899. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  2900. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  2901. @$(ECHO)
  2902. .PHONY: fpc_info
  2903. fpc_info: $(INFORULES)
  2904. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  2905. fpc_makefile_dirs
  2906. fpc_makefile:
  2907. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  2908. fpc_makefile_sub1:
  2909. ifdef TARGET_DIRS
  2910. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  2911. endif
  2912. ifdef TARGET_EXAMPLEDIRS
  2913. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  2914. endif
  2915. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  2916. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  2917. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  2918. all: fpc_all
  2919. debug: fpc_debug
  2920. smart: fpc_smart
  2921. release: fpc_release
  2922. units: fpc_units
  2923. examples:
  2924. shared: fpc_shared
  2925. install: fpc_install
  2926. sourceinstall: fpc_sourceinstall
  2927. exampleinstall: fpc_exampleinstall
  2928. distinstall:
  2929. zipinstall:
  2930. zipsourceinstall:
  2931. zipexampleinstall:
  2932. zipdistinstall:
  2933. clean: fpc_clean
  2934. distclean: fpc_distclean
  2935. cleanall: fpc_cleanall
  2936. info: fpc_info
  2937. makefiles: fpc_makefiles
  2938. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  2939. ifneq ($(wildcard fpcmake.loc),)
  2940. include fpcmake.loc
  2941. endif
  2942. include $(INC)/makefile.inc
  2943. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  2944. include $(PROCINC)/makefile.cpu
  2945. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  2946. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  2947. SYSTEMUNIT=system
  2948. prt0$(OEXT) : $(CPU_TARGET)/prt0.as
  2949. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
  2950. cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
  2951. $(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
  2952. func$(OEXT) : $(CPU_TARGET)/func.as
  2953. $(AS) -o $(UNITTARGETDIRPREFIX)func$(OEXT) $(CPU_TARGET)/func.as
  2954. dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
  2955. $(AS) -o $(UNITTARGETDIRPREFIX)dllprt$(OEXT) $(CPU_TARGET)/dllprt.as
  2956. system$(PPUEXT) : system.pp $(SYSDEPS) $(UNIXINC)/sysunixh.inc
  2957. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp
  2958. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  2959. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  2960. $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  2961. dateutils$(PPUEXT): $(OBJPASDIR)/dateutils.pp baseunix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) types$(PPUEXT)
  2962. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/dateutils.pp
  2963. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  2964. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  2965. $(SYSTEMUNIT)$(PPUEXT)
  2966. baseunix$(PPUEXT) : $(UNIXINC)/unixtype.pp $(SYSTEMUNIT)$(PPUEXT)
  2967. $(COMPILER) -Fi$(UNIXINC) -Fu$(UNIXINC) baseunix.pp
  2968. unix$(PPUEXT) : $(UNIXINC)/unix.pp strings$(PPUEXT) $(INC)/textrec.inc $(INC)/filerec.inc \
  2969. sysconst.inc $(UNIXINC)/timezone.inc \
  2970. baseunix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2971. linux$(PPUEXT) : baseunix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2972. dos$(PPUEXT) : $(UNIXINC)/dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  2973. unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2974. $(COMPILER) -I$(INC) -Fu$(INC) $(UNIXINC)/dos.pp
  2975. crt$(PPUEXT) : crt.pp $(INC)/textrec.inc termio.pp system$(PPUEXT)
  2976. $(COMPILER) $(UNIXINC)/crt.pp $(REDIR)
  2977. video$(PPUEXT) : video.pp $(INC)/textrec.inc termio.pp system$(PPUEXT)
  2978. $(COMPILER) -Fu$(UNIXINC) $(UNIXINC)/video.pp $(REDIR)
  2979. keyboard$(PPUEXT) : $(UNIXINC)/keyboard.pp mouse$(PPUEXT) $(INC)/textrec.inc termio.pp system$(PPUEXT)
  2980. $(COMPILER) $(UNIXINC)/keyboard.pp $(REDIR) -dNOGPM
  2981. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  2982. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  2983. objpas$(PPUEXT) $(OBJPASDIR)/sysconst$(PPUEXT) # beos$(PPUEXT)
  2984. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(UNIXINC) $(UNIXINC)/sysutils.pp
  2985. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  2986. sysutils$(PPUEXT) $(OBJPASDIR)/typinfo$(PPUEXT) types$(PPUEXT) $(OBJPASDIR)/rtlconsts$(PPUEXT)
  2987. $(COMPILER) -Fi$(OBJPASDIR) -Fi$(OBJPASDIR)/classes classes.pp
  2988. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  2989. $(COMPILER) $(OBJPASDIR)/fgl.pp
  2990. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  2991. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  2992. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  2993. $(COMPILER) $(OBJPASDIR)/math.pp
  2994. gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  2995. $(COMPILER) $(OBJPASDIR)/gettext.pp
  2996. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  2997. $(OBJPASDIR)/varutilh.inc varutils.pp
  2998. $(COMPILER) -Fi$(OBJPASDIR) $(UNIXINC)/varutils.pp
  2999. fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
  3000. $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
  3001. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3002. $(COMPILER) $(OBJPASDIR)/types.pp
  3003. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3004. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  3005. rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3006. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  3007. strutils$(PPUEXT) : $(OBJPASDIR)/strutils.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) \
  3008. sysutils$(PPUEXT)
  3009. $(COMPILER) $(OBJPASDIR)/strutils.pp
  3010. convutils$(PPUEXT) : $(OBJPASDIR)/convutils.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) \
  3011. sysutils$(PPUEXT)
  3012. $(COMPILER) $(OBJPASDIR)/convutils.pp
  3013. stdconvs$(PPUEXT) : $(OBJPASDIR)/stdconvs.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) \
  3014. sysutils$(PPUEXT)
  3015. $(COMPILER) $(OBJPASDIR)/stdconvs.pp
  3016. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  3017. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  3018. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  3019. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  3020. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  3021. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  3022. $(COMPILER) $(INC)/heaptrc.pp
  3023. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  3024. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT) strings$(PPUEXT)
  3025. charset$(PPUEXT) : $(INC)/charset.pp objpas$(PPUEXT)
  3026. ucomplex$(PPUEXT) : $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) math$(PPUEXT)
  3027. termio$(PPUEXT) : baseunix$(PPUEXT)
  3028. mouse$(PPUEXT) : baseunix$(PPUEXT) video$(PPUEXT)
  3029. $(COMPILER) $(UNIXINC)/mouse.pp $(REDIR) -dNOGPM
  3030. dl$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT) unixtype$(PPUEXT)
  3031. sockets$(PPUEXT) : $(UNIXINC)/sockets.pp $(INC)/textrec.inc $(INC)/filerec.inc \
  3032. unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  3033. dynlibs$(PPUEXT) : $(INC)/dynlibs.pas $(UNIXINC)/dynlibs.inc dl$(PPUEXT) objpas$(PPUEXT)
  3034. cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
  3035. ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
  3036. variants$(PPUEXT) : $(INC)/variants.pp sysutils$(PPUEXT) sysconst$(PPUEXT) varutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) math$(PPUEXT)
  3037. $(COMPILER) -Fi$(INC) $(INC)/variants.pp
  3038. cthreads$(PPUEXT) : $(UNIXINC)/cthreads.pp $(SYSTEMUNIT)$(PPUEXT)
  3039. cwstring$(PPUEXT) : $(UNIXINC)/cwstring.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT) baseunix$(PPUEXT) unix$(PPUEXT) unixtype$(PPUEXT) ctypes$(PPUEXT) dynlibs$(PPUEXT)