Makefile 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 1.1 [2001/12/11]
  3. #
  4. default: all
  5. override PATH:=$(subst \,/,$(PATH))
  6. ifeq ($(findstring ;,$(PATH)),)
  7. inUnix=1
  8. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  9. else
  10. SEARCHPATH:=$(subst ;, ,$(PATH))
  11. endif
  12. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  13. ifeq ($(PWD),)
  14. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  15. ifeq ($(PWD),)
  16. nopwd:
  17. @echo You need the GNU utils package to use this Makefile!
  18. @echo Get ftp://ftp.freepascal.org/pub/fpc/dist/go32v2/utilgo32.zip
  19. @exit
  20. else
  21. PWD:=$(firstword $(PWD))
  22. SRCEXEEXT=
  23. endif
  24. else
  25. PWD:=$(firstword $(PWD))
  26. SRCEXEEXT=.exe
  27. endif
  28. ifndef inUnix
  29. ifeq ($(OS),Windows_NT)
  30. inWinNT=1
  31. else
  32. ifdef OS2_SHELL
  33. inOS2=1
  34. endif
  35. endif
  36. else
  37. ifneq ($(findstring cygwin,$(MACHTYPE)),)
  38. inCygWin=1
  39. endif
  40. endif
  41. ifeq ($(OS_TARGET),freebsd)
  42. BSDhier=1
  43. endif
  44. ifeq ($(OS_TARGET),netbsd)
  45. BSDhier=1
  46. endif
  47. ifdef inUnix
  48. BATCHEXT=.sh
  49. else
  50. ifdef inOS2
  51. BATCHEXT=.cmd
  52. else
  53. BATCHEXT=.bat
  54. endif
  55. endif
  56. ifdef inUnix
  57. PATHSEP=/
  58. else
  59. PATHSEP:=$(subst /,\,/)
  60. endif
  61. ifdef PWD
  62. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  63. ifdef inCygWin
  64. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  65. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  66. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  67. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  68. endif
  69. endif
  70. else
  71. BASEDIR=.
  72. endif
  73. ifndef FPC
  74. ifdef PP
  75. FPC=$(PP)
  76. endif
  77. endif
  78. ifndef FPC
  79. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  80. ifneq ($(FPCPROG),)
  81. FPCPROG:=$(firstword $(FPCPROG))
  82. FPC:=$(shell $(FPCPROG) -PB)
  83. ifneq ($(findstring Error,$(FPC)),)
  84. override FPC=ppc386
  85. endif
  86. else
  87. override FPC=ppc386
  88. endif
  89. endif
  90. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  91. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  92. ifndef FPC_VERSION
  93. FPC_VERSION:=$(shell $(FPC) -iV)
  94. endif
  95. export FPC FPC_VERSION
  96. ifndef CPU_TARGET
  97. CPU_TARGET:=$(shell $(FPC) -iTP)
  98. endif
  99. ifndef CPU_SOURCE
  100. CPU_SOURCE:=$(shell $(FPC) -iSP)
  101. endif
  102. ifndef OS_TARGET
  103. OS_TARGET:=$(shell $(FPC) -iTO)
  104. endif
  105. ifndef OS_SOURCE
  106. OS_SOURCE:=$(shell $(FPC) -iSO)
  107. endif
  108. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  109. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  110. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  111. CROSSCOMPILE=1
  112. endif
  113. export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE CROSSCOMPILE
  114. ifdef FPCDIR
  115. override FPCDIR:=$(subst \,/,$(FPCDIR))
  116. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  117. override FPCDIR=wrong
  118. endif
  119. else
  120. override FPCDIR=wrong
  121. endif
  122. ifeq ($(FPCDIR),wrong)
  123. override FPCDIR=../..
  124. ifeq ($(wildcard $(FPCDIR)/rtl),)
  125. ifeq ($(wildcard $(FPCDIR)/units),)
  126. override FPCDIR=wrong
  127. endif
  128. endif
  129. endif
  130. ifeq ($(FPCDIR),wrong)
  131. ifdef inUnix
  132. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  133. ifeq ($(wildcard $(FPCDIR)/units),)
  134. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  135. endif
  136. else
  137. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  138. override FPCDIR:=$(FPCDIR)/..
  139. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  140. override FPCDIR:=$(FPCDIR)/..
  141. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  142. override FPCDIR=c:/pp
  143. endif
  144. endif
  145. endif
  146. endif
  147. ifndef CROSSDIR
  148. CROSSDIR:=$(FPCDIR)/cross/$(FULL_TARGET)
  149. endif
  150. ifndef CROSSTARGETDIR
  151. CROSSTARGETDIR=$(CROSSDIR)/$(FULL_TARGET)
  152. endif
  153. ifdef CROSSCOMPILE
  154. UNITSDIR:=$(wildcard $(CROSSTARGETDIR)/units)
  155. ifeq ($(UNITSDIR),)
  156. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  157. endif
  158. else
  159. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  160. endif
  161. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  162. ifeq ($(OS_TARGET),linux)
  163. override TARGET_PROGRAMS+=daemon
  164. endif
  165. ifdef REQUIRE_UNITSDIR
  166. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  167. endif
  168. ifdef REQUIRE_PACKAGESDIR
  169. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  170. endif
  171. ifdef ZIPINSTALL
  172. ifeq ($(OS_TARGET),linux)
  173. UNIXINSTALLDIR=1
  174. endif
  175. ifeq ($(OS_TARGET),freebsd)
  176. UNIXINSTALLDIR=1
  177. endif
  178. ifeq ($(OS_TARGET),netbsd)
  179. UNIXINSTALLDIR=1
  180. endif
  181. else
  182. ifeq ($(OS_SOURCE),linux)
  183. UNIXINSTALLDIR=1
  184. endif
  185. ifeq ($(OS_SOURCE),freebsd)
  186. UNIXINSTALLDIR=1
  187. endif
  188. ifeq ($(OS_SOURCE),netbsd)
  189. UNIXINSTALLDIR=1
  190. endif
  191. endif
  192. ifndef INSTALL_PREFIX
  193. ifdef UNIXINSTALLDIR
  194. INSTALL_PREFIX=/usr/local
  195. else
  196. ifdef INSTALL_FPCPACKAGE
  197. INSTALL_BASEDIR:=/pp
  198. else
  199. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  200. endif
  201. endif
  202. endif
  203. export INSTALL_PREFIX
  204. ifndef DIST_DESTDIR
  205. DIST_DESTDIR:=$(BASEDIR)
  206. endif
  207. export DIST_DESTDIR
  208. ifndef INSTALL_BASEDIR
  209. ifdef UNIXINSTALLDIR
  210. ifdef INSTALL_FPCPACKAGE
  211. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  212. else
  213. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  214. endif
  215. else
  216. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  217. endif
  218. endif
  219. ifndef INSTALL_BINDIR
  220. ifdef UNIXINSTALLDIR
  221. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  222. else
  223. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  224. ifdef INSTALL_FPCPACKAGE
  225. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)
  226. endif
  227. endif
  228. endif
  229. ifndef INSTALL_UNITDIR
  230. ifdef CROSSCOMPILE
  231. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/units
  232. else
  233. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(OS_TARGET)
  234. endif
  235. ifdef INSTALL_FPCPACKAGE
  236. ifdef PACKAGE_NAME
  237. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  238. endif
  239. endif
  240. endif
  241. ifndef INSTALL_LIBDIR
  242. ifdef UNIXINSTALLDIR
  243. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  244. else
  245. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  246. endif
  247. endif
  248. ifndef INSTALL_SOURCEDIR
  249. ifdef UNIXINSTALLDIR
  250. ifdef INSTALL_FPCPACKAGE
  251. ifdef BSDhier
  252. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/share/src/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  253. else
  254. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/src/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  255. endif
  256. else
  257. ifdef BSDhier
  258. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/share/src/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  259. else
  260. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/src/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  261. endif
  262. endif
  263. else
  264. ifdef INSTALL_FPCPACKAGE
  265. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  266. else
  267. INSTALL_SOURCEDIRL:=$(INSTALL_BASEDIR)/source
  268. endif
  269. endif
  270. endif
  271. ifndef INSTALL_DOCDIR
  272. ifdef UNIXINSTALLDIR
  273. ifdef INSTALL_FPCPACKAGE
  274. ifdef BSDhier
  275. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/share/doc/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  276. else
  277. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  278. endif
  279. else
  280. ifdef BSDhier
  281. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/share/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  282. else
  283. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  284. endif
  285. endif
  286. else
  287. ifdef INSTALL_FPCPACKAGE
  288. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  289. else
  290. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  291. endif
  292. endif
  293. endif
  294. ifndef INSTALL_EXAMPLEDIR
  295. ifdef UNIXINSTALLDIR
  296. ifdef INSTALL_FPCPACKAGE
  297. ifdef BSDhier
  298. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  299. else
  300. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  301. endif
  302. else
  303. ifdef BSDhier
  304. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  305. else
  306. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  307. endif
  308. endif
  309. else
  310. ifdef INSTALL_FPCPACKAGE
  311. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  312. else
  313. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  314. endif
  315. endif
  316. endif
  317. ifndef INSTALL_DATADIR
  318. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  319. endif
  320. ifdef CROSSCOMPILE
  321. ifndef CROSSBINDIR
  322. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(FULL_SOURCE))
  323. ifeq ($(CROSSBINDIR),)
  324. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin/$(FULL_SOURCE))
  325. endif
  326. endif
  327. else
  328. CROSSBINDIR=
  329. endif
  330. LOADEREXT=.as
  331. EXEEXT=.exe
  332. PPLEXT=.ppl
  333. PPUEXT=.ppu
  334. OEXT=.o
  335. ASMEXT=.s
  336. SMARTEXT=.sl
  337. STATICLIBEXT=.a
  338. SHAREDLIBEXT=.so
  339. STATICLIBPREFIX=libp
  340. RSTEXT=.rst
  341. FPCMADE=fpcmade
  342. ifeq ($(OS_TARGET),go32v1)
  343. PPUEXT=.pp1
  344. OEXT=.o1
  345. ASMEXT=.s1
  346. SMARTEXT=.sl1
  347. STATICLIBEXT=.a1
  348. SHAREDLIBEXT=.so1
  349. STATICLIBPREFIX=
  350. FPCMADE=fpcmade.v1
  351. PACKAGESUFFIX=v1
  352. endif
  353. ifeq ($(OS_TARGET),go32v2)
  354. STATICLIBPREFIX=
  355. FPCMADE=fpcmade.dos
  356. ZIPSUFFIX=go32
  357. endif
  358. ifeq ($(OS_TARGET),linux)
  359. EXEEXT=
  360. HASSHAREDLIB=1
  361. FPCMADE=fpcmade.lnx
  362. ZIPSUFFIX=linux
  363. endif
  364. ifeq ($(OS_TARGET),freebsd)
  365. EXEEXT=
  366. HASSHAREDLIB=1
  367. FPCMADE=fpcmade.freebsd
  368. ZIPSUFFIX=freebsd
  369. endif
  370. ifeq ($(OS_TARGET),netbsd)
  371. EXEEXT=
  372. HASSHAREDLIB=1
  373. FPCMADE=fpcmade.netbsd
  374. ZIPSUFFIX=netbsd
  375. endif
  376. ifeq ($(OS_TARGET),win32)
  377. PPUEXT=.ppw
  378. OEXT=.ow
  379. ASMEXT=.sw
  380. SMARTEXT=.slw
  381. STATICLIBEXT=.aw
  382. SHAREDLIBEXT=.dll
  383. FPCMADE=fpcmade.w32
  384. ZIPSUFFIX=w32
  385. endif
  386. ifeq ($(OS_TARGET),os2)
  387. PPUEXT=.ppo
  388. ASMEXT=.so2
  389. OEXT=.oo2
  390. AOUTEXT=.out
  391. SMARTEXT=.so
  392. STATICLIBEXT=.ao2
  393. SHAREDLIBEXT=.dll
  394. FPCMADE=fpcmade.os2
  395. ZIPSUFFIX=emx
  396. endif
  397. ifeq ($(OS_TARGET),amiga)
  398. EXEEXT=
  399. PPUEXT=.ppa
  400. ASMEXT=.asm
  401. OEXT=.o
  402. SMARTEXT=.sl
  403. STATICLIBEXT=.a
  404. SHAREDLIBEXT=.library
  405. FPCMADE=fpcmade.amg
  406. endif
  407. ifeq ($(OS_TARGET),atari)
  408. PPUEXT=.ppt
  409. ASMEXT=.s
  410. OEXT=.o
  411. SMARTEXT=.sl
  412. STATICLIBEXT=.a
  413. EXEEXT=.ttp
  414. FPCMADE=fpcmade.ata
  415. endif
  416. ifeq ($(OS_TARGET),beos)
  417. PPUEXT=.ppu
  418. ASMEXT=.s
  419. OEXT=.o
  420. SMARTEXT=.sl
  421. STATICLIBEXT=.a
  422. EXEEXT=
  423. FPCMADE=fpcmade.be
  424. ZIPSUFFIX=be
  425. endif
  426. ifeq ($(OS_TARGET),sunos)
  427. PPUEXT=.ppu
  428. ASMEXT=.s
  429. OEXT=.o
  430. SMARTEXT=.sl
  431. STATICLIBEXT=.a
  432. EXEEXT=
  433. FPCMADE=fpcmade.sun
  434. ZIPSUFFIX=sun
  435. endif
  436. ifeq ($(OS_TARGET),qnx)
  437. PPUEXT=.ppu
  438. ASMEXT=.s
  439. OEXT=.o
  440. SMARTEXT=.sl
  441. STATICLIBEXT=.a
  442. EXEEXT=
  443. FPCMADE=fpcmade.qnx
  444. ZIPSUFFIX=qnx
  445. endif
  446. ifndef ECHO
  447. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  448. ifeq ($(ECHO),)
  449. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  450. ifeq ($(ECHO),)
  451. ECHO=
  452. else
  453. ECHO:=$(firstword $(ECHO))
  454. endif
  455. else
  456. ECHO:=$(firstword $(ECHO))
  457. endif
  458. endif
  459. export ECHO
  460. ifndef DATE
  461. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  462. ifeq ($(DATE),)
  463. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  464. ifeq ($(DATE),)
  465. DATE=
  466. else
  467. DATE:=$(firstword $(DATE))
  468. endif
  469. else
  470. DATE:=$(firstword $(DATE))
  471. endif
  472. endif
  473. export DATE
  474. ifndef GINSTALL
  475. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  476. ifeq ($(GINSTALL),)
  477. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  478. ifeq ($(GINSTALL),)
  479. GINSTALL=
  480. else
  481. GINSTALL:=$(firstword $(GINSTALL))
  482. endif
  483. else
  484. GINSTALL:=$(firstword $(GINSTALL))
  485. endif
  486. endif
  487. export GINSTALL
  488. ifndef CPPROG
  489. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  490. ifeq ($(CPPROG),)
  491. CPPROG=
  492. else
  493. CPPROG:=$(firstword $(CPPROG))
  494. endif
  495. endif
  496. export CPPROG
  497. ifndef RMPROG
  498. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  499. ifeq ($(RMPROG),)
  500. RMPROG=
  501. else
  502. RMPROG:=$(firstword $(RMPROG))
  503. endif
  504. endif
  505. export RMPROG
  506. ifndef MVPROG
  507. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  508. ifeq ($(MVPROG),)
  509. MVPROG=
  510. else
  511. MVPROG:=$(firstword $(MVPROG))
  512. endif
  513. endif
  514. export MVPROG
  515. ifndef ECHOREDIR
  516. ECHOREDIR:=$(subst /,$(PATHSEP),$(ECHO))
  517. endif
  518. ifndef COPY
  519. COPY:=$(CPPROG) -fp
  520. endif
  521. ifndef COPYTREE
  522. COPYTREE:=$(CPPROG) -rfp
  523. endif
  524. ifndef MOVE
  525. MOVE:=$(MVPROG) -f
  526. endif
  527. ifndef DEL
  528. DEL:=$(RMPROG) -f
  529. endif
  530. ifndef DELTREE
  531. DELTREE:=$(RMPROG) -rf
  532. endif
  533. ifndef INSTALL
  534. ifdef inUnix
  535. INSTALL:=$(GINSTALL) -c -m 644
  536. else
  537. INSTALL:=$(COPY)
  538. endif
  539. endif
  540. ifndef INSTALLEXE
  541. ifdef inUnix
  542. INSTALLEXE:=$(GINSTALL) -c -m 755
  543. else
  544. INSTALLEXE:=$(COPY)
  545. endif
  546. endif
  547. ifndef MKDIR
  548. MKDIR:=$(GINSTALL) -m 755 -d
  549. endif
  550. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  551. ifndef PPUMOVE
  552. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  553. ifeq ($(PPUMOVE),)
  554. PPUMOVE=
  555. else
  556. PPUMOVE:=$(firstword $(PPUMOVE))
  557. endif
  558. endif
  559. export PPUMOVE
  560. ifndef FPCMAKE
  561. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  562. ifeq ($(FPCMAKE),)
  563. FPCMAKE=
  564. else
  565. FPCMAKE:=$(firstword $(FPCMAKE))
  566. endif
  567. endif
  568. export FPCMAKE
  569. ifndef ZIPPROG
  570. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  571. ifeq ($(ZIPPROG),)
  572. ZIPPROG=
  573. else
  574. ZIPPROG:=$(firstword $(ZIPPROG))
  575. endif
  576. endif
  577. export ZIPPROG
  578. ifndef TARPROG
  579. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  580. ifeq ($(TARPROG),)
  581. TARPROG=
  582. else
  583. TARPROG:=$(firstword $(TARPROG))
  584. endif
  585. endif
  586. export TARPROG
  587. ASNAME=as
  588. LDNAME=ld
  589. ARNAME=ar
  590. RCNAME=rc
  591. ifeq ($(OS_TARGET),win32)
  592. ASNAME=asw
  593. LDNAME=ldw
  594. ARNAME=arw
  595. endif
  596. ifndef ASPROG
  597. ifdef CROSSBINDIR
  598. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  599. else
  600. ASPROG=$(ASNAME)
  601. endif
  602. endif
  603. ifndef LDPROG
  604. ifdef CROSSBINDIR
  605. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  606. else
  607. LDPROG=$(LDNAME)
  608. endif
  609. endif
  610. ifndef RCPROG
  611. ifdef CROSSBINDIR
  612. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  613. else
  614. RCPROG=$(RCNAME)
  615. endif
  616. endif
  617. ifndef ARPROG
  618. ifdef CROSSBINDIR
  619. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  620. else
  621. ARPROG=$(ARNAME)
  622. endif
  623. endif
  624. AS=$(ASPROG)
  625. LD=$(LDPROG)
  626. RC=$(RCPROG)
  627. AR=$(ARPROG)
  628. PPAS=ppas$(BATCHEXT)
  629. ifdef inUnix
  630. LDCONFIG=ldconfig
  631. else
  632. LDCONFIG=
  633. endif
  634. ifdef DATE
  635. DATESTR:=$(shell $(DATE) +%Y%m%d)
  636. else
  637. DATESTR=
  638. endif
  639. ifndef UPXPROG
  640. ifeq ($(OS_TARGET),go32v2)
  641. UPXPROG:=1
  642. endif
  643. ifeq ($(OS_TARGET),win32)
  644. UPXPROG:=1
  645. endif
  646. ifdef UPXPROG
  647. UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
  648. ifeq ($(UPXPROG),)
  649. UPXPROG=
  650. else
  651. UPXPROG:=$(firstword $(UPXPROG))
  652. endif
  653. else
  654. UPXPROG=
  655. endif
  656. endif
  657. export UPXPROG
  658. ZIPOPT=-9
  659. ZIPEXT=.zip
  660. ifeq ($(USETAR),bz2)
  661. TAROPT=vI
  662. TAREXT=.tar.bz2
  663. else
  664. TAROPT=vz
  665. TAREXT=.tar.gz
  666. endif
  667. ifeq ($(OS_TARGET),linux)
  668. REQUIRE_PACKAGES_RTL=1
  669. endif
  670. ifeq ($(OS_TARGET),go32v2)
  671. REQUIRE_PACKAGES_RTL=1
  672. endif
  673. ifeq ($(OS_TARGET),win32)
  674. REQUIRE_PACKAGES_RTL=1
  675. endif
  676. ifeq ($(OS_TARGET),os2)
  677. REQUIRE_PACKAGES_RTL=1
  678. endif
  679. ifeq ($(OS_TARGET),freebsd)
  680. REQUIRE_PACKAGES_RTL=1
  681. endif
  682. ifeq ($(OS_TARGET),beos)
  683. REQUIRE_PACKAGES_RTL=1
  684. endif
  685. ifeq ($(OS_TARGET),netbsd)
  686. REQUIRE_PACKAGES_RTL=1
  687. endif
  688. ifeq ($(OS_TARGET),amiga)
  689. REQUIRE_PACKAGES_RTL=1
  690. endif
  691. ifeq ($(OS_TARGET),atari)
  692. REQUIRE_PACKAGES_RTL=1
  693. endif
  694. ifdef REQUIRE_PACKAGES_RTL
  695. PACKAGEDIR_RTL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR)))))
  696. ifneq ($(PACKAGEDIR_RTL),)
  697. PACKAGEDIR_RTL:=$(firstword $(PACKAGEDIR_RTL))
  698. ifeq ($(wildcard $(PACKAGEDIR_RTL)/$(FPCMADE)),)
  699. override COMPILEPACKAGES+=package_rtl
  700. package_rtl:
  701. $(MAKE) -C $(PACKAGEDIR_RTL) all
  702. endif
  703. ifneq ($(wildcard $(PACKAGEDIR_RTL)/$(OS_TARGET)),)
  704. UNITDIR_RTL=$(PACKAGEDIR_RTL)/$(OS_TARGET)
  705. else
  706. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  707. endif
  708. else
  709. PACKAGEDIR_RTL=
  710. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  711. ifneq ($(UNITDIR_RTL),)
  712. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  713. else
  714. UNITDIR_RTL=
  715. endif
  716. endif
  717. ifdef UNITDIR_RTL
  718. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  719. endif
  720. endif
  721. .PHONY: package_rtl
  722. ifndef NOCPUDEF
  723. override FPCOPTDEF=$(CPU_TARGET)
  724. endif
  725. ifneq ($(OS_TARGET),$(OS_SOURCE))
  726. override FPCOPT+=-T$(OS_TARGET)
  727. endif
  728. ifdef UNITDIR
  729. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  730. endif
  731. ifdef LIBDIR
  732. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  733. endif
  734. ifdef OBJDIR
  735. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  736. endif
  737. ifdef INCDIR
  738. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  739. endif
  740. ifdef LINKSMART
  741. override FPCOPT+=-XX
  742. endif
  743. ifdef CREATESMART
  744. override FPCOPT+=-CX
  745. endif
  746. ifdef DEBUG
  747. override FPCOPT+=-gl
  748. override FPCOPTDEF+=DEBUG
  749. endif
  750. ifdef RELEASE
  751. ifeq ($(CPU_TARGET),i386)
  752. FPCCPUOPT:=-OG2p3
  753. else
  754. FPCCPUOPT:=
  755. endif
  756. override FPCOPT+=-Xs $(FPCCPUOPT) -n
  757. override FPCOPTDEF+=RELEASE
  758. endif
  759. ifdef STRIP
  760. override FPCOPT+=-Xs
  761. endif
  762. ifdef OPTIMIZE
  763. ifeq ($(CPU_TARGET),i386)
  764. override FPCOPT+=-OG2p3
  765. endif
  766. endif
  767. ifdef VERBOSE
  768. override FPCOPT+=-vwni
  769. endif
  770. ifdef COMPILER_OPTIONS
  771. override FPCOPT+=$(COMPILER_OPTIONS)
  772. endif
  773. ifdef COMPILER_UNITDIR
  774. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  775. endif
  776. ifdef COMPILER_LIBRARYDIR
  777. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  778. endif
  779. ifdef COMPILER_OBJECTDIR
  780. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  781. endif
  782. ifdef COMPILER_INCLUDEDIR
  783. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  784. endif
  785. ifdef CROSSBINDIR
  786. override FPCOPT+=-FD$(CROSSBINDIR)
  787. endif
  788. ifdef COMPILER_TARGETDIR
  789. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  790. ifeq ($(COMPILER_TARGETDIR),.)
  791. override TARGETDIRPREFIX=
  792. else
  793. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  794. endif
  795. endif
  796. ifdef COMPILER_UNITTARGETDIR
  797. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  798. ifeq ($(COMPILER_UNITTARGETDIR),.)
  799. override UNITTARGETDIRPREFIX=
  800. else
  801. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  802. endif
  803. else
  804. ifdef COMPILER_TARGETDIR
  805. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  806. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  807. endif
  808. endif
  809. ifdef OPT
  810. override FPCOPT+=$(OPT)
  811. endif
  812. ifdef FPCOPTDEF
  813. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  814. endif
  815. ifdef CFGFILE
  816. override FPCOPT+=@$(CFGFILE)
  817. endif
  818. ifdef USEENV
  819. override FPCEXTCMD:=$(FPCOPT)
  820. override FPCOPT:=!FPCEXTCMD
  821. export FPCEXTCMD
  822. endif
  823. override COMPILER:=$(FPC) $(FPCOPT)
  824. ifeq (,$(findstring -s ,$(COMPILER)))
  825. EXECPPAS=
  826. else
  827. ifeq ($(OS_SOURCE),$(OS_TARGET))
  828. EXECPPAS:=@$(PPAS)
  829. endif
  830. endif
  831. .PHONY: fpc_exes
  832. ifdef TARGET_PROGRAMS
  833. override EXEFILES=$(addsuffix $(EXEEXT),$(TARGET_PROGRAMS))
  834. override EXEOFILES:=$(addsuffix $(OEXT),$(TARGET_PROGRAMS)) $(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS)))
  835. override ALLTARGET+=fpc_exes
  836. override INSTALLEXEFILES+=$(EXEFILES)
  837. override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)
  838. ifeq ($(OS_TARGET),os2)
  839. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  840. endif
  841. endif
  842. fpc_exes: $(EXEFILES)
  843. ifdef TARGET_RSTS
  844. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  845. override CLEANRSTFILES+=$(RSTFILES)
  846. endif
  847. .PHONY: fpc_packages fpc_all fpc_smart fpc_debug
  848. $(FPCMADE): $(ALLTARGET)
  849. @$(ECHOREDIR) Compiled > $(FPCMADE)
  850. fpc_packages: $(COMPILEPACKAGES)
  851. fpc_all: fpc_packages $(FPCMADE)
  852. fpc_smart:
  853. $(MAKE) all LINKSMART=1 CREATESMART=1
  854. fpc_debug:
  855. $(MAKE) all DEBUG=1
  856. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .pp
  857. %$(PPUEXT): %.pp
  858. $(COMPILER) $<
  859. $(EXECPPAS)
  860. %$(PPUEXT): %.pas
  861. $(COMPILER) $<
  862. $(EXECPPAS)
  863. %$(EXEEXT): %.pp
  864. $(COMPILER) $<
  865. $(EXECPPAS)
  866. %$(EXEEXT): %.pas
  867. $(COMPILER) $<
  868. $(EXECPPAS)
  869. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  870. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  871. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  872. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  873. ifdef INSTALL_UNITS
  874. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  875. endif
  876. ifdef INSTALLPPUFILES
  877. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  878. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILES))
  879. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILES)))
  880. override INSTALL_CREATEPACKAGEFPC=1
  881. endif
  882. ifdef INSTALLEXEFILES
  883. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INSTALLEXEFILES))
  884. endif
  885. fpc_install: all $(INSTALLTARGET)
  886. ifdef INSTALLEXEFILES
  887. $(MKDIR) $(INSTALL_BINDIR)
  888. ifdef UPXPROG
  889. -$(UPXPROG) $(INSTALLEXEFILES)
  890. endif
  891. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  892. endif
  893. ifdef INSTALL_CREATEPACKAGEFPC
  894. ifdef FPCMAKE
  895. ifdef PACKAGE_VERSION
  896. ifneq ($(wildcard Makefile.fpc),)
  897. $(FPCMAKE) -p -T$(OS_TARGET) Makefile.fpc
  898. $(MKDIR) $(INSTALL_UNITDIR)
  899. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  900. endif
  901. endif
  902. endif
  903. endif
  904. ifdef INSTALLPPUFILES
  905. $(MKDIR) $(INSTALL_UNITDIR)
  906. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  907. ifneq ($(INSTALLPPULINKFILES),)
  908. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  909. endif
  910. ifneq ($(wildcard $(LIB_FULLNAME)),)
  911. $(MKDIR) $(INSTALL_LIBDIR)
  912. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  913. ifdef inUnix
  914. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  915. endif
  916. endif
  917. endif
  918. ifdef INSTALL_FILES
  919. $(MKDIR) $(INSTALL_DATADIR)
  920. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  921. endif
  922. fpc_sourceinstall: distclean
  923. $(MKDIR) $(INSTALL_SOURCEDIR)
  924. $(COPYTREE) $(BASEDIR) $(INSTALL_SOURCEDIR)
  925. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  926. ifdef HASEXAMPLES
  927. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  928. endif
  929. ifdef EXAMPLESOURCEFILES
  930. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  931. endif
  932. ifdef TARGET_EXAMPLEDIRS
  933. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  934. endif
  935. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  936. ifdef EXEFILES
  937. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  938. endif
  939. ifdef CLEAN_UNITS
  940. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  941. endif
  942. ifdef CLEANPPUFILES
  943. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  944. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  945. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  946. endif
  947. fpc_clean: $(CLEANTARGET)
  948. ifdef CLEANEXEFILES
  949. -$(DEL) $(CLEANEXEFILES)
  950. endif
  951. ifdef CLEANPPUFILES
  952. -$(DEL) $(CLEANPPUFILES)
  953. endif
  954. ifneq ($(CLEANPPULINKFILES),)
  955. -$(DEL) $(CLEANPPULINKFILES)
  956. endif
  957. ifdef CLEANRSTFILES
  958. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  959. endif
  960. ifdef CLEAN_FILES
  961. -$(DEL) $(CLEAN_FILES)
  962. endif
  963. ifdef LIB_NAME
  964. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  965. endif
  966. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  967. fpc_distclean: clean
  968. ifdef COMPILER_UNITTARGETDIR
  969. TARGETDIRCLEAN=fpc_clean
  970. endif
  971. fpc_cleanall: $(CLEANTARGET) $(TARGETDIRCLEAN)
  972. ifdef CLEANEXEFILES
  973. -$(DEL) $(CLEANEXEFILES)
  974. endif
  975. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  976. -$(DELTREE) *$(SMARTEXT)
  977. -$(DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
  978. ifdef AOUTEXT
  979. -$(DEL) *$(AOUTEXT)
  980. endif
  981. .PHONY: fpc_info
  982. fpc_info:
  983. @$(ECHO)
  984. @$(ECHO) == Package info ==
  985. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  986. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  987. @$(ECHO)
  988. @$(ECHO) == Configuration info ==
  989. @$(ECHO)
  990. @$(ECHO) FPC.......... $(FPC)
  991. @$(ECHO) FPC Version.. $(FPC_VERSION)
  992. @$(ECHO) Source CPU... $(CPU_SOURCE)
  993. @$(ECHO) Target CPU... $(CPU_TARGET)
  994. @$(ECHO) Source OS.... $(OS_SOURCE)
  995. @$(ECHO) Target OS.... $(OS_TARGET)
  996. @$(ECHO) Full Target.. $(FULL_SOURCE)
  997. @$(ECHO) Full Source.. $(FULL_TARGET)
  998. @$(ECHO)
  999. @$(ECHO) == Directory info ==
  1000. @$(ECHO)
  1001. @$(ECHO) Basedir......... $(BASEDIR)
  1002. @$(ECHO) FPCDir.......... $(FPCDIR)
  1003. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  1004. @$(ECHO) UnitsDir........ $(UNITSDIR)
  1005. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  1006. @$(ECHO)
  1007. @$(ECHO) GCC library..... $(GCCLIBDIR)
  1008. @$(ECHO) Other library... $(OTHERLIBDIR)
  1009. @$(ECHO)
  1010. @$(ECHO) == Tools info ==
  1011. @$(ECHO)
  1012. @$(ECHO) As........ $(AS)
  1013. @$(ECHO) Ld........ $(LD)
  1014. @$(ECHO) Ar........ $(AR)
  1015. @$(ECHO) Rc........ $(RC)
  1016. @$(ECHO)
  1017. @$(ECHO) Mv........ $(MVPROG)
  1018. @$(ECHO) Cp........ $(CPPROG)
  1019. @$(ECHO) Rm........ $(RMPROG)
  1020. @$(ECHO) GInstall.. $(GINSTALL)
  1021. @$(ECHO) Echo...... $(ECHO)
  1022. @$(ECHO) Date...... $(DATE)
  1023. @$(ECHO) FPCMake... $(FPCMAKE)
  1024. @$(ECHO) PPUMove... $(PPUMOVE)
  1025. @$(ECHO) Upx....... $(UPXPROG)
  1026. @$(ECHO) Zip....... $(ZIPPROG)
  1027. @$(ECHO)
  1028. @$(ECHO) == Object info ==
  1029. @$(ECHO)
  1030. @$(ECHO) Target Loaders...... $(TARGET_LOADERS)
  1031. @$(ECHO) Target Units........ $(TARGET_UNITS)
  1032. @$(ECHO) Target Programs..... $(TARGET_PROGRAMS)
  1033. @$(ECHO) Target Dirs......... $(TARGET_DIRS)
  1034. @$(ECHO) Target Examples..... $(TARGET_EXAMPLES)
  1035. @$(ECHO) Target ExampleDirs.. $(TARGET_EXAMPLEDIRS)
  1036. @$(ECHO)
  1037. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  1038. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  1039. @$(ECHO)
  1040. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  1041. @$(ECHO) Install Files....... $(INSTALL_FILES)
  1042. @$(ECHO)
  1043. @$(ECHO) == Install info ==
  1044. @$(ECHO)
  1045. @$(ECHO) DateStr.............. $(DATESTR)
  1046. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  1047. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  1048. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  1049. @$(ECHO)
  1050. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  1051. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  1052. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  1053. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  1054. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  1055. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  1056. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  1057. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  1058. @$(ECHO)
  1059. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  1060. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  1061. @$(ECHO)
  1062. all: fpc_all
  1063. debug: fpc_debug
  1064. smart: fpc_smart
  1065. examples:
  1066. shared:
  1067. install: fpc_install
  1068. sourceinstall: fpc_sourceinstall
  1069. exampleinstall: fpc_exampleinstall
  1070. distinstall:
  1071. zipinstall:
  1072. zipsourceinstall:
  1073. zipexampleinstall:
  1074. zipdistinstall:
  1075. clean: fpc_clean
  1076. distclean: fpc_distclean
  1077. cleanall: fpc_cleanall
  1078. info: fpc_info
  1079. .PHONY: all debug smart examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info
  1080. ifneq ($(wildcard fpcmake.loc),)
  1081. include fpcmake.loc
  1082. endif