Makefile 96 KB

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