Makefile 113 KB

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