Makefile 106 KB

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