Makefile 103 KB

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