2
0

Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. #
  2. # Makefile generated by fpcmake v0.99.13 [2000/02/09]
  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
  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. .PHONY: all debug examples test smart shared showinstall install sourceinstall zipinstall zipsourceinstall clean distclean cleanall require
  375. #####################################################################
  376. # SourceInstall rules
  377. #####################################################################
  378. .PHONY: fpc_sourceinstall
  379. ifndef SOURCETOPDIR
  380. SOURCETOPDIR=$(BASEDIR)
  381. endif
  382. fpc_sourceinstall: clean
  383. $(MKDIR) $(SOURCEINSTALLDIR)
  384. $(COPYTREE) $(SOURCETOPDIR) $(SOURCEINSTALLDIR)
  385. #####################################################################
  386. # Zip
  387. #####################################################################
  388. .PHONY: fpc_zipinstall
  389. # Create suffix to add
  390. ifndef PACKAGESUFFIX
  391. PACKAGESUFFIX=$(OS_TARGET)
  392. ifeq ($(OS_TARGET),go32v2)
  393. PACKAGESUFFIX=go32
  394. endif
  395. ifeq ($(OS_TARGET),win32)
  396. PACKAGESUFFIX=w32
  397. endif
  398. endif
  399. # Temporary path to pack a file
  400. ifndef PACKDIR
  401. ifndef inlinux
  402. PACKDIR=$(BASEDIR)/pack_tmp
  403. else
  404. PACKDIR=/tmp/fpc-pack
  405. endif
  406. endif
  407. # Maybe create default zipname from packagename
  408. ifndef ZIPNAME
  409. ifdef PACKAGENAME
  410. ZIPNAME=$(PACKAGEPREFIX)$(PACKAGENAME)$(PACKAGESUFFIX)
  411. endif
  412. endif
  413. # Use tar by default under linux
  414. ifndef USEZIP
  415. ifdef inlinux
  416. USETAR=1
  417. endif
  418. endif
  419. fpc_zipinstall:
  420. ifndef ZIPNAME
  421. @$(ECHO) "Please specify ZIPNAME!"
  422. @exit 1
  423. else
  424. $(MAKE) $(ZIPTARGET) PREFIXINSTALLDIR=$(PACKDIR)
  425. ifdef USETAR
  426. $(DEL) $(DESTZIPDIR)/$(ZIPNAME)$(TAREXT)
  427. cd $(PACKDIR) ; $(TARPROG) c$(TAROPT) --file $(DESTZIPDIR)/$(ZIPNAME)$(TAREXT) * ; cd $(BASEDIR)
  428. else
  429. $(DEL) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT)
  430. cd $(PACKDIR) ; $(ZIPPROG) -Dr $(ZIPOPT) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT) * ; cd $(BASEDIR)
  431. endif
  432. $(DELTREE) $(PACKDIR)
  433. endif
  434. .PHONY: fpc_zipsourceinstall
  435. fpc_zipsourceinstall:
  436. $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall PACKAGESUFFIX=src
  437. #####################################################################
  438. # Directories
  439. #####################################################################
  440. OBJECTDIRGO32V2=1
  441. OBJECTDIRLINUX=1
  442. OBJECTDIRWIN32=1
  443. OBJECTDIROS2=1
  444. OBJECTDIRTEST=1
  445. # Dir go32v2
  446. ifdef OBJECTDIRGO32V2
  447. .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
  448. go32v2_all:
  449. $(MAKE) -C go32v2 all
  450. go32v2_debug:
  451. $(MAKE) -C go32v2 debug
  452. go32v2_examples:
  453. $(MAKE) -C go32v2 examples
  454. go32v2_test:
  455. $(MAKE) -C go32v2 test
  456. go32v2_smart:
  457. $(MAKE) -C go32v2 smart
  458. go32v2_shared:
  459. $(MAKE) -C go32v2 shared
  460. go32v2_showinstall:
  461. $(MAKE) -C go32v2 showinstall
  462. go32v2_install:
  463. $(MAKE) -C go32v2 install
  464. go32v2_sourceinstall:
  465. $(MAKE) -C go32v2 sourceinstall
  466. go32v2_zipinstall:
  467. $(MAKE) -C go32v2 zipinstall
  468. go32v2_zipsourceinstall:
  469. $(MAKE) -C go32v2 zipsourceinstall
  470. go32v2_clean:
  471. $(MAKE) -C go32v2 clean
  472. go32v2_distclean:
  473. $(MAKE) -C go32v2 distclean
  474. go32v2_cleanall:
  475. $(MAKE) -C go32v2 cleanall
  476. go32v2_require:
  477. $(MAKE) -C go32v2 require
  478. go32v2_info:
  479. $(MAKE) -C go32v2 info
  480. endif
  481. # Dir linux
  482. ifdef OBJECTDIRLINUX
  483. .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
  484. linux_all:
  485. $(MAKE) -C linux all
  486. linux_debug:
  487. $(MAKE) -C linux debug
  488. linux_examples:
  489. $(MAKE) -C linux examples
  490. linux_test:
  491. $(MAKE) -C linux test
  492. linux_smart:
  493. $(MAKE) -C linux smart
  494. linux_shared:
  495. $(MAKE) -C linux shared
  496. linux_showinstall:
  497. $(MAKE) -C linux showinstall
  498. linux_install:
  499. $(MAKE) -C linux install
  500. linux_sourceinstall:
  501. $(MAKE) -C linux sourceinstall
  502. linux_zipinstall:
  503. $(MAKE) -C linux zipinstall
  504. linux_zipsourceinstall:
  505. $(MAKE) -C linux zipsourceinstall
  506. linux_clean:
  507. $(MAKE) -C linux clean
  508. linux_distclean:
  509. $(MAKE) -C linux distclean
  510. linux_cleanall:
  511. $(MAKE) -C linux cleanall
  512. linux_require:
  513. $(MAKE) -C linux require
  514. linux_info:
  515. $(MAKE) -C linux info
  516. endif
  517. # Dir win32
  518. ifdef OBJECTDIRWIN32
  519. .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
  520. win32_all:
  521. $(MAKE) -C win32 all
  522. win32_debug:
  523. $(MAKE) -C win32 debug
  524. win32_examples:
  525. $(MAKE) -C win32 examples
  526. win32_test:
  527. $(MAKE) -C win32 test
  528. win32_smart:
  529. $(MAKE) -C win32 smart
  530. win32_shared:
  531. $(MAKE) -C win32 shared
  532. win32_showinstall:
  533. $(MAKE) -C win32 showinstall
  534. win32_install:
  535. $(MAKE) -C win32 install
  536. win32_sourceinstall:
  537. $(MAKE) -C win32 sourceinstall
  538. win32_zipinstall:
  539. $(MAKE) -C win32 zipinstall
  540. win32_zipsourceinstall:
  541. $(MAKE) -C win32 zipsourceinstall
  542. win32_clean:
  543. $(MAKE) -C win32 clean
  544. win32_distclean:
  545. $(MAKE) -C win32 distclean
  546. win32_cleanall:
  547. $(MAKE) -C win32 cleanall
  548. win32_require:
  549. $(MAKE) -C win32 require
  550. win32_info:
  551. $(MAKE) -C win32 info
  552. endif
  553. # Dir os2
  554. ifdef OBJECTDIROS2
  555. .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
  556. os2_all:
  557. $(MAKE) -C os2 all
  558. os2_debug:
  559. $(MAKE) -C os2 debug
  560. os2_examples:
  561. $(MAKE) -C os2 examples
  562. os2_test:
  563. $(MAKE) -C os2 test
  564. os2_smart:
  565. $(MAKE) -C os2 smart
  566. os2_shared:
  567. $(MAKE) -C os2 shared
  568. os2_showinstall:
  569. $(MAKE) -C os2 showinstall
  570. os2_install:
  571. $(MAKE) -C os2 install
  572. os2_sourceinstall:
  573. $(MAKE) -C os2 sourceinstall
  574. os2_zipinstall:
  575. $(MAKE) -C os2 zipinstall
  576. os2_zipsourceinstall:
  577. $(MAKE) -C os2 zipsourceinstall
  578. os2_clean:
  579. $(MAKE) -C os2 clean
  580. os2_distclean:
  581. $(MAKE) -C os2 distclean
  582. os2_cleanall:
  583. $(MAKE) -C os2 cleanall
  584. os2_require:
  585. $(MAKE) -C os2 require
  586. os2_info:
  587. $(MAKE) -C os2 info
  588. endif
  589. # Dir test
  590. ifdef OBJECTDIRTEST
  591. .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
  592. test_all:
  593. $(MAKE) -C test all
  594. test_debug:
  595. $(MAKE) -C test debug
  596. test_examples:
  597. $(MAKE) -C test examples
  598. test_test:
  599. $(MAKE) -C test test
  600. test_smart:
  601. $(MAKE) -C test smart
  602. test_shared:
  603. $(MAKE) -C test shared
  604. test_showinstall:
  605. $(MAKE) -C test showinstall
  606. test_install:
  607. $(MAKE) -C test install
  608. test_sourceinstall:
  609. $(MAKE) -C test sourceinstall
  610. test_zipinstall:
  611. $(MAKE) -C test zipinstall
  612. test_zipsourceinstall:
  613. $(MAKE) -C test zipsourceinstall
  614. test_clean:
  615. $(MAKE) -C test clean
  616. test_distclean:
  617. $(MAKE) -C test distclean
  618. test_cleanall:
  619. $(MAKE) -C test cleanall
  620. test_require:
  621. $(MAKE) -C test require
  622. test_info:
  623. $(MAKE) -C test info
  624. endif
  625. #####################################################################
  626. # Local Makefile
  627. #####################################################################
  628. ifneq ($(wildcard fpcmake.loc),)
  629. include fpcmake.loc
  630. endif