Makefile 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 1.1 [2004/01/11]
  3. #
  4. default: all
  5. MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos darwin emx watcom
  6. override PATH:=$(subst \,/,$(PATH))
  7. ifeq ($(findstring ;,$(PATH)),)
  8. inUnix=1
  9. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  10. else
  11. SEARCHPATH:=$(subst ;, ,$(PATH))
  12. endif
  13. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  14. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  15. ifeq ($(PWD),)
  16. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  17. ifeq ($(PWD),)
  18. $(error You need the GNU utils package to use this Makefile)
  19. else
  20. PWD:=$(firstword $(PWD))
  21. SRCEXEEXT=
  22. endif
  23. else
  24. PWD:=$(firstword $(PWD))
  25. SRCEXEEXT=.exe
  26. endif
  27. ifndef inUnix
  28. ifeq ($(OS),Windows_NT)
  29. inWinNT=1
  30. else
  31. ifdef OS2_SHELL
  32. inOS2=1
  33. endif
  34. endif
  35. else
  36. ifneq ($(findstring cygdrive,$(PATH)),)
  37. inCygWin=1
  38. endif
  39. endif
  40. ifeq ($(OS_TARGET),freebsd)
  41. BSDhier=1
  42. endif
  43. ifeq ($(OS_TARGET),netbsd)
  44. BSDhier=1
  45. endif
  46. ifeq ($(OS_TARGET),openbsd)
  47. BSDhier=1
  48. endif
  49. ifdef inUnix
  50. BATCHEXT=.sh
  51. else
  52. ifdef inOS2
  53. BATCHEXT=.cmd
  54. else
  55. BATCHEXT=.bat
  56. endif
  57. endif
  58. ifdef inUnix
  59. PATHSEP=/
  60. else
  61. PATHSEP:=$(subst /,\,/)
  62. ifdef inCygWin
  63. PATHSEP=/
  64. endif
  65. endif
  66. ifdef PWD
  67. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  68. ifdef inCygWin
  69. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  70. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  71. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  72. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  73. endif
  74. endif
  75. else
  76. BASEDIR=.
  77. endif
  78. ifdef inOS2
  79. ifndef ECHO
  80. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  81. ifeq ($(ECHO),)
  82. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  83. ifeq ($(ECHO),)
  84. ECHO=echo
  85. else
  86. ECHO:=$(firstword $(ECHO))
  87. endif
  88. else
  89. ECHO:=$(firstword $(ECHO))
  90. endif
  91. endif
  92. export ECHO
  93. endif
  94. override DEFAULT_FPCDIR=..
  95. ifndef FPC
  96. ifdef PP
  97. FPC=$(PP)
  98. endif
  99. endif
  100. ifndef FPC
  101. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  102. ifneq ($(FPCPROG),)
  103. FPCPROG:=$(firstword $(FPCPROG))
  104. FPC:=$(shell $(FPCPROG) -PB)
  105. ifneq ($(findstring Error,$(FPC)),)
  106. override FPC=ppc386
  107. endif
  108. else
  109. override FPC=ppc386
  110. endif
  111. endif
  112. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  113. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  114. ifndef FPC_VERSION
  115. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  116. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  117. endif
  118. export FPC FPC_VERSION FPC_COMPILERINFO
  119. unexport CHECKDEPEND ALLDEPENDENCIES
  120. ifndef CPU_TARGET
  121. ifdef CPU_TARGET_DEFAULT
  122. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  123. endif
  124. endif
  125. ifndef OS_TARGET
  126. ifdef OS_TARGET_DEFAULT
  127. OS_TARGET=$(OS_TARGET_DEFAULT)
  128. endif
  129. endif
  130. ifneq ($(words $(FPC_COMPILERINFO)),5)
  131. FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
  132. FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
  133. FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
  134. FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
  135. endif
  136. ifndef CPU_SOURCE
  137. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  138. endif
  139. ifndef CPU_TARGET
  140. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  141. endif
  142. ifndef OS_SOURCE
  143. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  144. endif
  145. ifndef OS_TARGET
  146. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  147. endif
  148. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  149. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  150. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  151. CROSSCOMPILE=1
  152. endif
  153. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  154. ifeq ($(findstring $(OS_TARGET),$(MAKEFILETARGETS)),)
  155. $(error The Makefile doesn't support target $(OS_TARGET), please run fpcmake first)
  156. endif
  157. endif
  158. export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE CROSSCOMPILE
  159. ifdef FPCDIR
  160. override FPCDIR:=$(subst \,/,$(FPCDIR))
  161. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  162. override FPCDIR=wrong
  163. endif
  164. else
  165. override FPCDIR=wrong
  166. endif
  167. ifdef DEFAULT_FPCDIR
  168. ifeq ($(FPCDIR),wrong)
  169. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  170. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  171. override FPCDIR=wrong
  172. endif
  173. endif
  174. endif
  175. ifeq ($(FPCDIR),wrong)
  176. ifdef inUnix
  177. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  178. ifeq ($(wildcard $(FPCDIR)/units),)
  179. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  180. endif
  181. else
  182. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  183. override FPCDIR:=$(FPCDIR)/..
  184. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  185. override FPCDIR:=$(FPCDIR)/..
  186. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  187. override FPCDIR=c:/pp
  188. endif
  189. endif
  190. endif
  191. endif
  192. ifndef CROSSDIR
  193. CROSSDIR:=$(FPCDIR)/cross/$(FULL_TARGET)
  194. endif
  195. ifndef CROSSTARGETDIR
  196. CROSSTARGETDIR=$(CROSSDIR)/$(FULL_TARGET)
  197. endif
  198. ifdef CROSSCOMPILE
  199. UNITSDIR:=$(wildcard $(CROSSTARGETDIR)/units)
  200. ifeq ($(UNITSDIR),)
  201. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  202. endif
  203. else
  204. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  205. endif
  206. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
  207. override PACKAGE_NAME=rtl
  208. override PACKAGE_VERSION=1.9.2
  209. ifeq ($(OS_TARGET),linux)
  210. override TARGET_DIRS+=linux
  211. endif
  212. ifeq ($(OS_TARGET),go32v2)
  213. override TARGET_DIRS+=go32v2
  214. endif
  215. ifeq ($(OS_TARGET),win32)
  216. override TARGET_DIRS+=win32
  217. endif
  218. ifeq ($(OS_TARGET),os2)
  219. override TARGET_DIRS+=os2
  220. endif
  221. ifeq ($(OS_TARGET),freebsd)
  222. override TARGET_DIRS+=freebsd
  223. endif
  224. ifeq ($(OS_TARGET),beos)
  225. override TARGET_DIRS+=beos
  226. endif
  227. ifeq ($(OS_TARGET),netbsd)
  228. override TARGET_DIRS+=netbsd
  229. endif
  230. ifeq ($(OS_TARGET),amiga)
  231. override TARGET_DIRS+=amiga
  232. endif
  233. ifeq ($(OS_TARGET),darwin)
  234. override TARGET_DIRS+=darwin
  235. endif
  236. ifeq ($(OS_TARGET),emx)
  237. override TARGET_DIRS+=emx
  238. endif
  239. override INSTALL_FPCPACKAGE=y
  240. override INSTALL_CREATEPACKAGEFPC=y
  241. ifdef REQUIRE_UNITSDIR
  242. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  243. endif
  244. ifdef REQUIRE_PACKAGESDIR
  245. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  246. endif
  247. ifdef ZIPINSTALL
  248. ifeq ($(OS_TARGET),linux)
  249. UNIXINSTALLDIR=1
  250. endif
  251. ifeq ($(OS_TARGET),freebsd)
  252. UNIXINSTALLDIR=1
  253. endif
  254. ifeq ($(OS_TARGET),netbsd)
  255. UNIXINSTALLDIR=1
  256. endif
  257. ifeq ($(OS_TARGET),openbsd)
  258. UNIXINSTALLDIR=1
  259. endif
  260. ifeq ($(OS_TARGET),sunos)
  261. UNIXINSTALLDIR=1
  262. endif
  263. ifeq ($(OS_TARGET),qnx)
  264. UNIXINSTALLDIR=1
  265. endif
  266. else
  267. ifeq ($(OS_SOURCE),linux)
  268. UNIXINSTALLDIR=1
  269. endif
  270. ifeq ($(OS_SOURCE),freebsd)
  271. UNIXINSTALLDIR=1
  272. endif
  273. ifeq ($(OS_SOURCE),netbsd)
  274. UNIXINSTALLDIR=1
  275. endif
  276. ifeq ($(OS_SOURCE),openbsd)
  277. UNIXINSTALLDIR=1
  278. endif
  279. ifeq ($(OS_TARGET),sunos)
  280. UNIXINSTALLDIR=1
  281. endif
  282. ifeq ($(OS_TARGET),qnx)
  283. UNIXINSTALLDIR=1
  284. endif
  285. endif
  286. ifndef INSTALL_PREFIX
  287. ifdef PREFIX
  288. INSTALL_PREFIX=$(PREFIX)
  289. endif
  290. endif
  291. ifndef INSTALL_PREFIX
  292. ifdef UNIXINSTALLDIR
  293. INSTALL_PREFIX=/usr/local
  294. else
  295. ifdef INSTALL_FPCPACKAGE
  296. INSTALL_BASEDIR:=/pp
  297. else
  298. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  299. endif
  300. endif
  301. endif
  302. export INSTALL_PREFIX
  303. ifdef INSTALL_FPCSUBDIR
  304. export INSTALL_FPCSUBDIR
  305. endif
  306. ifndef DIST_DESTDIR
  307. DIST_DESTDIR:=$(BASEDIR)
  308. endif
  309. export DIST_DESTDIR
  310. ifndef INSTALL_BASEDIR
  311. ifdef UNIXINSTALLDIR
  312. ifdef INSTALL_FPCPACKAGE
  313. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  314. else
  315. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  316. endif
  317. else
  318. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  319. endif
  320. endif
  321. ifndef INSTALL_BINDIR
  322. ifdef UNIXINSTALLDIR
  323. ifdef CROSSCOMPILE
  324. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
  325. else
  326. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  327. endif
  328. else
  329. ifdef CROSSCOMPILE
  330. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
  331. else
  332. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  333. endif
  334. ifdef INSTALL_FPCPACKAGE
  335. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)
  336. endif
  337. endif
  338. endif
  339. ifndef INSTALL_UNITDIR
  340. ifdef CROSSCOMPILE
  341. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/units
  342. else
  343. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(OS_TARGET)
  344. endif
  345. ifdef INSTALL_FPCPACKAGE
  346. ifdef PACKAGE_NAME
  347. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  348. endif
  349. endif
  350. endif
  351. ifndef INSTALL_LIBDIR
  352. ifdef UNIXINSTALLDIR
  353. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  354. else
  355. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  356. endif
  357. endif
  358. ifndef INSTALL_SOURCEDIR
  359. ifdef UNIXINSTALLDIR
  360. ifdef BSDhier
  361. SRCPREFIXDIR=share/src
  362. else
  363. SRCPREFIXDIR=src
  364. endif
  365. ifdef INSTALL_FPCPACKAGE
  366. ifdef INSTALL_FPCSUBDIR
  367. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  368. else
  369. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  370. endif
  371. else
  372. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  373. endif
  374. else
  375. ifdef INSTALL_FPCPACKAGE
  376. ifdef INSTALL_FPCSUBDIR
  377. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  378. else
  379. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  380. endif
  381. else
  382. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  383. endif
  384. endif
  385. endif
  386. ifndef INSTALL_DOCDIR
  387. ifdef UNIXINSTALLDIR
  388. ifdef BSDhier
  389. DOCPREFIXDIR=share/doc
  390. else
  391. DOCPREFIXDIR=doc
  392. endif
  393. ifdef INSTALL_FPCPACKAGE
  394. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  395. else
  396. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  397. endif
  398. else
  399. ifdef INSTALL_FPCPACKAGE
  400. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  401. else
  402. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  403. endif
  404. endif
  405. endif
  406. ifndef INSTALL_EXAMPLEDIR
  407. ifdef UNIXINSTALLDIR
  408. ifdef INSTALL_FPCPACKAGE
  409. ifdef BSDhier
  410. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  411. else
  412. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  413. endif
  414. else
  415. ifdef BSDhier
  416. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  417. else
  418. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  419. endif
  420. endif
  421. else
  422. ifdef INSTALL_FPCPACKAGE
  423. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  424. else
  425. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  426. endif
  427. endif
  428. endif
  429. ifndef INSTALL_DATADIR
  430. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  431. endif
  432. ifdef CROSSCOMPILE
  433. ifndef CROSSBINDIR
  434. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(FULL_SOURCE))
  435. ifeq ($(CROSSBINDIR),)
  436. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin/$(FULL_SOURCE))
  437. endif
  438. endif
  439. else
  440. CROSSBINDIR=
  441. endif
  442. LOADEREXT=.as
  443. EXEEXT=.exe
  444. PPLEXT=.ppl
  445. PPUEXT=.ppu
  446. OEXT=.o
  447. ASMEXT=.s
  448. SMARTEXT=.sl
  449. STATICLIBEXT=.a
  450. SHAREDLIBEXT=.so
  451. STATICLIBPREFIX=libp
  452. RSTEXT=.rst
  453. FPCMADE=fpcmade
  454. ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
  455. ifeq ($(OS_TARGET),go32v1)
  456. STATICLIBPREFIX=
  457. FPCMADE=fpcmade.v1
  458. PACKAGESUFFIX=v1
  459. endif
  460. ifeq ($(OS_TARGET),go32v2)
  461. STATICLIBPREFIX=
  462. FPCMADE=fpcmade.dos
  463. ZIPSUFFIX=go32
  464. endif
  465. ifeq ($(OS_TARGET),watcom)
  466. STATICLIBPREFIX=
  467. FPCMADE=fpcmade.wat
  468. ZIPSUFFIX=watc
  469. OEXT=.obj
  470. ASMEXT=.asm
  471. SHAREDLIBEXT=.dll
  472. endif
  473. ifeq ($(OS_TARGET),linux)
  474. EXEEXT=
  475. HASSHAREDLIB=1
  476. FPCMADE=fpcmade.lnx
  477. ZIPSUFFIX=linux
  478. endif
  479. ifeq ($(OS_TARGET),freebsd)
  480. EXEEXT=
  481. HASSHAREDLIB=1
  482. FPCMADE=fpcmade.freebsd
  483. ZIPSUFFIX=freebsd
  484. endif
  485. ifeq ($(OS_TARGET),netbsd)
  486. EXEEXT=
  487. HASSHAREDLIB=1
  488. FPCMADE=fpcmade.netbsd
  489. ZIPSUFFIX=netbsd
  490. endif
  491. ifeq ($(OS_TARGET),openbsd)
  492. EXEEXT=
  493. HASSHAREDLIB=1
  494. FPCMADE=fpcmade.openbsd
  495. ZIPSUFFIX=openbsd
  496. endif
  497. ifeq ($(OS_TARGET),win32)
  498. SHAREDLIBEXT=.dll
  499. FPCMADE=fpcmade.w32
  500. ZIPSUFFIX=w32
  501. endif
  502. ifeq ($(OS_TARGET),os2)
  503. AOUTEXT=.out
  504. STATICLIBPREFIX=
  505. SHAREDLIBEXT=.dll
  506. FPCMADE=fpcmade.os2
  507. ZIPSUFFIX=os2
  508. ECHO=echo
  509. endif
  510. ifeq ($(OS_TARGET),emx)
  511. AOUTEXT=.out
  512. STATICLIBPREFIX=
  513. SHAREDLIBEXT=.dll
  514. FPCMADE=fpcmade.emx
  515. ZIPSUFFIX=emx
  516. ECHO=echo
  517. endif
  518. ifeq ($(OS_TARGET),amiga)
  519. EXEEXT=
  520. SHAREDLIBEXT=.library
  521. FPCMADE=fpcmade.amg
  522. endif
  523. ifeq ($(OS_TARGET),atari)
  524. EXEEXT=.ttp
  525. FPCMADE=fpcmade.ata
  526. endif
  527. ifeq ($(OS_TARGET),beos)
  528. EXEEXT=
  529. FPCMADE=fpcmade.be
  530. ZIPSUFFIX=be
  531. endif
  532. ifeq ($(OS_TARGET),sunos)
  533. EXEEXT=
  534. FPCMADE=fpcmade.sun
  535. ZIPSUFFIX=sun
  536. endif
  537. ifeq ($(OS_TARGET),qnx)
  538. EXEEXT=
  539. FPCMADE=fpcmade.qnx
  540. ZIPSUFFIX=qnx
  541. endif
  542. ifeq ($(OS_TARGET),netware)
  543. EXEEXT=.nlm
  544. STATICLIBPREFIX=
  545. FPCMADE=fpcmade.nw
  546. ZIPSUFFIX=nw
  547. endif
  548. ifeq ($(OS_TARGET),macos)
  549. EXEEXT=
  550. FPCMADE=fpcmade.mcc
  551. endif
  552. ifeq ($(OS_TARGET),darwin)
  553. EXEEXT=
  554. HASSHAREDLIB=1
  555. FPCMADE=fpcmade.darwin
  556. ZIPSUFFIX=darwin
  557. endif
  558. else
  559. ifeq ($(OS_TARGET),go32v1)
  560. PPUEXT=.pp1
  561. OEXT=.o1
  562. ASMEXT=.s1
  563. SMARTEXT=.sl1
  564. STATICLIBEXT=.a1
  565. SHAREDLIBEXT=.so1
  566. STATICLIBPREFIX=
  567. FPCMADE=fpcmade.v1
  568. PACKAGESUFFIX=v1
  569. endif
  570. ifeq ($(OS_TARGET),go32v2)
  571. STATICLIBPREFIX=
  572. FPCMADE=fpcmade.dos
  573. ZIPSUFFIX=go32
  574. endif
  575. ifeq ($(OS_TARGET),watcom)
  576. STATICLIBPREFIX=
  577. FPCMADE=fpcmade.dos
  578. ZIPSUFFIX=watcom
  579. endif
  580. ifeq ($(OS_TARGET),linux)
  581. EXEEXT=
  582. HASSHAREDLIB=1
  583. FPCMADE=fpcmade.lnx
  584. ZIPSUFFIX=linux
  585. endif
  586. ifeq ($(OS_TARGET),freebsd)
  587. EXEEXT=
  588. HASSHAREDLIB=1
  589. FPCMADE=fpcmade.freebsd
  590. ZIPSUFFIX=freebsd
  591. endif
  592. ifeq ($(OS_TARGET),netbsd)
  593. EXEEXT=
  594. HASSHAREDLIB=1
  595. FPCMADE=fpcmade.netbsd
  596. ZIPSUFFIX=netbsd
  597. endif
  598. ifeq ($(OS_TARGET),openbsd)
  599. EXEEXT=
  600. HASSHAREDLIB=1
  601. FPCMADE=fpcmade.openbsd
  602. ZIPSUFFIX=openbsd
  603. endif
  604. ifeq ($(OS_TARGET),win32)
  605. PPUEXT=.ppw
  606. OEXT=.ow
  607. ASMEXT=.sw
  608. SMARTEXT=.slw
  609. STATICLIBEXT=.aw
  610. SHAREDLIBEXT=.dll
  611. FPCMADE=fpcmade.w32
  612. ZIPSUFFIX=w32
  613. endif
  614. ifeq ($(OS_TARGET),os2)
  615. PPUEXT=.ppo
  616. ASMEXT=.so2
  617. OEXT=.oo2
  618. AOUTEXT=.out
  619. SMARTEXT=.sl2
  620. STATICLIBPREFIX=
  621. STATICLIBEXT=.ao2
  622. SHAREDLIBEXT=.dll
  623. FPCMADE=fpcmade.os2
  624. ZIPSUFFIX=emx
  625. ECHO=echo
  626. endif
  627. ifeq ($(OS_TARGET),amiga)
  628. EXEEXT=
  629. PPUEXT=.ppu
  630. ASMEXT=.asm
  631. OEXT=.o
  632. SMARTEXT=.sl
  633. STATICLIBEXT=.a
  634. SHAREDLIBEXT=.library
  635. FPCMADE=fpcmade.amg
  636. endif
  637. ifeq ($(OS_TARGET),atari)
  638. PPUEXT=.ppu
  639. ASMEXT=.s
  640. OEXT=.o
  641. SMARTEXT=.sl
  642. STATICLIBEXT=.a
  643. EXEEXT=.ttp
  644. FPCMADE=fpcmade.ata
  645. endif
  646. ifeq ($(OS_TARGET),beos)
  647. PPUEXT=.ppu
  648. ASMEXT=.s
  649. OEXT=.o
  650. SMARTEXT=.sl
  651. STATICLIBEXT=.a
  652. EXEEXT=
  653. FPCMADE=fpcmade.be
  654. ZIPSUFFIX=be
  655. endif
  656. ifeq ($(OS_TARGET),sunos)
  657. PPUEXT=.ppu
  658. ASMEXT=.s
  659. OEXT=.o
  660. SMARTEXT=.sl
  661. STATICLIBEXT=.a
  662. EXEEXT=
  663. FPCMADE=fpcmade.sun
  664. ZIPSUFFIX=sun
  665. endif
  666. ifeq ($(OS_TARGET),qnx)
  667. PPUEXT=.ppu
  668. ASMEXT=.s
  669. OEXT=.o
  670. SMARTEXT=.sl
  671. STATICLIBEXT=.a
  672. EXEEXT=
  673. FPCMADE=fpcmade.qnx
  674. ZIPSUFFIX=qnx
  675. endif
  676. ifeq ($(OS_TARGET),netware)
  677. STATICLIBPREFIX=
  678. PPUEXT=.ppu
  679. OEXT=.o
  680. ASMEXT=.s
  681. SMARTEXT=.sl
  682. STATICLIBEXT=.a
  683. SHAREDLIBEXT=.nlm
  684. FPCMADE=fpcmade.nw
  685. ZIPSUFFIX=nw
  686. EXEEXT=.nlm
  687. endif
  688. ifeq ($(OS_TARGET),macos)
  689. PPUEXT=.ppu
  690. ASMEXT=.s
  691. OEXT=.o
  692. SMARTEXT=.sl
  693. STATICLIBEXT=.a
  694. EXEEXT=
  695. FPCMADE=fpcmade.mcc
  696. endif
  697. endif
  698. ifndef ECHO
  699. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  700. ifeq ($(ECHO),)
  701. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  702. ifeq ($(ECHO),)
  703. ECHO=
  704. else
  705. ECHO:=$(firstword $(ECHO))
  706. endif
  707. else
  708. ECHO:=$(firstword $(ECHO))
  709. endif
  710. endif
  711. export ECHO
  712. ifndef DATE
  713. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  714. ifeq ($(DATE),)
  715. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  716. ifeq ($(DATE),)
  717. DATE=
  718. else
  719. DATE:=$(firstword $(DATE))
  720. endif
  721. else
  722. DATE:=$(firstword $(DATE))
  723. endif
  724. endif
  725. export DATE
  726. ifndef GINSTALL
  727. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  728. ifeq ($(GINSTALL),)
  729. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  730. ifeq ($(GINSTALL),)
  731. GINSTALL=
  732. else
  733. GINSTALL:=$(firstword $(GINSTALL))
  734. endif
  735. else
  736. GINSTALL:=$(firstword $(GINSTALL))
  737. endif
  738. endif
  739. export GINSTALL
  740. ifndef CPPROG
  741. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  742. ifeq ($(CPPROG),)
  743. CPPROG=
  744. else
  745. CPPROG:=$(firstword $(CPPROG))
  746. endif
  747. endif
  748. export CPPROG
  749. ifndef RMPROG
  750. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  751. ifeq ($(RMPROG),)
  752. RMPROG=
  753. else
  754. RMPROG:=$(firstword $(RMPROG))
  755. endif
  756. endif
  757. export RMPROG
  758. ifndef MVPROG
  759. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  760. ifeq ($(MVPROG),)
  761. MVPROG=
  762. else
  763. MVPROG:=$(firstword $(MVPROG))
  764. endif
  765. endif
  766. export MVPROG
  767. ifndef ECHOREDIR
  768. ifndef inUnix
  769. ECHOREDIR=echo
  770. else
  771. ECHOREDIR=$(ECHO)
  772. endif
  773. endif
  774. ifndef COPY
  775. COPY:=$(CPPROG) -fp
  776. endif
  777. ifndef COPYTREE
  778. COPYTREE:=$(CPPROG) -rfp
  779. endif
  780. ifndef MOVE
  781. MOVE:=$(MVPROG) -f
  782. endif
  783. ifndef DEL
  784. DEL:=$(RMPROG) -f
  785. endif
  786. ifndef DELTREE
  787. DELTREE:=$(RMPROG) -rf
  788. endif
  789. ifndef INSTALL
  790. ifdef inUnix
  791. INSTALL:=$(GINSTALL) -c -m 644
  792. else
  793. INSTALL:=$(COPY)
  794. endif
  795. endif
  796. ifndef INSTALLEXE
  797. ifdef inUnix
  798. INSTALLEXE:=$(GINSTALL) -c -m 755
  799. else
  800. INSTALLEXE:=$(COPY)
  801. endif
  802. endif
  803. ifndef MKDIR
  804. MKDIR:=$(GINSTALL) -m 755 -d
  805. endif
  806. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  807. ifndef PPUMOVE
  808. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  809. ifeq ($(PPUMOVE),)
  810. PPUMOVE=
  811. else
  812. PPUMOVE:=$(firstword $(PPUMOVE))
  813. endif
  814. endif
  815. export PPUMOVE
  816. ifndef FPCMAKE
  817. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  818. ifeq ($(FPCMAKE),)
  819. FPCMAKE=
  820. else
  821. FPCMAKE:=$(firstword $(FPCMAKE))
  822. endif
  823. endif
  824. export FPCMAKE
  825. ifndef ZIPPROG
  826. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  827. ifeq ($(ZIPPROG),)
  828. ZIPPROG=
  829. else
  830. ZIPPROG:=$(firstword $(ZIPPROG))
  831. endif
  832. endif
  833. export ZIPPROG
  834. ifndef TARPROG
  835. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  836. ifeq ($(TARPROG),)
  837. TARPROG=
  838. else
  839. TARPROG:=$(firstword $(TARPROG))
  840. endif
  841. endif
  842. export TARPROG
  843. ASNAME=$(BINUTILSPREFIX)as
  844. LDNAME=$(BINUTILSPREFIX)ld
  845. ARNAME=$(BINUTILSPREFIX)ar
  846. RCNAME=$(BINUTILSPREFIX)rc
  847. ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
  848. ifeq ($(OS_TARGET),win32)
  849. ASNAME=as
  850. LDNAME=ld
  851. ARNAME=ar
  852. endif
  853. endif
  854. ifndef ASPROG
  855. ifdef CROSSBINDIR
  856. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  857. else
  858. ASPROG=$(ASNAME)
  859. endif
  860. endif
  861. ifndef LDPROG
  862. ifdef CROSSBINDIR
  863. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  864. else
  865. LDPROG=$(LDNAME)
  866. endif
  867. endif
  868. ifndef RCPROG
  869. ifdef CROSSBINDIR
  870. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  871. else
  872. RCPROG=$(RCNAME)
  873. endif
  874. endif
  875. ifndef ARPROG
  876. ifdef CROSSBINDIR
  877. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  878. else
  879. ARPROG=$(ARNAME)
  880. endif
  881. endif
  882. AS=$(ASPROG)
  883. LD=$(LDPROG)
  884. RC=$(RCPROG)
  885. AR=$(ARPROG)
  886. PPAS=ppas$(BATCHEXT)
  887. ifdef inUnix
  888. LDCONFIG=ldconfig
  889. else
  890. LDCONFIG=
  891. endif
  892. ifdef DATE
  893. DATESTR:=$(shell $(DATE) +%Y%m%d)
  894. else
  895. DATESTR=
  896. endif
  897. ifndef UPXPROG
  898. ifeq ($(OS_TARGET),go32v2)
  899. UPXPROG:=1
  900. endif
  901. ifeq ($(OS_TARGET),win32)
  902. UPXPROG:=1
  903. endif
  904. ifdef UPXPROG
  905. UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
  906. ifeq ($(UPXPROG),)
  907. UPXPROG=
  908. else
  909. UPXPROG:=$(firstword $(UPXPROG))
  910. endif
  911. else
  912. UPXPROG=
  913. endif
  914. endif
  915. export UPXPROG
  916. ZIPOPT=-9
  917. ZIPEXT=.zip
  918. ifeq ($(USETAR),bz2)
  919. TAROPT=vI
  920. TAREXT=.tar.bz2
  921. else
  922. TAROPT=vz
  923. TAREXT=.tar.gz
  924. endif
  925. override REQUIRE_PACKAGES=rtl
  926. ifeq ($(OS_TARGET),linux)
  927. ifeq ($(CPU_TARGET),i386)
  928. REQUIRE_PACKAGES_RTL=1
  929. endif
  930. endif
  931. ifeq ($(OS_TARGET),linux)
  932. ifeq ($(CPU_TARGET),m68k)
  933. REQUIRE_PACKAGES_RTL=1
  934. endif
  935. endif
  936. ifeq ($(OS_TARGET),linux)
  937. ifeq ($(CPU_TARGET),powerpc)
  938. REQUIRE_PACKAGES_RTL=1
  939. endif
  940. endif
  941. ifeq ($(OS_TARGET),linux)
  942. ifeq ($(CPU_TARGET),sparc)
  943. REQUIRE_PACKAGES_RTL=1
  944. endif
  945. endif
  946. ifeq ($(OS_TARGET),linux)
  947. ifeq ($(CPU_TARGET),x86_64)
  948. REQUIRE_PACKAGES_RTL=1
  949. endif
  950. endif
  951. ifeq ($(OS_TARGET),go32v2)
  952. ifeq ($(CPU_TARGET),i386)
  953. REQUIRE_PACKAGES_RTL=1
  954. endif
  955. endif
  956. ifeq ($(OS_TARGET),win32)
  957. ifeq ($(CPU_TARGET),i386)
  958. REQUIRE_PACKAGES_RTL=1
  959. endif
  960. endif
  961. ifeq ($(OS_TARGET),os2)
  962. ifeq ($(CPU_TARGET),i386)
  963. REQUIRE_PACKAGES_RTL=1
  964. endif
  965. endif
  966. ifeq ($(OS_TARGET),freebsd)
  967. ifeq ($(CPU_TARGET),i386)
  968. REQUIRE_PACKAGES_RTL=1
  969. endif
  970. endif
  971. ifeq ($(OS_TARGET),freebsd)
  972. ifeq ($(CPU_TARGET),m68k)
  973. REQUIRE_PACKAGES_RTL=1
  974. endif
  975. endif
  976. ifeq ($(OS_TARGET),beos)
  977. ifeq ($(CPU_TARGET),i386)
  978. REQUIRE_PACKAGES_RTL=1
  979. endif
  980. endif
  981. ifeq ($(OS_TARGET),netbsd)
  982. ifeq ($(CPU_TARGET),i386)
  983. REQUIRE_PACKAGES_RTL=1
  984. endif
  985. endif
  986. ifeq ($(OS_TARGET),netbsd)
  987. ifeq ($(CPU_TARGET),m68k)
  988. REQUIRE_PACKAGES_RTL=1
  989. endif
  990. endif
  991. ifeq ($(OS_TARGET),netbsd)
  992. ifeq ($(CPU_TARGET),powerpc)
  993. REQUIRE_PACKAGES_RTL=1
  994. endif
  995. endif
  996. ifeq ($(OS_TARGET),netbsd)
  997. ifeq ($(CPU_TARGET),sparc)
  998. REQUIRE_PACKAGES_RTL=1
  999. endif
  1000. endif
  1001. ifeq ($(OS_TARGET),amiga)
  1002. ifeq ($(CPU_TARGET),m68k)
  1003. REQUIRE_PACKAGES_RTL=1
  1004. endif
  1005. endif
  1006. ifeq ($(OS_TARGET),atari)
  1007. ifeq ($(CPU_TARGET),m68k)
  1008. REQUIRE_PACKAGES_RTL=1
  1009. endif
  1010. endif
  1011. ifeq ($(OS_TARGET),sunos)
  1012. ifeq ($(CPU_TARGET),i386)
  1013. REQUIRE_PACKAGES_RTL=1
  1014. endif
  1015. endif
  1016. ifeq ($(OS_TARGET),sunos)
  1017. ifeq ($(CPU_TARGET),sparc)
  1018. REQUIRE_PACKAGES_RTL=1
  1019. endif
  1020. endif
  1021. ifeq ($(OS_TARGET),qnx)
  1022. ifeq ($(CPU_TARGET),i386)
  1023. REQUIRE_PACKAGES_RTL=1
  1024. endif
  1025. endif
  1026. ifeq ($(OS_TARGET),netware)
  1027. ifeq ($(CPU_TARGET),i386)
  1028. REQUIRE_PACKAGES_RTL=1
  1029. endif
  1030. endif
  1031. ifeq ($(OS_TARGET),openbsd)
  1032. ifeq ($(CPU_TARGET),i386)
  1033. REQUIRE_PACKAGES_RTL=1
  1034. endif
  1035. endif
  1036. ifeq ($(OS_TARGET),openbsd)
  1037. ifeq ($(CPU_TARGET),m68k)
  1038. REQUIRE_PACKAGES_RTL=1
  1039. endif
  1040. endif
  1041. ifeq ($(OS_TARGET),wdosx)
  1042. ifeq ($(CPU_TARGET),i386)
  1043. REQUIRE_PACKAGES_RTL=1
  1044. endif
  1045. endif
  1046. ifeq ($(OS_TARGET),palmos)
  1047. ifeq ($(CPU_TARGET),m68k)
  1048. REQUIRE_PACKAGES_RTL=1
  1049. endif
  1050. endif
  1051. ifeq ($(OS_TARGET),macos)
  1052. ifeq ($(CPU_TARGET),powerpc)
  1053. REQUIRE_PACKAGES_RTL=1
  1054. endif
  1055. endif
  1056. ifeq ($(OS_TARGET),darwin)
  1057. ifeq ($(CPU_TARGET),powerpc)
  1058. REQUIRE_PACKAGES_RTL=1
  1059. endif
  1060. endif
  1061. ifeq ($(OS_TARGET),emx)
  1062. ifeq ($(CPU_TARGET),i386)
  1063. REQUIRE_PACKAGES_RTL=1
  1064. endif
  1065. endif
  1066. ifeq ($(OS_TARGET),watcom)
  1067. ifeq ($(CPU_TARGET),i386)
  1068. REQUIRE_PACKAGES_RTL=1
  1069. endif
  1070. endif
  1071. ifdef REQUIRE_PACKAGES_RTL
  1072. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/$(OS_TARGET)/Makefile.fpc,$(PACKAGESDIR))))))
  1073. ifneq ($(PACKAGEDIR_RTL),)
  1074. ifneq ($(wildcard $(PACKAGEDIR_RTL)/$(OS_TARGET)),)
  1075. UNITDIR_RTL=$(PACKAGEDIR_RTL)/$(OS_TARGET)
  1076. else
  1077. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  1078. endif
  1079. ifdef CHECKDEPEND
  1080. $(PACKAGEDIR_RTL)/$(FPCMADE):
  1081. $(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
  1082. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
  1083. endif
  1084. else
  1085. PACKAGEDIR_RTL=
  1086. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  1087. ifneq ($(UNITDIR_RTL),)
  1088. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  1089. else
  1090. UNITDIR_RTL=
  1091. endif
  1092. endif
  1093. ifdef UNITDIR_RTL
  1094. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  1095. endif
  1096. endif
  1097. ifndef NOCPUDEF
  1098. override FPCOPTDEF=$(CPU_TARGET)
  1099. endif
  1100. ifneq ($(OS_TARGET),$(OS_SOURCE))
  1101. override FPCOPT+=-T$(OS_TARGET)
  1102. endif
  1103. ifeq ($(OS_SOURCE),openbsd)
  1104. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  1105. endif
  1106. ifndef CROSSBOOTSTRAP
  1107. ifneq ($(BINUTILSPREFIX),)
  1108. override FPCOPT+=-XP$(BINUTILSPREFIX) -Xc
  1109. endif
  1110. ifneq ($(BINUTILSPREFIX),)
  1111. override FPCOPT+=-Xr$(RLINKPATH)
  1112. endif
  1113. endif
  1114. ifdef UNITDIR
  1115. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  1116. endif
  1117. ifdef LIBDIR
  1118. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  1119. endif
  1120. ifdef OBJDIR
  1121. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  1122. endif
  1123. ifdef INCDIR
  1124. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  1125. endif
  1126. ifdef LINKSMART
  1127. override FPCOPT+=-XX
  1128. endif
  1129. ifdef CREATESMART
  1130. override FPCOPT+=-CX
  1131. endif
  1132. ifdef DEBUG
  1133. override FPCOPT+=-gl
  1134. override FPCOPTDEF+=DEBUG
  1135. endif
  1136. ifdef RELEASE
  1137. ifeq ($(CPU_TARGET),i386)
  1138. FPCCPUOPT:=-OG2p3
  1139. else
  1140. FPCCPUOPT:=
  1141. endif
  1142. override FPCOPT+=-Xs $(FPCCPUOPT) -n
  1143. override FPCOPTDEF+=RELEASE
  1144. endif
  1145. ifdef STRIP
  1146. override FPCOPT+=-Xs
  1147. endif
  1148. ifdef OPTIMIZE
  1149. ifeq ($(CPU_TARGET),i386)
  1150. override FPCOPT+=-OG2p3
  1151. endif
  1152. endif
  1153. ifdef VERBOSE
  1154. override FPCOPT+=-vwni
  1155. endif
  1156. ifdef COMPILER_OPTIONS
  1157. override FPCOPT+=$(COMPILER_OPTIONS)
  1158. endif
  1159. ifdef COMPILER_UNITDIR
  1160. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  1161. endif
  1162. ifdef COMPILER_LIBRARYDIR
  1163. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  1164. endif
  1165. ifdef COMPILER_OBJECTDIR
  1166. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  1167. endif
  1168. ifdef COMPILER_INCLUDEDIR
  1169. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  1170. endif
  1171. ifdef CROSSBINDIR
  1172. override FPCOPT+=-FD$(CROSSBINDIR)
  1173. endif
  1174. ifdef COMPILER_TARGETDIR
  1175. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  1176. ifeq ($(COMPILER_TARGETDIR),.)
  1177. override TARGETDIRPREFIX=
  1178. else
  1179. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  1180. endif
  1181. endif
  1182. ifdef COMPILER_UNITTARGETDIR
  1183. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  1184. ifeq ($(COMPILER_UNITTARGETDIR),.)
  1185. override UNITTARGETDIRPREFIX=
  1186. else
  1187. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  1188. endif
  1189. else
  1190. ifdef COMPILER_TARGETDIR
  1191. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  1192. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  1193. endif
  1194. endif
  1195. ifeq ($(OS_TARGET),linux)
  1196. ifeq ($(FPC_VERSION),1.0.6)
  1197. override FPCOPTDEF+=HASUNIX
  1198. endif
  1199. endif
  1200. ifdef OPT
  1201. override FPCOPT+=$(OPT)
  1202. endif
  1203. ifdef FPCOPTDEF
  1204. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  1205. endif
  1206. ifdef CFGFILE
  1207. override FPCOPT+=@$(CFGFILE)
  1208. endif
  1209. ifdef USEENV
  1210. override FPCEXTCMD:=$(FPCOPT)
  1211. override FPCOPT:=!FPCEXTCMD
  1212. export FPCEXTCMD
  1213. endif
  1214. override COMPILER:=$(FPC) $(FPCOPT)
  1215. ifeq (,$(findstring -s ,$(COMPILER)))
  1216. EXECPPAS=
  1217. else
  1218. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  1219. EXECPPAS:=@$(PPAS)
  1220. endif
  1221. endif
  1222. ifdef TARGET_RSTS
  1223. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  1224. override CLEANRSTFILES+=$(RSTFILES)
  1225. endif
  1226. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  1227. ifdef INSTALL_UNITS
  1228. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  1229. endif
  1230. ifdef INSTALL_BUILDUNIT
  1231. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  1232. endif
  1233. ifdef INSTALLPPUFILES
  1234. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  1235. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILES))
  1236. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILES)))
  1237. override INSTALL_CREATEPACKAGEFPC=1
  1238. endif
  1239. ifdef INSTALLEXEFILES
  1240. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INSTALLEXEFILES))
  1241. endif
  1242. fpc_install: all $(INSTALLTARGET)
  1243. ifdef INSTALLEXEFILES
  1244. $(MKDIR) $(INSTALL_BINDIR)
  1245. ifdef UPXPROG
  1246. -$(UPXPROG) $(INSTALLEXEFILES)
  1247. endif
  1248. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  1249. endif
  1250. ifdef INSTALL_CREATEPACKAGEFPC
  1251. ifdef FPCMAKE
  1252. ifdef PACKAGE_VERSION
  1253. ifneq ($(wildcard Makefile.fpc),)
  1254. $(FPCMAKE) -p -T$(OS_TARGET) Makefile.fpc
  1255. $(MKDIR) $(INSTALL_UNITDIR)
  1256. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  1257. endif
  1258. endif
  1259. endif
  1260. endif
  1261. ifdef INSTALLPPUFILES
  1262. $(MKDIR) $(INSTALL_UNITDIR)
  1263. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  1264. ifneq ($(INSTALLPPULINKFILES),)
  1265. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  1266. endif
  1267. ifneq ($(wildcard $(LIB_FULLNAME)),)
  1268. $(MKDIR) $(INSTALL_LIBDIR)
  1269. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  1270. ifdef inUnix
  1271. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  1272. endif
  1273. endif
  1274. endif
  1275. ifdef INSTALL_FILES
  1276. $(MKDIR) $(INSTALL_DATADIR)
  1277. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  1278. endif
  1279. fpc_sourceinstall: distclean
  1280. $(MKDIR) $(INSTALL_SOURCEDIR)
  1281. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  1282. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  1283. ifdef HASEXAMPLES
  1284. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  1285. endif
  1286. ifdef EXAMPLESOURCEFILES
  1287. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  1288. endif
  1289. ifdef TARGET_EXAMPLEDIRS
  1290. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  1291. endif
  1292. .PHONY: fpc_distinstall
  1293. fpc_distinstall: install exampleinstall
  1294. .PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
  1295. ifndef PACKDIR
  1296. ifndef inUnix
  1297. PACKDIR=$(BASEDIR)/../fpc-pack
  1298. else
  1299. PACKDIR=/tmp/fpc-pack
  1300. endif
  1301. endif
  1302. ifndef ZIPNAME
  1303. ifdef DIST_ZIPNAME
  1304. ZIPNAME=$(DIST_ZIPNAME)
  1305. else
  1306. ZIPNAME=$(ZIPPREFIX)$(PACKAGE_NAME)$(ZIPSUFFIX)
  1307. endif
  1308. endif
  1309. ifndef ZIPTARGET
  1310. ifdef DIST_ZIPTARGET
  1311. ZIPTARGET=DIST_ZIPTARGET
  1312. else
  1313. ZIPTARGET=install
  1314. endif
  1315. endif
  1316. ifndef USEZIP
  1317. ifdef inUnix
  1318. USETAR=1
  1319. endif
  1320. endif
  1321. ifndef inUnix
  1322. USEZIPWRAPPER=1
  1323. endif
  1324. ifdef USEZIPWRAPPER
  1325. ZIPPATHSEP=$(PATHSEP)
  1326. ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(BATCHEXT))
  1327. else
  1328. ZIPPATHSEP=/
  1329. endif
  1330. ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
  1331. ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
  1332. ifdef USETAR
  1333. ZIPDESTFILE:=$(DIST_DESTDIR)/$(ZIPNAME)$(TAREXT)
  1334. ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
  1335. else
  1336. ZIPDESTFILE:=$(DIST_DESTDIR)/$(ZIPNAME)$(ZIPEXT)
  1337. ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
  1338. endif
  1339. fpc_zipinstall:
  1340. $(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
  1341. $(MKDIR) $(DIST_DESTDIR)
  1342. $(DEL) $(ZIPDESTFILE)
  1343. ifdef USEZIPWRAPPER
  1344. ifneq ($(ECHOREDIR),echo)
  1345. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
  1346. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
  1347. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
  1348. else
  1349. echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
  1350. echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
  1351. echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
  1352. endif
  1353. ifdef inUnix
  1354. /bin/sh $(ZIPWRAPPER)
  1355. else
  1356. $(ZIPWRAPPER)
  1357. endif
  1358. $(DEL) $(ZIPWRAPPER)
  1359. else
  1360. $(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
  1361. endif
  1362. $(DELTREE) $(PACKDIR)
  1363. fpc_zipsourceinstall:
  1364. $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=src
  1365. fpc_zipexampleinstall:
  1366. ifdef HASEXAMPLES
  1367. $(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=exm
  1368. endif
  1369. fpc_zipdistinstall:
  1370. $(MAKE) fpc_zipinstall ZIPTARGET=distinstall
  1371. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  1372. ifdef EXEFILES
  1373. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  1374. endif
  1375. ifdef CLEAN_UNITS
  1376. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  1377. endif
  1378. ifdef CLEANPPUFILES
  1379. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  1380. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  1381. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  1382. endif
  1383. fpc_clean: $(CLEANTARGET)
  1384. ifdef CLEANEXEFILES
  1385. -$(DEL) $(CLEANEXEFILES)
  1386. endif
  1387. ifdef CLEANPPUFILES
  1388. -$(DEL) $(CLEANPPUFILES)
  1389. endif
  1390. ifneq ($(CLEANPPULINKFILES),)
  1391. -$(DEL) $(CLEANPPULINKFILES)
  1392. endif
  1393. ifdef CLEANRSTFILES
  1394. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  1395. endif
  1396. ifdef CLEAN_FILES
  1397. -$(DEL) $(CLEAN_FILES)
  1398. endif
  1399. ifdef LIB_NAME
  1400. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  1401. endif
  1402. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  1403. fpc_distclean: clean
  1404. ifdef COMPILER_UNITTARGETDIR
  1405. TARGETDIRCLEAN=fpc_clean
  1406. endif
  1407. fpc_cleanall: $(CLEANTARGET) $(TARGETDIRCLEAN)
  1408. ifdef CLEANEXEFILES
  1409. -$(DEL) $(CLEANEXEFILES)
  1410. endif
  1411. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  1412. -$(DELTREE) *$(SMARTEXT)
  1413. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  1414. ifdef AOUTEXT
  1415. -$(DEL) *$(AOUTEXT)
  1416. endif
  1417. .PHONY: fpc_baseinfo
  1418. override INFORULES+=fpc_baseinfo
  1419. fpc_baseinfo:
  1420. @$(ECHO)
  1421. @$(ECHO) == Package info ==
  1422. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  1423. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  1424. @$(ECHO)
  1425. @$(ECHO) == Configuration info ==
  1426. @$(ECHO)
  1427. @$(ECHO) FPC.......... $(FPC)
  1428. @$(ECHO) FPC Version.. $(FPC_VERSION)
  1429. @$(ECHO) Source CPU... $(CPU_SOURCE)
  1430. @$(ECHO) Target CPU... $(CPU_TARGET)
  1431. @$(ECHO) Source OS.... $(OS_SOURCE)
  1432. @$(ECHO) Target OS.... $(OS_TARGET)
  1433. @$(ECHO) Full Source.. $(FULL_SOURCE)
  1434. @$(ECHO) Full Target.. $(FULL_TARGET)
  1435. @$(ECHO)
  1436. @$(ECHO) == Directory info ==
  1437. @$(ECHO)
  1438. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  1439. @$(ECHO)
  1440. @$(ECHO) Basedir......... $(BASEDIR)
  1441. @$(ECHO) FPCDir.......... $(FPCDIR)
  1442. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  1443. @$(ECHO) UnitsDir........ $(UNITSDIR)
  1444. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  1445. @$(ECHO)
  1446. @$(ECHO) GCC library..... $(GCCLIBDIR)
  1447. @$(ECHO) Other library... $(OTHERLIBDIR)
  1448. @$(ECHO)
  1449. @$(ECHO) == Tools info ==
  1450. @$(ECHO)
  1451. @$(ECHO) As........ $(AS)
  1452. @$(ECHO) Ld........ $(LD)
  1453. @$(ECHO) Ar........ $(AR)
  1454. @$(ECHO) Rc........ $(RC)
  1455. @$(ECHO)
  1456. @$(ECHO) Mv........ $(MVPROG)
  1457. @$(ECHO) Cp........ $(CPPROG)
  1458. @$(ECHO) Rm........ $(RMPROG)
  1459. @$(ECHO) GInstall.. $(GINSTALL)
  1460. @$(ECHO) Echo...... $(ECHO)
  1461. @$(ECHO) Shell..... $(SHELL)
  1462. @$(ECHO) Date...... $(DATE)
  1463. @$(ECHO) FPCMake... $(FPCMAKE)
  1464. @$(ECHO) PPUMove... $(PPUMOVE)
  1465. @$(ECHO) Upx....... $(UPXPROG)
  1466. @$(ECHO) Zip....... $(ZIPPROG)
  1467. @$(ECHO)
  1468. @$(ECHO) == Object info ==
  1469. @$(ECHO)
  1470. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  1471. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  1472. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  1473. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  1474. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  1475. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  1476. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  1477. @$(ECHO)
  1478. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  1479. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  1480. @$(ECHO)
  1481. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  1482. @$(ECHO) Install Files....... $(INSTALL_FILES)
  1483. @$(ECHO)
  1484. @$(ECHO) == Install info ==
  1485. @$(ECHO)
  1486. @$(ECHO) DateStr.............. $(DATESTR)
  1487. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  1488. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  1489. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  1490. @$(ECHO)
  1491. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  1492. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  1493. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  1494. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  1495. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  1496. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  1497. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  1498. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  1499. @$(ECHO)
  1500. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  1501. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  1502. @$(ECHO)
  1503. .PHONY: fpc_info
  1504. fpc_info: $(INFORULES)
  1505. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  1506. fpc_makefile_dirs
  1507. fpc_makefile:
  1508. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  1509. fpc_makefile_sub1:
  1510. ifdef TARGET_DIRS
  1511. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  1512. endif
  1513. ifdef TARGET_EXAMPLEDIRS
  1514. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  1515. endif
  1516. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  1517. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  1518. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  1519. ifeq ($(OS_TARGET),linux)
  1520. TARGET_DIRS_LINUX=1
  1521. endif
  1522. ifeq ($(OS_TARGET),go32v2)
  1523. TARGET_DIRS_GO32V2=1
  1524. endif
  1525. ifeq ($(OS_TARGET),win32)
  1526. TARGET_DIRS_WIN32=1
  1527. endif
  1528. ifeq ($(OS_TARGET),os2)
  1529. TARGET_DIRS_OS2=1
  1530. endif
  1531. ifeq ($(OS_TARGET),freebsd)
  1532. TARGET_DIRS_FREEBSD=1
  1533. endif
  1534. ifeq ($(OS_TARGET),beos)
  1535. TARGET_DIRS_BEOS=1
  1536. endif
  1537. ifeq ($(OS_TARGET),netbsd)
  1538. TARGET_DIRS_NETBSD=1
  1539. endif
  1540. ifeq ($(OS_TARGET),amiga)
  1541. TARGET_DIRS_AMIGA=1
  1542. endif
  1543. ifeq ($(OS_TARGET),darwin)
  1544. TARGET_DIRS_DARWIN=1
  1545. endif
  1546. ifeq ($(OS_TARGET),emx)
  1547. TARGET_DIRS_EMX=1
  1548. endif
  1549. ifdef TARGET_DIRS_LINUX
  1550. linux_all:
  1551. $(MAKE) -C linux all
  1552. linux_debug:
  1553. $(MAKE) -C linux debug
  1554. linux_smart:
  1555. $(MAKE) -C linux smart
  1556. linux_release:
  1557. $(MAKE) -C linux release
  1558. linux_examples:
  1559. $(MAKE) -C linux examples
  1560. linux_shared:
  1561. $(MAKE) -C linux shared
  1562. linux_install:
  1563. $(MAKE) -C linux install
  1564. linux_sourceinstall:
  1565. $(MAKE) -C linux sourceinstall
  1566. linux_exampleinstall:
  1567. $(MAKE) -C linux exampleinstall
  1568. linux_distinstall:
  1569. $(MAKE) -C linux distinstall
  1570. linux_zipinstall:
  1571. $(MAKE) -C linux zipinstall
  1572. linux_zipsourceinstall:
  1573. $(MAKE) -C linux zipsourceinstall
  1574. linux_zipexampleinstall:
  1575. $(MAKE) -C linux zipexampleinstall
  1576. linux_zipdistinstall:
  1577. $(MAKE) -C linux zipdistinstall
  1578. linux_clean:
  1579. $(MAKE) -C linux clean
  1580. linux_distclean:
  1581. $(MAKE) -C linux distclean
  1582. linux_cleanall:
  1583. $(MAKE) -C linux cleanall
  1584. linux_info:
  1585. $(MAKE) -C linux info
  1586. linux_makefiles:
  1587. $(MAKE) -C linux makefiles
  1588. linux:
  1589. $(MAKE) -C linux all
  1590. .PHONY: linux_all linux_debug linux_smart linux_release linux_examples linux_shared linux_install linux_sourceinstall linux_exampleinstall linux_distinstall linux_zipinstall linux_zipsourceinstall linux_zipexampleinstall linux_zipdistinstall linux_clean linux_distclean linux_cleanall linux_info linux_makefiles linux
  1591. endif
  1592. ifdef TARGET_DIRS_GO32V2
  1593. go32v2_all:
  1594. $(MAKE) -C go32v2 all
  1595. go32v2_debug:
  1596. $(MAKE) -C go32v2 debug
  1597. go32v2_smart:
  1598. $(MAKE) -C go32v2 smart
  1599. go32v2_release:
  1600. $(MAKE) -C go32v2 release
  1601. go32v2_examples:
  1602. $(MAKE) -C go32v2 examples
  1603. go32v2_shared:
  1604. $(MAKE) -C go32v2 shared
  1605. go32v2_install:
  1606. $(MAKE) -C go32v2 install
  1607. go32v2_sourceinstall:
  1608. $(MAKE) -C go32v2 sourceinstall
  1609. go32v2_exampleinstall:
  1610. $(MAKE) -C go32v2 exampleinstall
  1611. go32v2_distinstall:
  1612. $(MAKE) -C go32v2 distinstall
  1613. go32v2_zipinstall:
  1614. $(MAKE) -C go32v2 zipinstall
  1615. go32v2_zipsourceinstall:
  1616. $(MAKE) -C go32v2 zipsourceinstall
  1617. go32v2_zipexampleinstall:
  1618. $(MAKE) -C go32v2 zipexampleinstall
  1619. go32v2_zipdistinstall:
  1620. $(MAKE) -C go32v2 zipdistinstall
  1621. go32v2_clean:
  1622. $(MAKE) -C go32v2 clean
  1623. go32v2_distclean:
  1624. $(MAKE) -C go32v2 distclean
  1625. go32v2_cleanall:
  1626. $(MAKE) -C go32v2 cleanall
  1627. go32v2_info:
  1628. $(MAKE) -C go32v2 info
  1629. go32v2_makefiles:
  1630. $(MAKE) -C go32v2 makefiles
  1631. go32v2:
  1632. $(MAKE) -C go32v2 all
  1633. .PHONY: go32v2_all go32v2_debug go32v2_smart go32v2_release go32v2_examples go32v2_shared go32v2_install go32v2_sourceinstall go32v2_exampleinstall go32v2_distinstall go32v2_zipinstall go32v2_zipsourceinstall go32v2_zipexampleinstall go32v2_zipdistinstall go32v2_clean go32v2_distclean go32v2_cleanall go32v2_info go32v2_makefiles go32v2
  1634. endif
  1635. ifdef TARGET_DIRS_WIN32
  1636. win32_all:
  1637. $(MAKE) -C win32 all
  1638. win32_debug:
  1639. $(MAKE) -C win32 debug
  1640. win32_smart:
  1641. $(MAKE) -C win32 smart
  1642. win32_release:
  1643. $(MAKE) -C win32 release
  1644. win32_examples:
  1645. $(MAKE) -C win32 examples
  1646. win32_shared:
  1647. $(MAKE) -C win32 shared
  1648. win32_install:
  1649. $(MAKE) -C win32 install
  1650. win32_sourceinstall:
  1651. $(MAKE) -C win32 sourceinstall
  1652. win32_exampleinstall:
  1653. $(MAKE) -C win32 exampleinstall
  1654. win32_distinstall:
  1655. $(MAKE) -C win32 distinstall
  1656. win32_zipinstall:
  1657. $(MAKE) -C win32 zipinstall
  1658. win32_zipsourceinstall:
  1659. $(MAKE) -C win32 zipsourceinstall
  1660. win32_zipexampleinstall:
  1661. $(MAKE) -C win32 zipexampleinstall
  1662. win32_zipdistinstall:
  1663. $(MAKE) -C win32 zipdistinstall
  1664. win32_clean:
  1665. $(MAKE) -C win32 clean
  1666. win32_distclean:
  1667. $(MAKE) -C win32 distclean
  1668. win32_cleanall:
  1669. $(MAKE) -C win32 cleanall
  1670. win32_info:
  1671. $(MAKE) -C win32 info
  1672. win32_makefiles:
  1673. $(MAKE) -C win32 makefiles
  1674. win32:
  1675. $(MAKE) -C win32 all
  1676. .PHONY: win32_all win32_debug win32_smart win32_release win32_examples win32_shared win32_install win32_sourceinstall win32_exampleinstall win32_distinstall win32_zipinstall win32_zipsourceinstall win32_zipexampleinstall win32_zipdistinstall win32_clean win32_distclean win32_cleanall win32_info win32_makefiles win32
  1677. endif
  1678. ifdef TARGET_DIRS_OS2
  1679. os2_all:
  1680. $(MAKE) -C os2 all
  1681. os2_debug:
  1682. $(MAKE) -C os2 debug
  1683. os2_smart:
  1684. $(MAKE) -C os2 smart
  1685. os2_release:
  1686. $(MAKE) -C os2 release
  1687. os2_examples:
  1688. $(MAKE) -C os2 examples
  1689. os2_shared:
  1690. $(MAKE) -C os2 shared
  1691. os2_install:
  1692. $(MAKE) -C os2 install
  1693. os2_sourceinstall:
  1694. $(MAKE) -C os2 sourceinstall
  1695. os2_exampleinstall:
  1696. $(MAKE) -C os2 exampleinstall
  1697. os2_distinstall:
  1698. $(MAKE) -C os2 distinstall
  1699. os2_zipinstall:
  1700. $(MAKE) -C os2 zipinstall
  1701. os2_zipsourceinstall:
  1702. $(MAKE) -C os2 zipsourceinstall
  1703. os2_zipexampleinstall:
  1704. $(MAKE) -C os2 zipexampleinstall
  1705. os2_zipdistinstall:
  1706. $(MAKE) -C os2 zipdistinstall
  1707. os2_clean:
  1708. $(MAKE) -C os2 clean
  1709. os2_distclean:
  1710. $(MAKE) -C os2 distclean
  1711. os2_cleanall:
  1712. $(MAKE) -C os2 cleanall
  1713. os2_info:
  1714. $(MAKE) -C os2 info
  1715. os2_makefiles:
  1716. $(MAKE) -C os2 makefiles
  1717. os2:
  1718. $(MAKE) -C os2 all
  1719. .PHONY: os2_all os2_debug os2_smart os2_release os2_examples os2_shared os2_install os2_sourceinstall os2_exampleinstall os2_distinstall os2_zipinstall os2_zipsourceinstall os2_zipexampleinstall os2_zipdistinstall os2_clean os2_distclean os2_cleanall os2_info os2_makefiles os2
  1720. endif
  1721. ifdef TARGET_DIRS_FREEBSD
  1722. freebsd_all:
  1723. $(MAKE) -C freebsd all
  1724. freebsd_debug:
  1725. $(MAKE) -C freebsd debug
  1726. freebsd_smart:
  1727. $(MAKE) -C freebsd smart
  1728. freebsd_release:
  1729. $(MAKE) -C freebsd release
  1730. freebsd_examples:
  1731. $(MAKE) -C freebsd examples
  1732. freebsd_shared:
  1733. $(MAKE) -C freebsd shared
  1734. freebsd_install:
  1735. $(MAKE) -C freebsd install
  1736. freebsd_sourceinstall:
  1737. $(MAKE) -C freebsd sourceinstall
  1738. freebsd_exampleinstall:
  1739. $(MAKE) -C freebsd exampleinstall
  1740. freebsd_distinstall:
  1741. $(MAKE) -C freebsd distinstall
  1742. freebsd_zipinstall:
  1743. $(MAKE) -C freebsd zipinstall
  1744. freebsd_zipsourceinstall:
  1745. $(MAKE) -C freebsd zipsourceinstall
  1746. freebsd_zipexampleinstall:
  1747. $(MAKE) -C freebsd zipexampleinstall
  1748. freebsd_zipdistinstall:
  1749. $(MAKE) -C freebsd zipdistinstall
  1750. freebsd_clean:
  1751. $(MAKE) -C freebsd clean
  1752. freebsd_distclean:
  1753. $(MAKE) -C freebsd distclean
  1754. freebsd_cleanall:
  1755. $(MAKE) -C freebsd cleanall
  1756. freebsd_info:
  1757. $(MAKE) -C freebsd info
  1758. freebsd_makefiles:
  1759. $(MAKE) -C freebsd makefiles
  1760. freebsd:
  1761. $(MAKE) -C freebsd all
  1762. .PHONY: freebsd_all freebsd_debug freebsd_smart freebsd_release freebsd_examples freebsd_shared freebsd_install freebsd_sourceinstall freebsd_exampleinstall freebsd_distinstall freebsd_zipinstall freebsd_zipsourceinstall freebsd_zipexampleinstall freebsd_zipdistinstall freebsd_clean freebsd_distclean freebsd_cleanall freebsd_info freebsd_makefiles freebsd
  1763. endif
  1764. ifdef TARGET_DIRS_BEOS
  1765. beos_all:
  1766. $(MAKE) -C beos all
  1767. beos_debug:
  1768. $(MAKE) -C beos debug
  1769. beos_smart:
  1770. $(MAKE) -C beos smart
  1771. beos_release:
  1772. $(MAKE) -C beos release
  1773. beos_examples:
  1774. $(MAKE) -C beos examples
  1775. beos_shared:
  1776. $(MAKE) -C beos shared
  1777. beos_install:
  1778. $(MAKE) -C beos install
  1779. beos_sourceinstall:
  1780. $(MAKE) -C beos sourceinstall
  1781. beos_exampleinstall:
  1782. $(MAKE) -C beos exampleinstall
  1783. beos_distinstall:
  1784. $(MAKE) -C beos distinstall
  1785. beos_zipinstall:
  1786. $(MAKE) -C beos zipinstall
  1787. beos_zipsourceinstall:
  1788. $(MAKE) -C beos zipsourceinstall
  1789. beos_zipexampleinstall:
  1790. $(MAKE) -C beos zipexampleinstall
  1791. beos_zipdistinstall:
  1792. $(MAKE) -C beos zipdistinstall
  1793. beos_clean:
  1794. $(MAKE) -C beos clean
  1795. beos_distclean:
  1796. $(MAKE) -C beos distclean
  1797. beos_cleanall:
  1798. $(MAKE) -C beos cleanall
  1799. beos_info:
  1800. $(MAKE) -C beos info
  1801. beos_makefiles:
  1802. $(MAKE) -C beos makefiles
  1803. beos:
  1804. $(MAKE) -C beos all
  1805. .PHONY: beos_all beos_debug beos_smart beos_release beos_examples beos_shared beos_install beos_sourceinstall beos_exampleinstall beos_distinstall beos_zipinstall beos_zipsourceinstall beos_zipexampleinstall beos_zipdistinstall beos_clean beos_distclean beos_cleanall beos_info beos_makefiles beos
  1806. endif
  1807. ifdef TARGET_DIRS_NETBSD
  1808. netbsd_all:
  1809. $(MAKE) -C netbsd all
  1810. netbsd_debug:
  1811. $(MAKE) -C netbsd debug
  1812. netbsd_smart:
  1813. $(MAKE) -C netbsd smart
  1814. netbsd_release:
  1815. $(MAKE) -C netbsd release
  1816. netbsd_examples:
  1817. $(MAKE) -C netbsd examples
  1818. netbsd_shared:
  1819. $(MAKE) -C netbsd shared
  1820. netbsd_install:
  1821. $(MAKE) -C netbsd install
  1822. netbsd_sourceinstall:
  1823. $(MAKE) -C netbsd sourceinstall
  1824. netbsd_exampleinstall:
  1825. $(MAKE) -C netbsd exampleinstall
  1826. netbsd_distinstall:
  1827. $(MAKE) -C netbsd distinstall
  1828. netbsd_zipinstall:
  1829. $(MAKE) -C netbsd zipinstall
  1830. netbsd_zipsourceinstall:
  1831. $(MAKE) -C netbsd zipsourceinstall
  1832. netbsd_zipexampleinstall:
  1833. $(MAKE) -C netbsd zipexampleinstall
  1834. netbsd_zipdistinstall:
  1835. $(MAKE) -C netbsd zipdistinstall
  1836. netbsd_clean:
  1837. $(MAKE) -C netbsd clean
  1838. netbsd_distclean:
  1839. $(MAKE) -C netbsd distclean
  1840. netbsd_cleanall:
  1841. $(MAKE) -C netbsd cleanall
  1842. netbsd_info:
  1843. $(MAKE) -C netbsd info
  1844. netbsd_makefiles:
  1845. $(MAKE) -C netbsd makefiles
  1846. netbsd:
  1847. $(MAKE) -C netbsd all
  1848. .PHONY: netbsd_all netbsd_debug netbsd_smart netbsd_release netbsd_examples netbsd_shared netbsd_install netbsd_sourceinstall netbsd_exampleinstall netbsd_distinstall netbsd_zipinstall netbsd_zipsourceinstall netbsd_zipexampleinstall netbsd_zipdistinstall netbsd_clean netbsd_distclean netbsd_cleanall netbsd_info netbsd_makefiles netbsd
  1849. endif
  1850. ifdef TARGET_DIRS_AMIGA
  1851. amiga_all:
  1852. $(MAKE) -C amiga all
  1853. amiga_debug:
  1854. $(MAKE) -C amiga debug
  1855. amiga_smart:
  1856. $(MAKE) -C amiga smart
  1857. amiga_release:
  1858. $(MAKE) -C amiga release
  1859. amiga_examples:
  1860. $(MAKE) -C amiga examples
  1861. amiga_shared:
  1862. $(MAKE) -C amiga shared
  1863. amiga_install:
  1864. $(MAKE) -C amiga install
  1865. amiga_sourceinstall:
  1866. $(MAKE) -C amiga sourceinstall
  1867. amiga_exampleinstall:
  1868. $(MAKE) -C amiga exampleinstall
  1869. amiga_distinstall:
  1870. $(MAKE) -C amiga distinstall
  1871. amiga_zipinstall:
  1872. $(MAKE) -C amiga zipinstall
  1873. amiga_zipsourceinstall:
  1874. $(MAKE) -C amiga zipsourceinstall
  1875. amiga_zipexampleinstall:
  1876. $(MAKE) -C amiga zipexampleinstall
  1877. amiga_zipdistinstall:
  1878. $(MAKE) -C amiga zipdistinstall
  1879. amiga_clean:
  1880. $(MAKE) -C amiga clean
  1881. amiga_distclean:
  1882. $(MAKE) -C amiga distclean
  1883. amiga_cleanall:
  1884. $(MAKE) -C amiga cleanall
  1885. amiga_info:
  1886. $(MAKE) -C amiga info
  1887. amiga_makefiles:
  1888. $(MAKE) -C amiga makefiles
  1889. amiga:
  1890. $(MAKE) -C amiga all
  1891. .PHONY: amiga_all amiga_debug amiga_smart amiga_release amiga_examples amiga_shared amiga_install amiga_sourceinstall amiga_exampleinstall amiga_distinstall amiga_zipinstall amiga_zipsourceinstall amiga_zipexampleinstall amiga_zipdistinstall amiga_clean amiga_distclean amiga_cleanall amiga_info amiga_makefiles amiga
  1892. endif
  1893. ifdef TARGET_DIRS_DARWIN
  1894. darwin_all:
  1895. $(MAKE) -C darwin all
  1896. darwin_debug:
  1897. $(MAKE) -C darwin debug
  1898. darwin_smart:
  1899. $(MAKE) -C darwin smart
  1900. darwin_release:
  1901. $(MAKE) -C darwin release
  1902. darwin_examples:
  1903. $(MAKE) -C darwin examples
  1904. darwin_shared:
  1905. $(MAKE) -C darwin shared
  1906. darwin_install:
  1907. $(MAKE) -C darwin install
  1908. darwin_sourceinstall:
  1909. $(MAKE) -C darwin sourceinstall
  1910. darwin_exampleinstall:
  1911. $(MAKE) -C darwin exampleinstall
  1912. darwin_distinstall:
  1913. $(MAKE) -C darwin distinstall
  1914. darwin_zipinstall:
  1915. $(MAKE) -C darwin zipinstall
  1916. darwin_zipsourceinstall:
  1917. $(MAKE) -C darwin zipsourceinstall
  1918. darwin_zipexampleinstall:
  1919. $(MAKE) -C darwin zipexampleinstall
  1920. darwin_zipdistinstall:
  1921. $(MAKE) -C darwin zipdistinstall
  1922. darwin_clean:
  1923. $(MAKE) -C darwin clean
  1924. darwin_distclean:
  1925. $(MAKE) -C darwin distclean
  1926. darwin_cleanall:
  1927. $(MAKE) -C darwin cleanall
  1928. darwin_info:
  1929. $(MAKE) -C darwin info
  1930. darwin_makefiles:
  1931. $(MAKE) -C darwin makefiles
  1932. darwin:
  1933. $(MAKE) -C darwin all
  1934. .PHONY: darwin_all darwin_debug darwin_smart darwin_release darwin_examples darwin_shared darwin_install darwin_sourceinstall darwin_exampleinstall darwin_distinstall darwin_zipinstall darwin_zipsourceinstall darwin_zipexampleinstall darwin_zipdistinstall darwin_clean darwin_distclean darwin_cleanall darwin_info darwin_makefiles darwin
  1935. endif
  1936. ifdef TARGET_DIRS_EMX
  1937. emx_all:
  1938. $(MAKE) -C emx all
  1939. emx_debug:
  1940. $(MAKE) -C emx debug
  1941. emx_smart:
  1942. $(MAKE) -C emx smart
  1943. emx_release:
  1944. $(MAKE) -C emx release
  1945. emx_examples:
  1946. $(MAKE) -C emx examples
  1947. emx_shared:
  1948. $(MAKE) -C emx shared
  1949. emx_install:
  1950. $(MAKE) -C emx install
  1951. emx_sourceinstall:
  1952. $(MAKE) -C emx sourceinstall
  1953. emx_exampleinstall:
  1954. $(MAKE) -C emx exampleinstall
  1955. emx_distinstall:
  1956. $(MAKE) -C emx distinstall
  1957. emx_zipinstall:
  1958. $(MAKE) -C emx zipinstall
  1959. emx_zipsourceinstall:
  1960. $(MAKE) -C emx zipsourceinstall
  1961. emx_zipexampleinstall:
  1962. $(MAKE) -C emx zipexampleinstall
  1963. emx_zipdistinstall:
  1964. $(MAKE) -C emx zipdistinstall
  1965. emx_clean:
  1966. $(MAKE) -C emx clean
  1967. emx_distclean:
  1968. $(MAKE) -C emx distclean
  1969. emx_cleanall:
  1970. $(MAKE) -C emx cleanall
  1971. emx_info:
  1972. $(MAKE) -C emx info
  1973. emx_makefiles:
  1974. $(MAKE) -C emx makefiles
  1975. emx:
  1976. $(MAKE) -C emx all
  1977. .PHONY: emx_all emx_debug emx_smart emx_release emx_examples emx_shared emx_install emx_sourceinstall emx_exampleinstall emx_distinstall emx_zipinstall emx_zipsourceinstall emx_zipexampleinstall emx_zipdistinstall emx_clean emx_distclean emx_cleanall emx_info emx_makefiles emx
  1978. endif
  1979. all: $(addsuffix _all,$(TARGET_DIRS))
  1980. debug: $(addsuffix _debug,$(TARGET_DIRS))
  1981. smart: $(addsuffix _smart,$(TARGET_DIRS))
  1982. release: $(addsuffix _release,$(TARGET_DIRS))
  1983. examples: $(addsuffix _examples,$(TARGET_DIRS))
  1984. shared: $(addsuffix _shared,$(TARGET_DIRS))
  1985. install: fpc_install $(addsuffix _install,$(TARGET_DIRS))
  1986. sourceinstall: fpc_sourceinstall
  1987. exampleinstall: fpc_exampleinstall $(addsuffix _exampleinstall,$(TARGET_DIRS))
  1988. distinstall: fpc_distinstall
  1989. zipinstall: fpc_zipinstall
  1990. zipsourceinstall: fpc_zipsourceinstall
  1991. zipexampleinstall: fpc_zipexampleinstall $(addsuffix _zipexampleinstall,$(TARGET_DIRS))
  1992. zipdistinstall: fpc_zipdistinstall
  1993. clean: fpc_clean $(addsuffix _clean,$(TARGET_DIRS))
  1994. distclean: fpc_distclean $(addsuffix _distclean,$(TARGET_DIRS))
  1995. cleanall: fpc_cleanall $(addsuffix _cleanall,$(TARGET_DIRS))
  1996. info: fpc_info
  1997. makefiles: fpc_makefiles
  1998. .PHONY: all debug smart release examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  1999. ifneq ($(wildcard fpcmake.loc),)
  2000. include fpcmake.loc
  2001. endif