Makefile 23 KB

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