Makefile 146 KB

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