Makefile 127 KB

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