Makefile 98 KB

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