Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. #
  2. # Makefile generated by fpcmake v0.99.13 [2000/01/28]
  3. #
  4. defaultrule: all
  5. #####################################################################
  6. # Autodetect OS (Linux or Dos or Windows NT)
  7. # define inlinux when running under linux
  8. # define inWinNT when running under WinNT
  9. #####################################################################
  10. # We need only / in the path
  11. override PATH:=$(subst \,/,$(PATH))
  12. # Search for PWD and determine also if we are under linux
  13. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(subst ;, ,$(PATH)))))
  14. ifeq ($(PWD),)
  15. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(subst :, ,$(PATH)))))
  16. ifeq ($(PWD),)
  17. nopwd:
  18. @echo You need the GNU utils package to use this Makefile!
  19. @echo Get ftp://ftp.freepascal.org/pub/fpc/dist/go32v2/utilgo32.zip
  20. @exit
  21. else
  22. inlinux=1
  23. endif
  24. else
  25. PWD:=$(firstword $(PWD))
  26. endif
  27. # Detect NT - NT sets OS to Windows_NT
  28. ifndef inlinux
  29. ifeq ($(OS),Windows_NT)
  30. inWinNT=1
  31. endif
  32. endif
  33. # Detect OS/2 - OS/2 has OS2_SHELL defined
  34. ifndef inlinux
  35. ifndef inWinNT
  36. ifdef OS2_SHELL
  37. inOS2=1
  38. endif
  39. endif
  40. endif
  41. # The extension of executables
  42. ifdef inlinux
  43. EXEEXT=
  44. else
  45. EXEEXT=.exe
  46. endif
  47. # The path which is searched separated by spaces
  48. ifdef inlinux
  49. SEARCHPATH=$(subst :, ,$(PATH))
  50. else
  51. SEARCHPATH=$(subst ;, ,$(PATH))
  52. endif
  53. # Base dir
  54. ifdef PWD
  55. BASEDIR:=$(shell $(PWD))
  56. else
  57. BASEDIR=.
  58. endif
  59. #####################################################################
  60. # FPC version/target Detection
  61. #####################################################################
  62. # What compiler to use ?
  63. ifndef FPC
  64. # Compatibility with old makefiles
  65. ifdef PP
  66. FPC=$(PP)
  67. else
  68. ifdef inOS2
  69. FPC=ppos2
  70. else
  71. FPC=ppc386
  72. endif
  73. endif
  74. endif
  75. override FPC:=$(subst $(EXEEXT),,$(FPC))
  76. override FPC:=$(subst \,/,$(FPC))$(EXEEXT)
  77. # Target OS
  78. ifndef OS_TARGET
  79. OS_TARGET:=$(shell $(FPC) -iTO)
  80. endif
  81. # Source OS
  82. ifndef OS_SOURCE
  83. OS_SOURCE:=$(shell $(FPC) -iSO)
  84. endif
  85. # Target CPU
  86. ifndef CPU_TARGET
  87. CPU_TARGET:=$(shell $(FPC) -iTP)
  88. endif
  89. # Source CPU
  90. ifndef CPU_SOURCE
  91. CPU_SOURCE:=$(shell $(FPC) -iSP)
  92. endif
  93. # FPC version
  94. ifndef FPC_VERSION
  95. FPC_VERSION:=$(shell $(FPC) -iV)
  96. endif
  97. export FPC OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FPC_VERSION
  98. #####################################################################
  99. # FPCDIR Setting
  100. #####################################################################
  101. # Test FPCDIR to look if the RTL dir exists
  102. ifdef FPCDIR
  103. override FPCDIR:=$(subst \,/,$(FPCDIR))
  104. ifeq ($(wildcard $(FPCDIR)/rtl),)
  105. ifeq ($(wildcard $(FPCDIR)/units),)
  106. override FPCDIR=wrong
  107. endif
  108. endif
  109. else
  110. override FPCDIR=wrong
  111. endif
  112. # Detect FPCDIR
  113. ifeq ($(FPCDIR),wrong)
  114. ifdef inlinux
  115. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  116. ifeq ($(wildcard $(FPCDIR)/units),)
  117. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  118. endif
  119. else
  120. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  121. override FPCDIR:=$(FPCDIR)/..
  122. ifeq ($(wildcard $(FPCDIR)/rtl),)
  123. ifeq ($(wildcard $(FPCDIR)/units),)
  124. override FPCDIR:=$(FPCDIR)/..
  125. ifeq ($(wildcard $(FPCDIR)/rtl),)
  126. ifeq ($(wildcard $(FPCDIR)/units),)
  127. override FPCDIR=c:/pp
  128. endif
  129. endif
  130. endif
  131. endif
  132. endif
  133. endif
  134. #####################################################################
  135. # User Settings
  136. #####################################################################
  137. # Targets
  138. override DIROBJECTS+=$(wildcard go32v2 linux win32 os2 test)
  139. # Clean
  140. # Install
  141. PACKAGENAME=api
  142. ZIPTARGET=install
  143. # Defaults
  144. # Directories
  145. # Packages
  146. # Libraries
  147. #####################################################################
  148. # Shell tools
  149. #####################################################################
  150. # echo
  151. ifndef ECHO
  152. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(EXEEXT),$(SEARCHPATH))))
  153. ifeq ($(ECHO),)
  154. ECHO:=$(strip $(wildcard $(addsuffix /echo$(EXEEXT),$(SEARCHPATH))))
  155. ifeq ($(ECHO),)
  156. ECHO:=echo
  157. ECHOE:=echo
  158. else
  159. ECHO:=$(firstword $(ECHO))
  160. ECHOE=$(ECHO) -E
  161. endif
  162. else
  163. ECHO:=$(firstword $(ECHO))
  164. ECHOE=$(ECHO) -E
  165. endif
  166. endif
  167. # To copy pograms
  168. ifndef COPY
  169. COPY:=cp -fp
  170. endif
  171. # Copy a whole tree
  172. ifndef COPYTREE
  173. COPYTREE:=cp -rfp
  174. endif
  175. # To move pograms
  176. ifndef MOVE
  177. MOVE:=mv -f
  178. endif
  179. # Check delete program
  180. ifndef DEL
  181. DEL:=rm -f
  182. endif
  183. # Check deltree program
  184. ifndef DELTREE
  185. DELTREE:=rm -rf
  186. endif
  187. # To install files
  188. ifndef INSTALL
  189. ifdef inlinux
  190. INSTALL:=install -m 644
  191. else
  192. INSTALL:=$(COPY)
  193. endif
  194. endif
  195. # To install programs
  196. ifndef INSTALLEXE
  197. ifdef inlinux
  198. INSTALLEXE:=install -m 755
  199. else
  200. INSTALLEXE:=$(COPY)
  201. endif
  202. endif
  203. # To make a directory.
  204. ifndef MKDIR
  205. ifdef inlinux
  206. MKDIR:=install -m 755 -d
  207. else
  208. MKDIR:=ginstall -m 755 -d
  209. endif
  210. endif
  211. export ECHO ECHOE COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  212. #####################################################################
  213. # Default Tools
  214. #####################################################################
  215. # assembler, redefine it if cross compiling
  216. ifndef AS
  217. AS=as
  218. endif
  219. # linker, but probably not used
  220. ifndef LD
  221. LD=ld
  222. endif
  223. # ppas.bat / ppas.sh
  224. ifdef inlinux
  225. PPAS=ppas.sh
  226. else
  227. ifdef inOS2
  228. PPAS=ppas.cmd
  229. else
  230. PPAS=ppas.bat
  231. endif
  232. endif
  233. # ldconfig to rebuild .so cache
  234. ifdef inlinux
  235. LDCONFIG=ldconfig
  236. else
  237. LDCONFIG=
  238. endif
  239. # ZipProg, you can't use Zip as the var name (PFV)
  240. ifndef ZIPPROG
  241. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(EXEEXT),$(SEARCHPATH))))
  242. ifeq ($(ZIPPROG),)
  243. ZIPPROG=
  244. else
  245. ZIPPROG:=$(firstword $(ZIPPROG))
  246. endif
  247. endif
  248. export ZIPPROG
  249. ZIPOPT=-9
  250. ZIPEXT=.zip
  251. # Tar
  252. ifndef TARPROG
  253. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(EXEEXT),$(SEARCHPATH))))
  254. ifeq ($(TARPROG),)
  255. TARPROG=
  256. else
  257. TARPROG:=$(firstword $(TARPROG))
  258. endif
  259. endif
  260. export TARPROG
  261. ifeq ($(USETAR),bz2)
  262. TAROPT=vI
  263. TAREXT=.tar.bz2
  264. else
  265. TAROPT=vz
  266. TAREXT=.tar.gz
  267. endif
  268. #####################################################################
  269. # Default Directories
  270. #####################################################################
  271. # set the prefix directory where to install everything
  272. ifndef PREFIXINSTALLDIR
  273. ifdef inlinux
  274. PREFIXINSTALLDIR=/usr
  275. else
  276. PREFIXINSTALLDIR=/pp
  277. endif
  278. endif
  279. export PREFIXINSTALLDIR
  280. # Where to place the resulting zip files
  281. ifndef DESTZIPDIR
  282. DESTZIPDIR:=$(BASEDIR)
  283. endif
  284. export DESTZIPDIR
  285. #####################################################################
  286. # Install Directories
  287. #####################################################################
  288. # set the base directory where to install everything
  289. ifndef BASEINSTALLDIR
  290. ifdef inlinux
  291. BASEINSTALLDIR=$(PREFIXINSTALLDIR)/lib/fpc/$(FPC_VERSION)
  292. else
  293. BASEINSTALLDIR=$(PREFIXINSTALLDIR)
  294. endif
  295. endif
  296. # set the directory where to install the binaries
  297. ifndef BININSTALLDIR
  298. ifdef inlinux
  299. BININSTALLDIR=$(PREFIXINSTALLDIR)/bin
  300. else
  301. BININSTALLDIR=$(BASEINSTALLDIR)/bin/$(OS_TARGET)
  302. endif
  303. endif
  304. # set the directory where to install the units.
  305. ifndef UNITINSTALLDIR
  306. UNITINSTALLDIR=$(BASEINSTALLDIR)/units/$(OS_TARGET)
  307. ifdef UNITSUBDIR
  308. UNITINSTALLDIR:=$(UNITINSTALLDIR)/$(UNITSUBDIR)
  309. endif
  310. endif
  311. # Where to install shared libraries
  312. ifndef LIBINSTALLDIR
  313. ifdef inlinux
  314. LIBINSTALLDIR=$(PREFIXINSTALLDIR)/lib
  315. else
  316. LIBINSTALLDIR=$(UNITINSTALLDIR)
  317. endif
  318. endif
  319. # Where the source files will be stored
  320. ifndef SOURCEINSTALLDIR
  321. ifdef inlinux
  322. SOURCEINSTALLDIR=$(PREFIXINSTALLDIR)/src/fpc-$(FPC_VERSION)
  323. else
  324. SOURCEINSTALLDIR=$(BASEINSTALLDIR)/source
  325. endif
  326. ifdef SOURCESUBDIR
  327. SOURCEINSTALLDIR:=$(SOURCEINSTALLDIR)/$(SOURCESUBDIR)
  328. endif
  329. endif
  330. # Where the doc files will be stored
  331. ifndef DOCINSTALLDIR
  332. ifdef inlinux
  333. DOCINSTALLDIR=$(PREFIXINSTALLDIR)/doc/fpc-$(FPC_VERSION)
  334. else
  335. DOCINSTALLDIR=$(BASEINSTALLDIR)/doc
  336. endif
  337. endif
  338. # Where the some extra (data)files will be stored
  339. ifndef DATAINSTALLDIR
  340. DATAINSTALLDIR=$(BASEINSTALLDIR)
  341. endif
  342. #####################################################################
  343. # Redirection
  344. #####################################################################
  345. ifndef REDIRFILE
  346. REDIRFILE=log
  347. endif
  348. ifdef REDIR
  349. ifndef inlinux
  350. override FPC=redir -eo $(FPC)
  351. endif
  352. # set the verbosity to max
  353. override FPCOPT+=-va
  354. override REDIR:= >> $(REDIRFILE)
  355. endif
  356. #####################################################################
  357. # Standard rules
  358. #####################################################################
  359. all: $(addsuffix _all,$(OS_TARGET))
  360. debug: $(addsuffix _debug,$(OS_TARGET))
  361. examples: $(addsuffix _examples,$(OS_TARGET))
  362. test: $(addsuffix _test,$(OS_TARGET))
  363. smart: $(addsuffix _smart,$(OS_TARGET))
  364. shared: $(addsuffix _shared,$(OS_TARGET))
  365. showinstall: $(addsuffix _showinstall,$(OS_TARGET))
  366. install: $(addsuffix _install,$(OS_TARGET))
  367. sourceinstall: fpc_sourceinstall
  368. zipinstall: fpc_zipinstall $(addsuffix _zipinstall,$(OS_TARGET))
  369. zipsourceinstall: fpc_zipsourceinstall
  370. clean: $(addsuffix _clean,$(OS_TARGET))
  371. distclean: $(addsuffix _distclean,$(OS_TARGET))
  372. cleanall: $(addsuffix _cleanall,$(OS_TARGET))
  373. require: $(addsuffix _require,$(OS_TARGET))
  374. info: $(addsuffix _info,$(OS_TARGET))
  375. .PHONY: all debug examples test smart shared showinstall install sourceinstall zipinstall zipsourceinstall clean distclean cleanall require info
  376. #####################################################################
  377. # SourceInstall rules
  378. #####################################################################
  379. .PHONY: fpc_sourceinstall
  380. ifndef SOURCETOPDIR
  381. SOURCETOPDIR=$(BASEDIR)
  382. endif
  383. fpc_sourceinstall: clean
  384. $(MKDIR) $(SOURCEINSTALLDIR)
  385. $(COPYTREE) $(SOURCETOPDIR) $(SOURCEINSTALLDIR)
  386. #####################################################################
  387. # Zip
  388. #####################################################################
  389. .PHONY: fpc_zipinstall
  390. # Create suffix to add
  391. ifndef PACKAGESUFFIX
  392. PACKAGESUFFIX=$(OS_TARGET)
  393. ifeq ($(OS_TARGET),go32v2)
  394. PACKAGESUFFIX=go32
  395. endif
  396. ifeq ($(OS_TARGET),win32)
  397. PACKAGESUFFIX=w32
  398. endif
  399. endif
  400. # Temporary path to pack a file
  401. ifndef PACKDIR
  402. ifndef inlinux
  403. PACKDIR=$(BASEDIR)/pack_tmp
  404. else
  405. PACKDIR=/tmp/fpc-pack
  406. endif
  407. endif
  408. # Maybe create default zipname from packagename
  409. ifndef ZIPNAME
  410. ifdef PACKAGENAME
  411. ZIPNAME=$(PACKAGEPREFIX)$(PACKAGENAME)$(PACKAGESUFFIX)
  412. endif
  413. endif
  414. # Use tar by default under linux
  415. ifndef USEZIP
  416. ifdef inlinux
  417. USETAR=1
  418. endif
  419. endif
  420. fpc_zipinstall:
  421. ifndef ZIPNAME
  422. @$(ECHO) "Please specify ZIPNAME!"
  423. @exit 1
  424. else
  425. $(MAKE) $(ZIPTARGET) PREFIXINSTALLDIR=$(PACKDIR)
  426. ifdef USETAR
  427. $(DEL) $(DESTZIPDIR)/$(ZIPNAME)$(TAREXT)
  428. cd $(PACKDIR) ; $(TARPROG) c$(TAROPT) --file $(DESTZIPDIR)/$(ZIPNAME)$(TAREXT) * ; cd $(BASEDIR)
  429. else
  430. $(DEL) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT)
  431. cd $(PACKDIR) ; $(ZIPPROG) -Dr $(ZIPOPT) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT) * ; cd $(BASEDIR)
  432. endif
  433. $(DELTREE) $(PACKDIR)
  434. endif
  435. .PHONY: fpc_zipsourceinstall
  436. fpc_zipsourceinstall:
  437. $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall PACKAGESUFFIX=src
  438. #####################################################################
  439. # Directories
  440. #####################################################################
  441. OBJECTDIRGO32V2=1
  442. OBJECTDIRLINUX=1
  443. OBJECTDIRWIN32=1
  444. OBJECTDIROS2=1
  445. OBJECTDIRTEST=1
  446. # Dir go32v2
  447. ifdef OBJECTDIRGO32V2
  448. .PHONY: go32v2_all go32v2_debug go32v2_examples go32v2_test go32v2_smart go32v2_shared go32v2_showinstall go32v2_install go32v2_sourceinstall go32v2_zipinstall go32v2_zipsourceinstall go32v2_clean go32v2_distclean go32v2_cleanall go32v2_require go32v2_info
  449. go32v2_all:
  450. $(MAKE) -C go32v2 all
  451. go32v2_debug:
  452. $(MAKE) -C go32v2 debug
  453. go32v2_examples:
  454. $(MAKE) -C go32v2 examples
  455. go32v2_test:
  456. $(MAKE) -C go32v2 test
  457. go32v2_smart:
  458. $(MAKE) -C go32v2 smart
  459. go32v2_shared:
  460. $(MAKE) -C go32v2 shared
  461. go32v2_showinstall:
  462. $(MAKE) -C go32v2 showinstall
  463. go32v2_install:
  464. $(MAKE) -C go32v2 install
  465. go32v2_sourceinstall:
  466. $(MAKE) -C go32v2 sourceinstall
  467. go32v2_zipinstall:
  468. $(MAKE) -C go32v2 zipinstall
  469. go32v2_zipsourceinstall:
  470. $(MAKE) -C go32v2 zipsourceinstall
  471. go32v2_clean:
  472. $(MAKE) -C go32v2 clean
  473. go32v2_distclean:
  474. $(MAKE) -C go32v2 distclean
  475. go32v2_cleanall:
  476. $(MAKE) -C go32v2 cleanall
  477. go32v2_require:
  478. $(MAKE) -C go32v2 require
  479. go32v2_info:
  480. $(MAKE) -C go32v2 info
  481. endif
  482. # Dir linux
  483. ifdef OBJECTDIRLINUX
  484. .PHONY: linux_all linux_debug linux_examples linux_test linux_smart linux_shared linux_showinstall linux_install linux_sourceinstall linux_zipinstall linux_zipsourceinstall linux_clean linux_distclean linux_cleanall linux_require linux_info
  485. linux_all:
  486. $(MAKE) -C linux all
  487. linux_debug:
  488. $(MAKE) -C linux debug
  489. linux_examples:
  490. $(MAKE) -C linux examples
  491. linux_test:
  492. $(MAKE) -C linux test
  493. linux_smart:
  494. $(MAKE) -C linux smart
  495. linux_shared:
  496. $(MAKE) -C linux shared
  497. linux_showinstall:
  498. $(MAKE) -C linux showinstall
  499. linux_install:
  500. $(MAKE) -C linux install
  501. linux_sourceinstall:
  502. $(MAKE) -C linux sourceinstall
  503. linux_zipinstall:
  504. $(MAKE) -C linux zipinstall
  505. linux_zipsourceinstall:
  506. $(MAKE) -C linux zipsourceinstall
  507. linux_clean:
  508. $(MAKE) -C linux clean
  509. linux_distclean:
  510. $(MAKE) -C linux distclean
  511. linux_cleanall:
  512. $(MAKE) -C linux cleanall
  513. linux_require:
  514. $(MAKE) -C linux require
  515. linux_info:
  516. $(MAKE) -C linux info
  517. endif
  518. # Dir win32
  519. ifdef OBJECTDIRWIN32
  520. .PHONY: win32_all win32_debug win32_examples win32_test win32_smart win32_shared win32_showinstall win32_install win32_sourceinstall win32_zipinstall win32_zipsourceinstall win32_clean win32_distclean win32_cleanall win32_require win32_info
  521. win32_all:
  522. $(MAKE) -C win32 all
  523. win32_debug:
  524. $(MAKE) -C win32 debug
  525. win32_examples:
  526. $(MAKE) -C win32 examples
  527. win32_test:
  528. $(MAKE) -C win32 test
  529. win32_smart:
  530. $(MAKE) -C win32 smart
  531. win32_shared:
  532. $(MAKE) -C win32 shared
  533. win32_showinstall:
  534. $(MAKE) -C win32 showinstall
  535. win32_install:
  536. $(MAKE) -C win32 install
  537. win32_sourceinstall:
  538. $(MAKE) -C win32 sourceinstall
  539. win32_zipinstall:
  540. $(MAKE) -C win32 zipinstall
  541. win32_zipsourceinstall:
  542. $(MAKE) -C win32 zipsourceinstall
  543. win32_clean:
  544. $(MAKE) -C win32 clean
  545. win32_distclean:
  546. $(MAKE) -C win32 distclean
  547. win32_cleanall:
  548. $(MAKE) -C win32 cleanall
  549. win32_require:
  550. $(MAKE) -C win32 require
  551. win32_info:
  552. $(MAKE) -C win32 info
  553. endif
  554. # Dir os2
  555. ifdef OBJECTDIROS2
  556. .PHONY: os2_all os2_debug os2_examples os2_test os2_smart os2_shared os2_showinstall os2_install os2_sourceinstall os2_zipinstall os2_zipsourceinstall os2_clean os2_distclean os2_cleanall os2_require os2_info
  557. os2_all:
  558. $(MAKE) -C os2 all
  559. os2_debug:
  560. $(MAKE) -C os2 debug
  561. os2_examples:
  562. $(MAKE) -C os2 examples
  563. os2_test:
  564. $(MAKE) -C os2 test
  565. os2_smart:
  566. $(MAKE) -C os2 smart
  567. os2_shared:
  568. $(MAKE) -C os2 shared
  569. os2_showinstall:
  570. $(MAKE) -C os2 showinstall
  571. os2_install:
  572. $(MAKE) -C os2 install
  573. os2_sourceinstall:
  574. $(MAKE) -C os2 sourceinstall
  575. os2_zipinstall:
  576. $(MAKE) -C os2 zipinstall
  577. os2_zipsourceinstall:
  578. $(MAKE) -C os2 zipsourceinstall
  579. os2_clean:
  580. $(MAKE) -C os2 clean
  581. os2_distclean:
  582. $(MAKE) -C os2 distclean
  583. os2_cleanall:
  584. $(MAKE) -C os2 cleanall
  585. os2_require:
  586. $(MAKE) -C os2 require
  587. os2_info:
  588. $(MAKE) -C os2 info
  589. endif
  590. # Dir test
  591. ifdef OBJECTDIRTEST
  592. .PHONY: test_all test_debug test_examples test_test test_smart test_shared test_showinstall test_install test_sourceinstall test_zipinstall test_zipsourceinstall test_clean test_distclean test_cleanall test_require test_info
  593. test_all:
  594. $(MAKE) -C test all
  595. test_debug:
  596. $(MAKE) -C test debug
  597. test_examples:
  598. $(MAKE) -C test examples
  599. test_test:
  600. $(MAKE) -C test test
  601. test_smart:
  602. $(MAKE) -C test smart
  603. test_shared:
  604. $(MAKE) -C test shared
  605. test_showinstall:
  606. $(MAKE) -C test showinstall
  607. test_install:
  608. $(MAKE) -C test install
  609. test_sourceinstall:
  610. $(MAKE) -C test sourceinstall
  611. test_zipinstall:
  612. $(MAKE) -C test zipinstall
  613. test_zipsourceinstall:
  614. $(MAKE) -C test zipsourceinstall
  615. test_clean:
  616. $(MAKE) -C test clean
  617. test_distclean:
  618. $(MAKE) -C test distclean
  619. test_cleanall:
  620. $(MAKE) -C test cleanall
  621. test_require:
  622. $(MAKE) -C test require
  623. test_info:
  624. $(MAKE) -C test info
  625. endif
  626. #####################################################################
  627. # Local Makefile
  628. #####################################################################
  629. ifneq ($(wildcard fpcmake.loc),)
  630. include fpcmake.loc
  631. endif