Makefile 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/04/25]
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux jvm-java jvm-android
  6. BSDs = freebsd netbsd openbsd darwin
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override OS_TARGET_DEFAULT=embedded
  104. override DEFAULT_FPCDIR=../..
  105. ifndef FPC
  106. ifdef PP
  107. FPC=$(PP)
  108. endif
  109. endif
  110. ifndef FPC
  111. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  112. ifneq ($(FPCPROG),)
  113. FPCPROG:=$(firstword $(FPCPROG))
  114. ifneq ($(CPU_TARGET),)
  115. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  116. else
  117. FPC:=$(shell $(FPCPROG) -PB)
  118. endif
  119. ifneq ($(findstring Error,$(FPC)),)
  120. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  121. else
  122. ifeq ($(strip $(wildcard $(FPC))),)
  123. FPC:=$(firstword $(FPCPROG))
  124. endif
  125. endif
  126. else
  127. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  128. endif
  129. endif
  130. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  131. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  132. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  133. ifeq ($(FOUNDFPC),)
  134. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  135. ifeq ($(FOUNDFPC),)
  136. $(error Compiler $(FPC) not found)
  137. endif
  138. endif
  139. ifndef FPC_COMPILERINFO
  140. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  141. endif
  142. ifndef FPC_VERSION
  143. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  144. endif
  145. export FPC FPC_VERSION FPC_COMPILERINFO
  146. unexport CHECKDEPEND ALLDEPENDENCIES
  147. ifndef CPU_TARGET
  148. ifdef CPU_TARGET_DEFAULT
  149. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  150. endif
  151. endif
  152. ifndef OS_TARGET
  153. ifdef OS_TARGET_DEFAULT
  154. OS_TARGET=$(OS_TARGET_DEFAULT)
  155. endif
  156. endif
  157. ifndef CPU_SOURCE
  158. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  159. endif
  160. ifndef CPU_TARGET
  161. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  162. endif
  163. ifndef OS_SOURCE
  164. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  165. endif
  166. ifndef OS_TARGET
  167. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  168. endif
  169. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  170. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  171. ifeq ($(CPU_TARGET),armeb)
  172. ARCH=arm
  173. override FPCOPT+=-Cb
  174. else
  175. ifeq ($(CPU_TARGET),armel)
  176. ARCH=arm
  177. override FPCOPT+=-CaEABI
  178. else
  179. ARCH=$(CPU_TARGET)
  180. endif
  181. endif
  182. ifeq ($(FULL_TARGET),arm-embedded)
  183. ifeq ($(SUBARCH),)
  184. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  185. endif
  186. override FPCOPT+=-Cp$(SUBARCH)
  187. endif
  188. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  189. TARGETSUFFIX=$(OS_TARGET)
  190. SOURCESUFFIX=$(OS_SOURCE)
  191. else
  192. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  193. TARGETSUFFIX=$(OS_TARGET)
  194. else
  195. TARGETSUFFIX=$(FULL_TARGET)
  196. endif
  197. SOURCESUFFIX=$(FULL_SOURCE)
  198. endif
  199. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  200. CROSSCOMPILE=1
  201. endif
  202. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  203. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  204. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  205. endif
  206. endif
  207. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  208. BSDhier=1
  209. endif
  210. ifeq ($(OS_TARGET),linux)
  211. linuxHier=1
  212. endif
  213. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  214. ifdef FPCDIR
  215. override FPCDIR:=$(subst \,/,$(FPCDIR))
  216. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  217. override FPCDIR=wrong
  218. endif
  219. else
  220. override FPCDIR=wrong
  221. endif
  222. ifdef DEFAULT_FPCDIR
  223. ifeq ($(FPCDIR),wrong)
  224. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  225. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  226. override FPCDIR=wrong
  227. endif
  228. endif
  229. endif
  230. ifeq ($(FPCDIR),wrong)
  231. ifdef inUnix
  232. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  233. ifeq ($(wildcard $(FPCDIR)/units),)
  234. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  235. endif
  236. else
  237. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  238. override FPCDIR:=$(FPCDIR)/..
  239. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  240. override FPCDIR:=$(FPCDIR)/..
  241. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  242. override FPCDIR:=$(BASEDIR)
  243. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  244. override FPCDIR=c:/pp
  245. endif
  246. endif
  247. endif
  248. endif
  249. endif
  250. ifndef CROSSBINDIR
  251. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  252. endif
  253. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  254. ifeq ($(OS_SOURCE),darwin)
  255. DARWIN2DARWIN=1
  256. endif
  257. endif
  258. ifndef BINUTILSPREFIX
  259. ifndef CROSSBINDIR
  260. ifdef CROSSCOMPILE
  261. ifndef DARWIN2DARWIN
  262. ifneq ($(CPU_TARGET),jvm)
  263. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  264. endif
  265. endif
  266. endif
  267. endif
  268. endif
  269. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  270. ifeq ($(UNITSDIR),)
  271. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  272. endif
  273. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
  274. ifndef FPCFPMAKE
  275. ifdef CROSSCOMPILE
  276. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  277. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  278. ifneq ($(FPCPROG),)
  279. FPCPROG:=$(firstword $(FPCPROG))
  280. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  281. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  282. FPCFPMAKE:=$(firstword $(FPCPROG))
  283. endif
  284. else
  285. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  286. endif
  287. else
  288. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  289. FPMAKE_SKIP_CONFIG=-n
  290. export FPCFPMAKE
  291. export FPMAKE_SKIP_CONFIG
  292. endif
  293. else
  294. FPMAKE_SKIP_CONFIG=-n
  295. FPCFPMAKE=$(FPC)
  296. endif
  297. endif
  298. override PACKAGE_NAME=rtl
  299. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  300. RTL=..
  301. INC=$(RTL)/inc
  302. COMMON=$(RTL)/common
  303. PROCINC=$(RTL)/$(CPU_TARGET)
  304. UNITPREFIX=rtl
  305. SYSTEMUNIT=system
  306. override [email protected]
  307. ifdef RELEASE
  308. override FPCOPT+=-Ur
  309. endif
  310. CPU_UNITS=
  311. SYSINIT_UNITS=
  312. ifeq ($(ARCH),arm)
  313. ifeq ($(SUBARCH),armv7m)
  314. CPU_UNITS=lm3fury lm3tempest stm32f103 lpc1768 # thumb2_bare
  315. endif
  316. ifeq ($(SUBARCH),armv4t)
  317. CPU_UNITS=lpc21x4 at91sam7x256 sc32442b
  318. endif
  319. ifeq ($(SUBARCH),armv4)
  320. CPU_UNITS=lpc21x4 at91sam7x256 sc32442b
  321. endif
  322. endif
  323. ifeq ($(ARCH),avr)
  324. CPU_UNITS=atmega128
  325. endif
  326. ifeq ($(ARCH),i386)
  327. CPU_UNITS=multiboot
  328. endif
  329. OBJPASDIR=$(RTL)/objpas
  330. GRAPHDIR=$(INC)/graph
  331. ifeq ($(FULL_TARGET),i386-linux)
  332. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  333. endif
  334. ifeq ($(FULL_TARGET),i386-go32v2)
  335. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  336. endif
  337. ifeq ($(FULL_TARGET),i386-win32)
  338. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  339. endif
  340. ifeq ($(FULL_TARGET),i386-os2)
  341. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  342. endif
  343. ifeq ($(FULL_TARGET),i386-freebsd)
  344. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  345. endif
  346. ifeq ($(FULL_TARGET),i386-beos)
  347. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  348. endif
  349. ifeq ($(FULL_TARGET),i386-haiku)
  350. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  351. endif
  352. ifeq ($(FULL_TARGET),i386-netbsd)
  353. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  354. endif
  355. ifeq ($(FULL_TARGET),i386-solaris)
  356. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  357. endif
  358. ifeq ($(FULL_TARGET),i386-qnx)
  359. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  360. endif
  361. ifeq ($(FULL_TARGET),i386-netware)
  362. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  363. endif
  364. ifeq ($(FULL_TARGET),i386-openbsd)
  365. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  366. endif
  367. ifeq ($(FULL_TARGET),i386-wdosx)
  368. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  369. endif
  370. ifeq ($(FULL_TARGET),i386-darwin)
  371. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  372. endif
  373. ifeq ($(FULL_TARGET),i386-emx)
  374. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  375. endif
  376. ifeq ($(FULL_TARGET),i386-watcom)
  377. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  378. endif
  379. ifeq ($(FULL_TARGET),i386-netwlibc)
  380. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  381. endif
  382. ifeq ($(FULL_TARGET),i386-wince)
  383. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  384. endif
  385. ifeq ($(FULL_TARGET),i386-embedded)
  386. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  387. endif
  388. ifeq ($(FULL_TARGET),i386-symbian)
  389. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  390. endif
  391. ifeq ($(FULL_TARGET),i386-nativent)
  392. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  393. endif
  394. ifeq ($(FULL_TARGET),i386-iphonesim)
  395. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  396. endif
  397. ifeq ($(FULL_TARGET),m68k-linux)
  398. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  399. endif
  400. ifeq ($(FULL_TARGET),m68k-freebsd)
  401. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  402. endif
  403. ifeq ($(FULL_TARGET),m68k-netbsd)
  404. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  405. endif
  406. ifeq ($(FULL_TARGET),m68k-amiga)
  407. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  408. endif
  409. ifeq ($(FULL_TARGET),m68k-atari)
  410. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  411. endif
  412. ifeq ($(FULL_TARGET),m68k-openbsd)
  413. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  414. endif
  415. ifeq ($(FULL_TARGET),m68k-palmos)
  416. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  417. endif
  418. ifeq ($(FULL_TARGET),m68k-embedded)
  419. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  420. endif
  421. ifeq ($(FULL_TARGET),powerpc-linux)
  422. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  423. endif
  424. ifeq ($(FULL_TARGET),powerpc-netbsd)
  425. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  426. endif
  427. ifeq ($(FULL_TARGET),powerpc-amiga)
  428. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  429. endif
  430. ifeq ($(FULL_TARGET),powerpc-macos)
  431. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  432. endif
  433. ifeq ($(FULL_TARGET),powerpc-darwin)
  434. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  435. endif
  436. ifeq ($(FULL_TARGET),powerpc-morphos)
  437. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  438. endif
  439. ifeq ($(FULL_TARGET),powerpc-embedded)
  440. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  441. endif
  442. ifeq ($(FULL_TARGET),powerpc-wii)
  443. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  444. endif
  445. ifeq ($(FULL_TARGET),powerpc-aix)
  446. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  447. endif
  448. ifeq ($(FULL_TARGET),sparc-linux)
  449. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  450. endif
  451. ifeq ($(FULL_TARGET),sparc-netbsd)
  452. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  453. endif
  454. ifeq ($(FULL_TARGET),sparc-solaris)
  455. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  456. endif
  457. ifeq ($(FULL_TARGET),sparc-embedded)
  458. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  459. endif
  460. ifeq ($(FULL_TARGET),x86_64-linux)
  461. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  462. endif
  463. ifeq ($(FULL_TARGET),x86_64-freebsd)
  464. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  465. endif
  466. ifeq ($(FULL_TARGET),x86_64-netbsd)
  467. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  468. endif
  469. ifeq ($(FULL_TARGET),x86_64-solaris)
  470. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  471. endif
  472. ifeq ($(FULL_TARGET),x86_64-openbsd)
  473. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  474. endif
  475. ifeq ($(FULL_TARGET),x86_64-darwin)
  476. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  477. endif
  478. ifeq ($(FULL_TARGET),x86_64-win64)
  479. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  480. endif
  481. ifeq ($(FULL_TARGET),x86_64-embedded)
  482. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  483. endif
  484. ifeq ($(FULL_TARGET),arm-linux)
  485. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  486. endif
  487. ifeq ($(FULL_TARGET),arm-palmos)
  488. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  489. endif
  490. ifeq ($(FULL_TARGET),arm-darwin)
  491. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  492. endif
  493. ifeq ($(FULL_TARGET),arm-wince)
  494. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  495. endif
  496. ifeq ($(FULL_TARGET),arm-gba)
  497. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  498. endif
  499. ifeq ($(FULL_TARGET),arm-nds)
  500. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  501. endif
  502. ifeq ($(FULL_TARGET),arm-embedded)
  503. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  504. endif
  505. ifeq ($(FULL_TARGET),arm-symbian)
  506. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  507. endif
  508. ifeq ($(FULL_TARGET),powerpc64-linux)
  509. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  510. endif
  511. ifeq ($(FULL_TARGET),powerpc64-darwin)
  512. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  513. endif
  514. ifeq ($(FULL_TARGET),powerpc64-embedded)
  515. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  516. endif
  517. ifeq ($(FULL_TARGET),powerpc64-aix)
  518. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  519. endif
  520. ifeq ($(FULL_TARGET),avr-embedded)
  521. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  522. endif
  523. ifeq ($(FULL_TARGET),armeb-linux)
  524. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  525. endif
  526. ifeq ($(FULL_TARGET),armeb-embedded)
  527. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  528. endif
  529. ifeq ($(FULL_TARGET),mips-linux)
  530. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  531. endif
  532. ifeq ($(FULL_TARGET),mipsel-linux)
  533. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  534. endif
  535. ifeq ($(FULL_TARGET),jvm-java)
  536. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  537. endif
  538. ifeq ($(FULL_TARGET),jvm-android)
  539. override TARGET_UNITS+=$(SYSTEMUNIT) $(CPU_UNITS) uuchar objpas heapmgr consoleio # macpas iso7185 strings
  540. endif
  541. override INSTALL_FPCPACKAGE=y
  542. ifeq ($(FULL_TARGET),i386-linux)
  543. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  544. endif
  545. ifeq ($(FULL_TARGET),i386-go32v2)
  546. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  547. endif
  548. ifeq ($(FULL_TARGET),i386-win32)
  549. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  550. endif
  551. ifeq ($(FULL_TARGET),i386-os2)
  552. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  553. endif
  554. ifeq ($(FULL_TARGET),i386-freebsd)
  555. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  556. endif
  557. ifeq ($(FULL_TARGET),i386-beos)
  558. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  559. endif
  560. ifeq ($(FULL_TARGET),i386-haiku)
  561. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  562. endif
  563. ifeq ($(FULL_TARGET),i386-netbsd)
  564. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  565. endif
  566. ifeq ($(FULL_TARGET),i386-solaris)
  567. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  568. endif
  569. ifeq ($(FULL_TARGET),i386-qnx)
  570. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  571. endif
  572. ifeq ($(FULL_TARGET),i386-netware)
  573. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  574. endif
  575. ifeq ($(FULL_TARGET),i386-openbsd)
  576. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  577. endif
  578. ifeq ($(FULL_TARGET),i386-wdosx)
  579. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  580. endif
  581. ifeq ($(FULL_TARGET),i386-darwin)
  582. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  583. endif
  584. ifeq ($(FULL_TARGET),i386-emx)
  585. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  586. endif
  587. ifeq ($(FULL_TARGET),i386-watcom)
  588. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  589. endif
  590. ifeq ($(FULL_TARGET),i386-netwlibc)
  591. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  592. endif
  593. ifeq ($(FULL_TARGET),i386-wince)
  594. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  595. endif
  596. ifeq ($(FULL_TARGET),i386-embedded)
  597. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  598. endif
  599. ifeq ($(FULL_TARGET),i386-symbian)
  600. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  601. endif
  602. ifeq ($(FULL_TARGET),i386-nativent)
  603. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  604. endif
  605. ifeq ($(FULL_TARGET),i386-iphonesim)
  606. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  607. endif
  608. ifeq ($(FULL_TARGET),m68k-linux)
  609. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  610. endif
  611. ifeq ($(FULL_TARGET),m68k-freebsd)
  612. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  613. endif
  614. ifeq ($(FULL_TARGET),m68k-netbsd)
  615. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  616. endif
  617. ifeq ($(FULL_TARGET),m68k-amiga)
  618. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  619. endif
  620. ifeq ($(FULL_TARGET),m68k-atari)
  621. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  622. endif
  623. ifeq ($(FULL_TARGET),m68k-openbsd)
  624. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  625. endif
  626. ifeq ($(FULL_TARGET),m68k-palmos)
  627. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  628. endif
  629. ifeq ($(FULL_TARGET),m68k-embedded)
  630. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  631. endif
  632. ifeq ($(FULL_TARGET),powerpc-linux)
  633. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  634. endif
  635. ifeq ($(FULL_TARGET),powerpc-netbsd)
  636. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  637. endif
  638. ifeq ($(FULL_TARGET),powerpc-amiga)
  639. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  640. endif
  641. ifeq ($(FULL_TARGET),powerpc-macos)
  642. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  643. endif
  644. ifeq ($(FULL_TARGET),powerpc-darwin)
  645. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  646. endif
  647. ifeq ($(FULL_TARGET),powerpc-morphos)
  648. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  649. endif
  650. ifeq ($(FULL_TARGET),powerpc-embedded)
  651. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  652. endif
  653. ifeq ($(FULL_TARGET),powerpc-wii)
  654. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  655. endif
  656. ifeq ($(FULL_TARGET),powerpc-aix)
  657. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  658. endif
  659. ifeq ($(FULL_TARGET),sparc-linux)
  660. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  661. endif
  662. ifeq ($(FULL_TARGET),sparc-netbsd)
  663. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  664. endif
  665. ifeq ($(FULL_TARGET),sparc-solaris)
  666. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  667. endif
  668. ifeq ($(FULL_TARGET),sparc-embedded)
  669. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  670. endif
  671. ifeq ($(FULL_TARGET),x86_64-linux)
  672. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  673. endif
  674. ifeq ($(FULL_TARGET),x86_64-freebsd)
  675. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  676. endif
  677. ifeq ($(FULL_TARGET),x86_64-netbsd)
  678. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  679. endif
  680. ifeq ($(FULL_TARGET),x86_64-solaris)
  681. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  682. endif
  683. ifeq ($(FULL_TARGET),x86_64-openbsd)
  684. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  685. endif
  686. ifeq ($(FULL_TARGET),x86_64-darwin)
  687. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  688. endif
  689. ifeq ($(FULL_TARGET),x86_64-win64)
  690. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  691. endif
  692. ifeq ($(FULL_TARGET),x86_64-embedded)
  693. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  694. endif
  695. ifeq ($(FULL_TARGET),arm-linux)
  696. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  697. endif
  698. ifeq ($(FULL_TARGET),arm-palmos)
  699. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  700. endif
  701. ifeq ($(FULL_TARGET),arm-darwin)
  702. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  703. endif
  704. ifeq ($(FULL_TARGET),arm-wince)
  705. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  706. endif
  707. ifeq ($(FULL_TARGET),arm-gba)
  708. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  709. endif
  710. ifeq ($(FULL_TARGET),arm-nds)
  711. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  712. endif
  713. ifeq ($(FULL_TARGET),arm-embedded)
  714. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  715. endif
  716. ifeq ($(FULL_TARGET),arm-symbian)
  717. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  718. endif
  719. ifeq ($(FULL_TARGET),powerpc64-linux)
  720. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  721. endif
  722. ifeq ($(FULL_TARGET),powerpc64-darwin)
  723. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  724. endif
  725. ifeq ($(FULL_TARGET),powerpc64-embedded)
  726. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  727. endif
  728. ifeq ($(FULL_TARGET),powerpc64-aix)
  729. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  730. endif
  731. ifeq ($(FULL_TARGET),avr-embedded)
  732. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  733. endif
  734. ifeq ($(FULL_TARGET),armeb-linux)
  735. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  736. endif
  737. ifeq ($(FULL_TARGET),armeb-embedded)
  738. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  739. endif
  740. ifeq ($(FULL_TARGET),mips-linux)
  741. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  742. endif
  743. ifeq ($(FULL_TARGET),mipsel-linux)
  744. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  745. endif
  746. ifeq ($(FULL_TARGET),jvm-java)
  747. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  748. endif
  749. ifeq ($(FULL_TARGET),jvm-android)
  750. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  751. endif
  752. ifeq ($(FULL_TARGET),i386-linux)
  753. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  754. endif
  755. ifeq ($(FULL_TARGET),i386-go32v2)
  756. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  757. endif
  758. ifeq ($(FULL_TARGET),i386-win32)
  759. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  760. endif
  761. ifeq ($(FULL_TARGET),i386-os2)
  762. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  763. endif
  764. ifeq ($(FULL_TARGET),i386-freebsd)
  765. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  766. endif
  767. ifeq ($(FULL_TARGET),i386-beos)
  768. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  769. endif
  770. ifeq ($(FULL_TARGET),i386-haiku)
  771. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  772. endif
  773. ifeq ($(FULL_TARGET),i386-netbsd)
  774. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  775. endif
  776. ifeq ($(FULL_TARGET),i386-solaris)
  777. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  778. endif
  779. ifeq ($(FULL_TARGET),i386-qnx)
  780. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  781. endif
  782. ifeq ($(FULL_TARGET),i386-netware)
  783. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  784. endif
  785. ifeq ($(FULL_TARGET),i386-openbsd)
  786. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  787. endif
  788. ifeq ($(FULL_TARGET),i386-wdosx)
  789. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  790. endif
  791. ifeq ($(FULL_TARGET),i386-darwin)
  792. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  793. endif
  794. ifeq ($(FULL_TARGET),i386-emx)
  795. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  796. endif
  797. ifeq ($(FULL_TARGET),i386-watcom)
  798. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  799. endif
  800. ifeq ($(FULL_TARGET),i386-netwlibc)
  801. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  802. endif
  803. ifeq ($(FULL_TARGET),i386-wince)
  804. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  805. endif
  806. ifeq ($(FULL_TARGET),i386-embedded)
  807. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  808. endif
  809. ifeq ($(FULL_TARGET),i386-symbian)
  810. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  811. endif
  812. ifeq ($(FULL_TARGET),i386-nativent)
  813. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  814. endif
  815. ifeq ($(FULL_TARGET),i386-iphonesim)
  816. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  817. endif
  818. ifeq ($(FULL_TARGET),m68k-linux)
  819. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  820. endif
  821. ifeq ($(FULL_TARGET),m68k-freebsd)
  822. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  823. endif
  824. ifeq ($(FULL_TARGET),m68k-netbsd)
  825. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  826. endif
  827. ifeq ($(FULL_TARGET),m68k-amiga)
  828. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  829. endif
  830. ifeq ($(FULL_TARGET),m68k-atari)
  831. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  832. endif
  833. ifeq ($(FULL_TARGET),m68k-openbsd)
  834. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  835. endif
  836. ifeq ($(FULL_TARGET),m68k-palmos)
  837. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  838. endif
  839. ifeq ($(FULL_TARGET),m68k-embedded)
  840. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  841. endif
  842. ifeq ($(FULL_TARGET),powerpc-linux)
  843. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  844. endif
  845. ifeq ($(FULL_TARGET),powerpc-netbsd)
  846. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  847. endif
  848. ifeq ($(FULL_TARGET),powerpc-amiga)
  849. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  850. endif
  851. ifeq ($(FULL_TARGET),powerpc-macos)
  852. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  853. endif
  854. ifeq ($(FULL_TARGET),powerpc-darwin)
  855. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  856. endif
  857. ifeq ($(FULL_TARGET),powerpc-morphos)
  858. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  859. endif
  860. ifeq ($(FULL_TARGET),powerpc-embedded)
  861. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  862. endif
  863. ifeq ($(FULL_TARGET),powerpc-wii)
  864. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  865. endif
  866. ifeq ($(FULL_TARGET),powerpc-aix)
  867. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  868. endif
  869. ifeq ($(FULL_TARGET),sparc-linux)
  870. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  871. endif
  872. ifeq ($(FULL_TARGET),sparc-netbsd)
  873. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  874. endif
  875. ifeq ($(FULL_TARGET),sparc-solaris)
  876. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  877. endif
  878. ifeq ($(FULL_TARGET),sparc-embedded)
  879. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  880. endif
  881. ifeq ($(FULL_TARGET),x86_64-linux)
  882. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  883. endif
  884. ifeq ($(FULL_TARGET),x86_64-freebsd)
  885. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  886. endif
  887. ifeq ($(FULL_TARGET),x86_64-netbsd)
  888. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  889. endif
  890. ifeq ($(FULL_TARGET),x86_64-solaris)
  891. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  892. endif
  893. ifeq ($(FULL_TARGET),x86_64-openbsd)
  894. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  895. endif
  896. ifeq ($(FULL_TARGET),x86_64-darwin)
  897. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  898. endif
  899. ifeq ($(FULL_TARGET),x86_64-win64)
  900. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  901. endif
  902. ifeq ($(FULL_TARGET),x86_64-embedded)
  903. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  904. endif
  905. ifeq ($(FULL_TARGET),arm-linux)
  906. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  907. endif
  908. ifeq ($(FULL_TARGET),arm-palmos)
  909. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  910. endif
  911. ifeq ($(FULL_TARGET),arm-darwin)
  912. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  913. endif
  914. ifeq ($(FULL_TARGET),arm-wince)
  915. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  916. endif
  917. ifeq ($(FULL_TARGET),arm-gba)
  918. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  919. endif
  920. ifeq ($(FULL_TARGET),arm-nds)
  921. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  922. endif
  923. ifeq ($(FULL_TARGET),arm-embedded)
  924. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  925. endif
  926. ifeq ($(FULL_TARGET),arm-symbian)
  927. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  928. endif
  929. ifeq ($(FULL_TARGET),powerpc64-linux)
  930. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  931. endif
  932. ifeq ($(FULL_TARGET),powerpc64-darwin)
  933. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  934. endif
  935. ifeq ($(FULL_TARGET),powerpc64-embedded)
  936. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  937. endif
  938. ifeq ($(FULL_TARGET),powerpc64-aix)
  939. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  940. endif
  941. ifeq ($(FULL_TARGET),avr-embedded)
  942. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  943. endif
  944. ifeq ($(FULL_TARGET),armeb-linux)
  945. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  946. endif
  947. ifeq ($(FULL_TARGET),armeb-embedded)
  948. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  949. endif
  950. ifeq ($(FULL_TARGET),mips-linux)
  951. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  952. endif
  953. ifeq ($(FULL_TARGET),mipsel-linux)
  954. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  955. endif
  956. ifeq ($(FULL_TARGET),jvm-java)
  957. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  958. endif
  959. ifeq ($(FULL_TARGET),jvm-android)
  960. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON) $(ARCH)
  961. endif
  962. ifdef REQUIRE_UNITSDIR
  963. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  964. endif
  965. ifdef REQUIRE_PACKAGESDIR
  966. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  967. endif
  968. ifdef ZIPINSTALL
  969. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  970. UNIXHier=1
  971. endif
  972. else
  973. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  974. UNIXHier=1
  975. endif
  976. endif
  977. ifndef INSTALL_PREFIX
  978. ifdef PREFIX
  979. INSTALL_PREFIX=$(PREFIX)
  980. endif
  981. endif
  982. ifndef INSTALL_PREFIX
  983. ifdef UNIXHier
  984. INSTALL_PREFIX=/usr/local
  985. else
  986. ifdef INSTALL_FPCPACKAGE
  987. INSTALL_BASEDIR:=/pp
  988. else
  989. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  990. endif
  991. endif
  992. endif
  993. export INSTALL_PREFIX
  994. ifdef INSTALL_FPCSUBDIR
  995. export INSTALL_FPCSUBDIR
  996. endif
  997. ifndef DIST_DESTDIR
  998. DIST_DESTDIR:=$(BASEDIR)
  999. endif
  1000. export DIST_DESTDIR
  1001. ifndef COMPILER_UNITTARGETDIR
  1002. ifdef PACKAGEDIR_MAIN
  1003. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1004. else
  1005. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1006. endif
  1007. endif
  1008. ifndef COMPILER_TARGETDIR
  1009. COMPILER_TARGETDIR=.
  1010. endif
  1011. ifndef INSTALL_BASEDIR
  1012. ifdef UNIXHier
  1013. ifdef INSTALL_FPCPACKAGE
  1014. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1015. else
  1016. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1017. endif
  1018. else
  1019. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1020. endif
  1021. endif
  1022. ifndef INSTALL_BINDIR
  1023. ifdef UNIXHier
  1024. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1025. else
  1026. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1027. ifdef INSTALL_FPCPACKAGE
  1028. ifdef CROSSCOMPILE
  1029. ifdef CROSSINSTALL
  1030. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1031. else
  1032. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1033. endif
  1034. else
  1035. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1036. endif
  1037. endif
  1038. endif
  1039. endif
  1040. ifndef INSTALL_UNITDIR
  1041. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1042. ifdef INSTALL_FPCPACKAGE
  1043. ifdef PACKAGE_NAME
  1044. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1045. endif
  1046. endif
  1047. endif
  1048. ifndef INSTALL_LIBDIR
  1049. ifdef UNIXHier
  1050. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1051. else
  1052. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1053. endif
  1054. endif
  1055. ifndef INSTALL_SOURCEDIR
  1056. ifdef UNIXHier
  1057. ifdef BSDhier
  1058. SRCPREFIXDIR=share/src
  1059. else
  1060. ifdef linuxHier
  1061. SRCPREFIXDIR=share/src
  1062. else
  1063. SRCPREFIXDIR=src
  1064. endif
  1065. endif
  1066. ifdef INSTALL_FPCPACKAGE
  1067. ifdef INSTALL_FPCSUBDIR
  1068. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1069. else
  1070. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1071. endif
  1072. else
  1073. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1074. endif
  1075. else
  1076. ifdef INSTALL_FPCPACKAGE
  1077. ifdef INSTALL_FPCSUBDIR
  1078. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1079. else
  1080. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1081. endif
  1082. else
  1083. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1084. endif
  1085. endif
  1086. endif
  1087. ifndef INSTALL_DOCDIR
  1088. ifdef UNIXHier
  1089. ifdef BSDhier
  1090. DOCPREFIXDIR=share/doc
  1091. else
  1092. ifdef linuxHier
  1093. DOCPREFIXDIR=share/doc
  1094. else
  1095. DOCPREFIXDIR=doc
  1096. endif
  1097. endif
  1098. ifdef INSTALL_FPCPACKAGE
  1099. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1100. else
  1101. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1102. endif
  1103. else
  1104. ifdef INSTALL_FPCPACKAGE
  1105. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1106. else
  1107. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1108. endif
  1109. endif
  1110. endif
  1111. ifndef INSTALL_EXAMPLEDIR
  1112. ifdef UNIXHier
  1113. ifdef INSTALL_FPCPACKAGE
  1114. ifdef BSDhier
  1115. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1116. else
  1117. ifdef linuxHier
  1118. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1119. else
  1120. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1121. endif
  1122. endif
  1123. else
  1124. ifdef BSDhier
  1125. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1126. else
  1127. ifdef linuxHier
  1128. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1129. else
  1130. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1131. endif
  1132. endif
  1133. endif
  1134. else
  1135. ifdef INSTALL_FPCPACKAGE
  1136. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1137. else
  1138. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1139. endif
  1140. endif
  1141. endif
  1142. ifndef INSTALL_DATADIR
  1143. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1144. endif
  1145. ifndef INSTALL_SHAREDDIR
  1146. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1147. endif
  1148. ifdef CROSSCOMPILE
  1149. ifndef CROSSBINDIR
  1150. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1151. ifeq ($(CROSSBINDIR),)
  1152. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1153. endif
  1154. endif
  1155. else
  1156. CROSSBINDIR=
  1157. endif
  1158. BATCHEXT=.bat
  1159. LOADEREXT=.as
  1160. EXEEXT=.exe
  1161. PPLEXT=.ppl
  1162. PPUEXT=.ppu
  1163. OEXT=.o
  1164. ASMEXT=.s
  1165. SMARTEXT=.sl
  1166. STATICLIBEXT=.a
  1167. SHAREDLIBEXT=.so
  1168. SHAREDLIBPREFIX=libfp
  1169. STATICLIBPREFIX=libp
  1170. IMPORTLIBPREFIX=libimp
  1171. RSTEXT=.rst
  1172. EXEDBGEXT=.dbg
  1173. ifeq ($(OS_TARGET),go32v1)
  1174. STATICLIBPREFIX=
  1175. SHORTSUFFIX=v1
  1176. endif
  1177. ifeq ($(OS_TARGET),go32v2)
  1178. STATICLIBPREFIX=
  1179. SHORTSUFFIX=dos
  1180. IMPORTLIBPREFIX=
  1181. endif
  1182. ifeq ($(OS_TARGET),watcom)
  1183. STATICLIBPREFIX=
  1184. OEXT=.obj
  1185. ASMEXT=.asm
  1186. SHAREDLIBEXT=.dll
  1187. SHORTSUFFIX=wat
  1188. IMPORTLIBPREFIX=
  1189. endif
  1190. ifeq ($(OS_TARGET),linux)
  1191. BATCHEXT=.sh
  1192. EXEEXT=
  1193. HASSHAREDLIB=1
  1194. SHORTSUFFIX=lnx
  1195. endif
  1196. ifeq ($(OS_TARGET),freebsd)
  1197. BATCHEXT=.sh
  1198. EXEEXT=
  1199. HASSHAREDLIB=1
  1200. SHORTSUFFIX=fbs
  1201. endif
  1202. ifeq ($(OS_TARGET),netbsd)
  1203. BATCHEXT=.sh
  1204. EXEEXT=
  1205. HASSHAREDLIB=1
  1206. SHORTSUFFIX=nbs
  1207. endif
  1208. ifeq ($(OS_TARGET),openbsd)
  1209. BATCHEXT=.sh
  1210. EXEEXT=
  1211. HASSHAREDLIB=1
  1212. SHORTSUFFIX=obs
  1213. endif
  1214. ifeq ($(OS_TARGET),win32)
  1215. SHAREDLIBEXT=.dll
  1216. SHORTSUFFIX=w32
  1217. endif
  1218. ifeq ($(OS_TARGET),os2)
  1219. BATCHEXT=.cmd
  1220. AOUTEXT=.out
  1221. STATICLIBPREFIX=
  1222. SHAREDLIBEXT=.dll
  1223. SHORTSUFFIX=os2
  1224. ECHO=echo
  1225. IMPORTLIBPREFIX=
  1226. endif
  1227. ifeq ($(OS_TARGET),emx)
  1228. BATCHEXT=.cmd
  1229. AOUTEXT=.out
  1230. STATICLIBPREFIX=
  1231. SHAREDLIBEXT=.dll
  1232. SHORTSUFFIX=emx
  1233. ECHO=echo
  1234. IMPORTLIBPREFIX=
  1235. endif
  1236. ifeq ($(OS_TARGET),amiga)
  1237. EXEEXT=
  1238. SHAREDLIBEXT=.library
  1239. SHORTSUFFIX=amg
  1240. endif
  1241. ifeq ($(OS_TARGET),morphos)
  1242. EXEEXT=
  1243. SHAREDLIBEXT=.library
  1244. SHORTSUFFIX=mos
  1245. endif
  1246. ifeq ($(OS_TARGET),atari)
  1247. EXEEXT=.ttp
  1248. SHORTSUFFIX=ata
  1249. endif
  1250. ifeq ($(OS_TARGET),beos)
  1251. BATCHEXT=.sh
  1252. EXEEXT=
  1253. SHORTSUFFIX=be
  1254. endif
  1255. ifeq ($(OS_TARGET),haiku)
  1256. BATCHEXT=.sh
  1257. EXEEXT=
  1258. SHORTSUFFIX=hai
  1259. endif
  1260. ifeq ($(OS_TARGET),solaris)
  1261. BATCHEXT=.sh
  1262. EXEEXT=
  1263. SHORTSUFFIX=sun
  1264. endif
  1265. ifeq ($(OS_TARGET),qnx)
  1266. BATCHEXT=.sh
  1267. EXEEXT=
  1268. SHORTSUFFIX=qnx
  1269. endif
  1270. ifeq ($(OS_TARGET),netware)
  1271. EXEEXT=.nlm
  1272. STATICLIBPREFIX=
  1273. SHORTSUFFIX=nw
  1274. IMPORTLIBPREFIX=imp
  1275. endif
  1276. ifeq ($(OS_TARGET),netwlibc)
  1277. EXEEXT=.nlm
  1278. STATICLIBPREFIX=
  1279. SHORTSUFFIX=nwl
  1280. IMPORTLIBPREFIX=imp
  1281. endif
  1282. ifeq ($(OS_TARGET),macos)
  1283. BATCHEXT=
  1284. EXEEXT=
  1285. DEBUGSYMEXT=.xcoff
  1286. SHORTSUFFIX=mac
  1287. IMPORTLIBPREFIX=imp
  1288. endif
  1289. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  1290. BATCHEXT=.sh
  1291. EXEEXT=
  1292. HASSHAREDLIB=1
  1293. SHORTSUFFIX=dwn
  1294. EXEDBGEXT=.dSYM
  1295. endif
  1296. ifeq ($(OS_TARGET),gba)
  1297. EXEEXT=.gba
  1298. SHAREDLIBEXT=.so
  1299. SHORTSUFFIX=gba
  1300. endif
  1301. ifeq ($(OS_TARGET),symbian)
  1302. SHAREDLIBEXT=.dll
  1303. SHORTSUFFIX=symbian
  1304. endif
  1305. ifeq ($(OS_TARGET),NativeNT)
  1306. SHAREDLIBEXT=.dll
  1307. SHORTSUFFIX=nativent
  1308. endif
  1309. ifeq ($(OS_TARGET),wii)
  1310. EXEEXT=.dol
  1311. SHAREDLIBEXT=.so
  1312. SHORTSUFFIX=wii
  1313. endif
  1314. ifeq ($(OS_TARGET),aix)
  1315. BATCHEXT=.sh
  1316. EXEEXT=
  1317. SHORTSUFFIX=aix
  1318. endif
  1319. ifeq ($(OS_TARGET),java)
  1320. OEXT=.class
  1321. ASMEXT=.j
  1322. SHAREDLIBEXT=.jar
  1323. SHORTSUFFIX=java
  1324. endif
  1325. ifeq ($(OS_TARGET),android)
  1326. OEXT=.class
  1327. ASMEXT=.j
  1328. SHAREDLIBEXT=.jar
  1329. SHORTSUFFIX=android
  1330. endif
  1331. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1332. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1333. ZIPSUFFIX=$(SHORTSUFFIX)
  1334. ZIPCROSSPREFIX=
  1335. ZIPSOURCESUFFIX=src
  1336. ZIPEXAMPLESUFFIX=exm
  1337. else
  1338. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1339. ZIPSOURCESUFFIX=.source
  1340. ZIPEXAMPLESUFFIX=.examples
  1341. ifdef CROSSCOMPILE
  1342. ZIPSUFFIX=.$(SOURCESUFFIX)
  1343. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  1344. else
  1345. ZIPSUFFIX=.$(TARGETSUFFIX)
  1346. ZIPCROSSPREFIX=
  1347. endif
  1348. endif
  1349. ifndef ECHO
  1350. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  1351. ifeq ($(ECHO),)
  1352. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  1353. ifeq ($(ECHO),)
  1354. ECHO= __missing_command_ECHO
  1355. else
  1356. ECHO:=$(firstword $(ECHO))
  1357. endif
  1358. else
  1359. ECHO:=$(firstword $(ECHO))
  1360. endif
  1361. endif
  1362. export ECHO
  1363. ifndef DATE
  1364. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  1365. ifeq ($(DATE),)
  1366. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  1367. ifeq ($(DATE),)
  1368. DATE= __missing_command_DATE
  1369. else
  1370. DATE:=$(firstword $(DATE))
  1371. endif
  1372. else
  1373. DATE:=$(firstword $(DATE))
  1374. endif
  1375. endif
  1376. export DATE
  1377. ifndef GINSTALL
  1378. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  1379. ifeq ($(GINSTALL),)
  1380. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  1381. ifeq ($(GINSTALL),)
  1382. GINSTALL= __missing_command_GINSTALL
  1383. else
  1384. GINSTALL:=$(firstword $(GINSTALL))
  1385. endif
  1386. else
  1387. GINSTALL:=$(firstword $(GINSTALL))
  1388. endif
  1389. endif
  1390. export GINSTALL
  1391. ifndef CPPROG
  1392. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  1393. ifeq ($(CPPROG),)
  1394. CPPROG= __missing_command_CPPROG
  1395. else
  1396. CPPROG:=$(firstword $(CPPROG))
  1397. endif
  1398. endif
  1399. export CPPROG
  1400. ifndef RMPROG
  1401. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  1402. ifeq ($(RMPROG),)
  1403. RMPROG= __missing_command_RMPROG
  1404. else
  1405. RMPROG:=$(firstword $(RMPROG))
  1406. endif
  1407. endif
  1408. export RMPROG
  1409. ifndef MVPROG
  1410. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  1411. ifeq ($(MVPROG),)
  1412. MVPROG= __missing_command_MVPROG
  1413. else
  1414. MVPROG:=$(firstword $(MVPROG))
  1415. endif
  1416. endif
  1417. export MVPROG
  1418. ifndef MKDIRPROG
  1419. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1420. ifeq ($(MKDIRPROG),)
  1421. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1422. ifeq ($(MKDIRPROG),)
  1423. MKDIRPROG= __missing_command_MKDIRPROG
  1424. else
  1425. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1426. endif
  1427. else
  1428. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1429. endif
  1430. endif
  1431. export MKDIRPROG
  1432. ifndef ECHOREDIR
  1433. ifndef inUnix
  1434. ECHOREDIR=echo
  1435. else
  1436. ECHOREDIR=$(ECHO)
  1437. endif
  1438. endif
  1439. ifndef COPY
  1440. COPY:=$(CPPROG) -fp
  1441. endif
  1442. ifndef COPYTREE
  1443. COPYTREE:=$(CPPROG) -Rfp
  1444. endif
  1445. ifndef MKDIRTREE
  1446. MKDIRTREE:=$(MKDIRPROG) -p
  1447. endif
  1448. ifndef MOVE
  1449. MOVE:=$(MVPROG) -f
  1450. endif
  1451. ifndef DEL
  1452. DEL:=$(RMPROG) -f
  1453. endif
  1454. ifndef DELTREE
  1455. DELTREE:=$(RMPROG) -rf
  1456. endif
  1457. ifndef INSTALL
  1458. ifdef inUnix
  1459. INSTALL:=$(GINSTALL) -c -m 644
  1460. else
  1461. INSTALL:=$(COPY)
  1462. endif
  1463. endif
  1464. ifndef INSTALLEXE
  1465. ifdef inUnix
  1466. INSTALLEXE:=$(GINSTALL) -c -m 755
  1467. else
  1468. INSTALLEXE:=$(COPY)
  1469. endif
  1470. endif
  1471. ifndef MKDIR
  1472. MKDIR:=$(GINSTALL) -m 755 -d
  1473. endif
  1474. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  1475. ifndef PPUMOVE
  1476. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  1477. ifeq ($(PPUMOVE),)
  1478. PPUMOVE= __missing_command_PPUMOVE
  1479. else
  1480. PPUMOVE:=$(firstword $(PPUMOVE))
  1481. endif
  1482. endif
  1483. export PPUMOVE
  1484. ifndef FPCMAKE
  1485. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  1486. ifeq ($(FPCMAKE),)
  1487. FPCMAKE= __missing_command_FPCMAKE
  1488. else
  1489. FPCMAKE:=$(firstword $(FPCMAKE))
  1490. endif
  1491. endif
  1492. export FPCMAKE
  1493. ifndef ZIPPROG
  1494. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  1495. ifeq ($(ZIPPROG),)
  1496. ZIPPROG= __missing_command_ZIPPROG
  1497. else
  1498. ZIPPROG:=$(firstword $(ZIPPROG))
  1499. endif
  1500. endif
  1501. export ZIPPROG
  1502. ifndef TARPROG
  1503. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  1504. ifeq ($(TARPROG),)
  1505. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  1506. ifeq ($(TARPROG),)
  1507. TARPROG= __missing_command_TARPROG
  1508. else
  1509. TARPROG:=$(firstword $(TARPROG))
  1510. endif
  1511. else
  1512. TARPROG:=$(firstword $(TARPROG))
  1513. endif
  1514. endif
  1515. export TARPROG
  1516. ASNAME=$(BINUTILSPREFIX)as
  1517. LDNAME=$(BINUTILSPREFIX)ld
  1518. ARNAME=$(BINUTILSPREFIX)ar
  1519. RCNAME=$(BINUTILSPREFIX)rc
  1520. ifndef ASPROG
  1521. ifdef CROSSBINDIR
  1522. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  1523. else
  1524. ASPROG=$(ASNAME)
  1525. endif
  1526. endif
  1527. ifndef LDPROG
  1528. ifdef CROSSBINDIR
  1529. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  1530. else
  1531. LDPROG=$(LDNAME)
  1532. endif
  1533. endif
  1534. ifndef RCPROG
  1535. ifdef CROSSBINDIR
  1536. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  1537. else
  1538. RCPROG=$(RCNAME)
  1539. endif
  1540. endif
  1541. ifndef ARPROG
  1542. ifdef CROSSBINDIR
  1543. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  1544. else
  1545. ARPROG=$(ARNAME)
  1546. endif
  1547. endif
  1548. AS=$(ASPROG)
  1549. LD=$(LDPROG)
  1550. RC=$(RCPROG)
  1551. AR=$(ARPROG)
  1552. PPAS=ppas$(SRCBATCHEXT)
  1553. ifdef inUnix
  1554. LDCONFIG=ldconfig
  1555. else
  1556. LDCONFIG=
  1557. endif
  1558. ifdef DATE
  1559. DATESTR:=$(shell $(DATE) +%Y%m%d)
  1560. else
  1561. DATESTR=
  1562. endif
  1563. ZIPOPT=-9
  1564. ZIPEXT=.zip
  1565. ifeq ($(USETAR),bz2)
  1566. TAROPT=vj
  1567. TAREXT=.tar.bz2
  1568. else
  1569. TAROPT=vz
  1570. TAREXT=.tar.gz
  1571. endif
  1572. ifndef NOCPUDEF
  1573. override FPCOPTDEF=$(ARCH)
  1574. endif
  1575. ifneq ($(OS_TARGET),$(OS_SOURCE))
  1576. override FPCOPT+=-T$(OS_TARGET)
  1577. endif
  1578. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  1579. override FPCOPT+=-P$(ARCH)
  1580. endif
  1581. ifeq ($(OS_SOURCE),openbsd)
  1582. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  1583. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  1584. endif
  1585. ifndef CROSSBOOTSTRAP
  1586. ifneq ($(BINUTILSPREFIX),)
  1587. override FPCOPT+=-XP$(BINUTILSPREFIX)
  1588. endif
  1589. ifneq ($(BINUTILSPREFIX),)
  1590. override FPCOPT+=-Xr$(RLINKPATH)
  1591. endif
  1592. endif
  1593. ifndef CROSSCOMPILE
  1594. ifneq ($(BINUTILSPREFIX),)
  1595. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  1596. endif
  1597. endif
  1598. ifdef UNITDIR
  1599. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  1600. endif
  1601. ifdef LIBDIR
  1602. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  1603. endif
  1604. ifdef OBJDIR
  1605. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  1606. endif
  1607. ifdef INCDIR
  1608. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  1609. endif
  1610. ifdef LINKSMART
  1611. override FPCOPT+=-XX
  1612. endif
  1613. ifdef CREATESMART
  1614. override FPCOPT+=-CX
  1615. endif
  1616. ifdef DEBUG
  1617. override FPCOPT+=-gl
  1618. override FPCOPTDEF+=DEBUG
  1619. endif
  1620. ifdef RELEASE
  1621. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  1622. ifeq ($(CPU_TARGET),i386)
  1623. FPCCPUOPT:=-OG2p3
  1624. endif
  1625. ifeq ($(CPU_TARGET),powerpc)
  1626. FPCCPUOPT:=-O1r
  1627. endif
  1628. else
  1629. FPCCPUOPT:=-O2
  1630. endif
  1631. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  1632. override FPCOPTDEF+=RELEASE
  1633. endif
  1634. ifdef STRIP
  1635. override FPCOPT+=-Xs
  1636. endif
  1637. ifdef OPTIMIZE
  1638. override FPCOPT+=-O2
  1639. endif
  1640. ifdef VERBOSE
  1641. override FPCOPT+=-vwni
  1642. endif
  1643. ifdef COMPILER_OPTIONS
  1644. override FPCOPT+=$(COMPILER_OPTIONS)
  1645. endif
  1646. ifdef COMPILER_UNITDIR
  1647. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  1648. endif
  1649. ifdef COMPILER_LIBRARYDIR
  1650. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  1651. endif
  1652. ifdef COMPILER_OBJECTDIR
  1653. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  1654. endif
  1655. ifdef COMPILER_INCLUDEDIR
  1656. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  1657. endif
  1658. ifdef CROSSBINDIR
  1659. override FPCOPT+=-FD$(CROSSBINDIR)
  1660. endif
  1661. ifdef COMPILER_TARGETDIR
  1662. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  1663. ifeq ($(COMPILER_TARGETDIR),.)
  1664. override TARGETDIRPREFIX=
  1665. else
  1666. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  1667. endif
  1668. endif
  1669. ifdef COMPILER_UNITTARGETDIR
  1670. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  1671. ifeq ($(COMPILER_UNITTARGETDIR),.)
  1672. override UNITTARGETDIRPREFIX=
  1673. else
  1674. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  1675. endif
  1676. else
  1677. ifdef COMPILER_TARGETDIR
  1678. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  1679. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  1680. endif
  1681. endif
  1682. ifdef CREATESHARED
  1683. override FPCOPT+=-Cg
  1684. ifeq ($(CPU_TARGET),i386)
  1685. override FPCOPT+=-Aas
  1686. endif
  1687. endif
  1688. ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
  1689. ifneq ($(findstring $(OS_TARGET),freebsd openbsd netbsd linux solaris),)
  1690. ifeq ($(CPU_TARGET),x86_64)
  1691. override FPCOPT+=-Cg
  1692. endif
  1693. endif
  1694. endif
  1695. ifdef LINKSHARED
  1696. endif
  1697. ifdef OPT
  1698. override FPCOPT+=$(OPT)
  1699. endif
  1700. ifdef FPCOPTDEF
  1701. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  1702. endif
  1703. ifdef CFGFILE
  1704. override FPCOPT+=@$(CFGFILE)
  1705. endif
  1706. ifdef USEENV
  1707. override FPCEXTCMD:=$(FPCOPT)
  1708. override FPCOPT:=!FPCEXTCMD
  1709. export FPCEXTCMD
  1710. endif
  1711. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  1712. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  1713. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  1714. override ACROSSCOMPILE=1
  1715. endif
  1716. ifdef ACROSSCOMPILE
  1717. override FPCOPT+=$(CROSSOPT)
  1718. endif
  1719. override COMPILER:=$(FPC) $(FPCOPT)
  1720. ifeq (,$(findstring -s ,$(COMPILER)))
  1721. EXECPPAS=
  1722. else
  1723. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  1724. ifdef RUNBATCH
  1725. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  1726. else
  1727. EXECPPAS:=@$(PPAS)
  1728. endif
  1729. endif
  1730. endif
  1731. .PHONY: fpc_units
  1732. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  1733. override ALLTARGET+=fpc_units
  1734. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  1735. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  1736. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  1737. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  1738. endif
  1739. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  1740. ifdef TARGET_RSTS
  1741. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  1742. override CLEANRSTFILES+=$(RSTFILES)
  1743. endif
  1744. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  1745. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  1746. @$(ECHOREDIR) Compiled > $(FPCMADE)
  1747. fpc_all: $(FPCMADE)
  1748. fpc_smart:
  1749. $(MAKE) all LINKSMART=1 CREATESMART=1
  1750. fpc_debug:
  1751. $(MAKE) all DEBUG=1
  1752. fpc_release:
  1753. $(MAKE) all RELEASE=1
  1754. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  1755. $(COMPILER_UNITTARGETDIR):
  1756. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  1757. $(COMPILER_TARGETDIR):
  1758. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  1759. %$(PPUEXT): %.pp
  1760. $(COMPILER) $<
  1761. $(EXECPPAS)
  1762. %$(PPUEXT): %.pas
  1763. $(COMPILER) $<
  1764. $(EXECPPAS)
  1765. %$(EXEEXT): %.pp
  1766. $(COMPILER) $<
  1767. $(EXECPPAS)
  1768. %$(EXEEXT): %.pas
  1769. $(COMPILER) $<
  1770. $(EXECPPAS)
  1771. %$(EXEEXT): %.lpr
  1772. $(COMPILER) $<
  1773. $(EXECPPAS)
  1774. %$(EXEEXT): %.dpr
  1775. $(COMPILER) $<
  1776. $(EXECPPAS)
  1777. %.res: %.rc
  1778. windres -i $< -o $@
  1779. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1780. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1781. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1782. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  1783. vpath %.inc $(COMPILER_INCLUDEDIR)
  1784. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  1785. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  1786. .PHONY: fpc_shared
  1787. override INSTALLTARGET+=fpc_shared_install
  1788. ifndef SHARED_LIBVERSION
  1789. SHARED_LIBVERSION=$(FPC_VERSION)
  1790. endif
  1791. ifndef SHARED_LIBNAME
  1792. SHARED_LIBNAME=$(PACKAGE_NAME)
  1793. endif
  1794. ifndef SHARED_FULLNAME
  1795. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  1796. endif
  1797. ifndef SHARED_LIBUNITS
  1798. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  1799. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  1800. endif
  1801. fpc_shared:
  1802. ifdef HASSHAREDLIB
  1803. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  1804. ifneq ($(SHARED_BUILD),n)
  1805. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
  1806. endif
  1807. else
  1808. @$(ECHO) Shared Libraries not supported
  1809. endif
  1810. fpc_shared_install:
  1811. ifneq ($(SHARED_BUILD),n)
  1812. ifneq ($(SHARED_LIBUNITS),)
  1813. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  1814. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  1815. endif
  1816. endif
  1817. endif
  1818. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  1819. ifdef INSTALL_UNITS
  1820. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  1821. endif
  1822. ifdef INSTALL_BUILDUNIT
  1823. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  1824. endif
  1825. ifdef INSTALLPPUFILES
  1826. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  1827. ifneq ($(UNITTARGETDIRPREFIX),)
  1828. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
  1829. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
  1830. endif
  1831. override INSTALL_CREATEPACKAGEFPC=1
  1832. endif
  1833. ifdef INSTALLEXEFILES
  1834. ifneq ($(TARGETDIRPREFIX),)
  1835. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  1836. endif
  1837. endif
  1838. fpc_install: all $(INSTALLTARGET)
  1839. ifdef INSTALLEXEFILES
  1840. $(MKDIR) $(INSTALL_BINDIR)
  1841. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  1842. endif
  1843. ifdef INSTALL_CREATEPACKAGEFPC
  1844. ifdef FPCMAKE
  1845. ifdef PACKAGE_VERSION
  1846. ifneq ($(wildcard Makefile.fpc),)
  1847. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  1848. $(MKDIR) $(INSTALL_UNITDIR)
  1849. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  1850. endif
  1851. endif
  1852. endif
  1853. endif
  1854. ifdef INSTALLPPUFILES
  1855. $(MKDIR) $(INSTALL_UNITDIR)
  1856. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  1857. ifneq ($(INSTALLPPULINKFILES),)
  1858. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  1859. endif
  1860. ifneq ($(wildcard $(LIB_FULLNAME)),)
  1861. $(MKDIR) $(INSTALL_LIBDIR)
  1862. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  1863. ifdef inUnix
  1864. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  1865. endif
  1866. endif
  1867. endif
  1868. ifdef INSTALL_FILES
  1869. $(MKDIR) $(INSTALL_DATADIR)
  1870. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  1871. endif
  1872. fpc_sourceinstall: distclean
  1873. $(MKDIR) $(INSTALL_SOURCEDIR)
  1874. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  1875. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  1876. ifdef HASEXAMPLES
  1877. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  1878. endif
  1879. ifdef EXAMPLESOURCEFILES
  1880. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  1881. endif
  1882. ifdef TARGET_EXAMPLEDIRS
  1883. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  1884. endif
  1885. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  1886. ifdef EXEFILES
  1887. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  1888. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  1889. endif
  1890. ifdef CLEAN_PROGRAMS
  1891. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  1892. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  1893. endif
  1894. ifdef CLEAN_UNITS
  1895. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  1896. endif
  1897. ifdef CLEANPPUFILES
  1898. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  1899. ifdef DEBUGSYMEXT
  1900. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  1901. endif
  1902. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  1903. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  1904. endif
  1905. fpc_clean: $(CLEANTARGET)
  1906. ifdef CLEANEXEFILES
  1907. -$(DEL) $(CLEANEXEFILES)
  1908. endif
  1909. ifdef CLEANEXEDBGFILES
  1910. -$(DELTREE) $(CLEANEXEDBGFILES)
  1911. endif
  1912. ifdef CLEANPPUFILES
  1913. -$(DEL) $(CLEANPPUFILES)
  1914. endif
  1915. ifneq ($(CLEANPPULINKFILES),)
  1916. -$(DEL) $(CLEANPPULINKFILES)
  1917. endif
  1918. ifdef CLEANRSTFILES
  1919. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  1920. endif
  1921. ifdef CLEAN_FILES
  1922. -$(DEL) $(CLEAN_FILES)
  1923. endif
  1924. ifdef LIB_NAME
  1925. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  1926. endif
  1927. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  1928. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
  1929. fpc_cleanall: $(CLEANTARGET)
  1930. ifdef CLEANEXEFILES
  1931. -$(DEL) $(CLEANEXEFILES)
  1932. endif
  1933. ifdef COMPILER_UNITTARGETDIR
  1934. ifdef CLEANPPUFILES
  1935. -$(DEL) $(CLEANPPUFILES)
  1936. endif
  1937. ifneq ($(CLEANPPULINKFILES),)
  1938. -$(DEL) $(CLEANPPULINKFILES)
  1939. endif
  1940. ifdef CLEANRSTFILES
  1941. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  1942. endif
  1943. endif
  1944. ifdef CLEAN_FILES
  1945. -$(DEL) $(CLEAN_FILES)
  1946. endif
  1947. -$(DELTREE) units
  1948. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  1949. ifneq ($(PPUEXT),.ppu)
  1950. -$(DEL) *.o *.ppu *.a
  1951. endif
  1952. -$(DELTREE) *$(SMARTEXT)
  1953. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  1954. -$(DEL) *_ppas$(BATCHEXT)
  1955. ifdef AOUTEXT
  1956. -$(DEL) *$(AOUTEXT)
  1957. endif
  1958. ifdef DEBUGSYMEXT
  1959. -$(DEL) *$(DEBUGSYMEXT)
  1960. endif
  1961. fpc_distclean: cleanall
  1962. .PHONY: fpc_baseinfo
  1963. override INFORULES+=fpc_baseinfo
  1964. fpc_baseinfo:
  1965. @$(ECHO)
  1966. @$(ECHO) == Package info ==
  1967. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  1968. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  1969. @$(ECHO)
  1970. @$(ECHO) == Configuration info ==
  1971. @$(ECHO)
  1972. @$(ECHO) FPC.......... $(FPC)
  1973. @$(ECHO) FPC Version.. $(FPC_VERSION)
  1974. @$(ECHO) Source CPU... $(CPU_SOURCE)
  1975. @$(ECHO) Target CPU... $(CPU_TARGET)
  1976. @$(ECHO) Source OS.... $(OS_SOURCE)
  1977. @$(ECHO) Target OS.... $(OS_TARGET)
  1978. @$(ECHO) Full Source.. $(FULL_SOURCE)
  1979. @$(ECHO) Full Target.. $(FULL_TARGET)
  1980. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  1981. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  1982. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  1983. @$(ECHO)
  1984. @$(ECHO) == Directory info ==
  1985. @$(ECHO)
  1986. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  1987. @$(ECHO)
  1988. @$(ECHO) Basedir......... $(BASEDIR)
  1989. @$(ECHO) FPCDir.......... $(FPCDIR)
  1990. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  1991. @$(ECHO) UnitsDir........ $(UNITSDIR)
  1992. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  1993. @$(ECHO)
  1994. @$(ECHO) GCC library..... $(GCCLIBDIR)
  1995. @$(ECHO) Other library... $(OTHERLIBDIR)
  1996. @$(ECHO)
  1997. @$(ECHO) == Tools info ==
  1998. @$(ECHO)
  1999. @$(ECHO) As........ $(AS)
  2000. @$(ECHO) Ld........ $(LD)
  2001. @$(ECHO) Ar........ $(AR)
  2002. @$(ECHO) Rc........ $(RC)
  2003. @$(ECHO)
  2004. @$(ECHO) Mv........ $(MVPROG)
  2005. @$(ECHO) Cp........ $(CPPROG)
  2006. @$(ECHO) Rm........ $(RMPROG)
  2007. @$(ECHO) GInstall.. $(GINSTALL)
  2008. @$(ECHO) Echo...... $(ECHO)
  2009. @$(ECHO) Shell..... $(SHELL)
  2010. @$(ECHO) Date...... $(DATE)
  2011. @$(ECHO) FPCMake... $(FPCMAKE)
  2012. @$(ECHO) PPUMove... $(PPUMOVE)
  2013. @$(ECHO) Zip....... $(ZIPPROG)
  2014. @$(ECHO)
  2015. @$(ECHO) == Object info ==
  2016. @$(ECHO)
  2017. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  2018. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  2019. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  2020. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  2021. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  2022. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  2023. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  2024. @$(ECHO)
  2025. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  2026. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  2027. @$(ECHO)
  2028. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  2029. @$(ECHO) Install Files....... $(INSTALL_FILES)
  2030. @$(ECHO)
  2031. @$(ECHO) == Install info ==
  2032. @$(ECHO)
  2033. @$(ECHO) DateStr.............. $(DATESTR)
  2034. @$(ECHO) ZipName.............. $(ZIPNAME)
  2035. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  2036. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  2037. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  2038. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  2039. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  2040. @$(ECHO)
  2041. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  2042. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  2043. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  2044. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  2045. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  2046. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  2047. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  2048. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  2049. @$(ECHO)
  2050. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  2051. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  2052. @$(ECHO)
  2053. .PHONY: fpc_info
  2054. fpc_info: $(INFORULES)
  2055. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  2056. fpc_makefile_dirs
  2057. fpc_makefile:
  2058. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  2059. fpc_makefile_sub1:
  2060. ifdef TARGET_DIRS
  2061. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  2062. endif
  2063. ifdef TARGET_EXAMPLEDIRS
  2064. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  2065. endif
  2066. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  2067. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  2068. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  2069. all: fpc_all
  2070. debug: fpc_debug
  2071. smart: fpc_smart
  2072. release: fpc_release
  2073. units: fpc_units
  2074. examples:
  2075. shared: fpc_shared
  2076. install: fpc_install
  2077. sourceinstall: fpc_sourceinstall
  2078. exampleinstall: fpc_exampleinstall
  2079. distinstall:
  2080. zipinstall:
  2081. zipsourceinstall:
  2082. zipexampleinstall:
  2083. zipdistinstall:
  2084. clean: fpc_clean
  2085. distclean: fpc_distclean
  2086. cleanall: fpc_cleanall
  2087. info: fpc_info
  2088. makefiles: fpc_makefiles
  2089. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  2090. ifneq ($(wildcard fpcmake.loc),)
  2091. include fpcmake.loc
  2092. endif
  2093. .NOTPARALLEL:
  2094. include $(INC)/makefile.inc
  2095. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  2096. include $(PROCINC)/makefile.cpu
  2097. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  2098. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  2099. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  2100. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  2101. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  2102. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  2103. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  2104. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  2105. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  2106. $(SYSTEMUNIT)$(PPUEXT)
  2107. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  2108. $(SYSTEMUNIT)$(PPUEXT)
  2109. objects$(PPUEXT) : $(INC)/objects.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2110. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  2111. objpas$(PPUEXT) dos$(PPUEXT) sysconst$(PPUEXT)
  2112. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  2113. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  2114. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) types$(PPUEXT)
  2115. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  2116. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  2117. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  2118. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  2119. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  2120. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  2121. $(OBJPASDIR)/varutilh.inc varutils.pp
  2122. $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
  2123. fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
  2124. $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
  2125. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2126. $(COMPILER) $(OBJPASDIR)/types.pp
  2127. rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp
  2128. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  2129. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2130. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  2131. dateutil$(PPUEXT) : $(OBJPASDIR)/dateutil.pp
  2132. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/dateutil.pp
  2133. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  2134. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  2135. ucomplex$(PPUEXT): $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2136. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
  2137. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  2138. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  2139. charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)