Makefile 126 KB

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