Makefile 18 KB

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