Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #
  2. # $Id$
  3. # Copyright (c) 1999 by the Free Pascal Development Team
  4. #
  5. # Makefile for Free Component Library for Linux
  6. #
  7. # See the file COPYING.FPC, included in this distribution,
  8. # for details about the copyright.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. #####################################################################
  15. # Defaults
  16. #####################################################################
  17. # Default place of the makefile.fpc
  18. DEFAULTFPCDIR=../..
  19. # Where need we to place the executables/ppu/objects
  20. TARGETDIR=.
  21. # Needed units
  22. NEEDUNITDIR=../$(OS_TARGET)
  23. # We need always -S2
  24. NEEDOPT=-S2
  25. #####################################################################
  26. # Real targets
  27. #####################################################################
  28. UNITOBJECTS=
  29. EXEOBJECTS=stringl dparser fstream mstream list threads testrtf\
  30. cfgtest testz testz2 xmldump htdump testcgi tidea\
  31. b64test b64test2 b64enc b64dec restest
  32. #####################################################################
  33. # Common targets
  34. #####################################################################
  35. .PHONY: all clean install info \
  36. staticlib sharedlib libsclean \
  37. staticinstall sharedinstall libinstall \
  38. all: testfpcmake fpc_all
  39. clean: testfpcmake fpc_clean
  40. install: testfpcmake fpc_install
  41. info: testfpcmake fpc_info
  42. staticlib: testfpcmake fpc_staticlib
  43. sharedlib: testfpcmake fpc_sharedlib
  44. libsclean: testfpcmake fpc_libsclean
  45. staticinstall: testfpcmake fpc_staticinstall
  46. sharedinstall: testfpcmake fpc_sharedinstall
  47. libinstall: testfpcmake fpc_libinstall
  48. #####################################################################
  49. # Include default makefile
  50. #####################################################################
  51. # test if FPCMAKE is still valid
  52. ifdef FPCMAKE
  53. ifeq ($(strip $(wildcard $(FPCMAKE))),)
  54. FPCDIR=
  55. FPCMAKE=
  56. endif
  57. endif
  58. ifndef FPCDIR
  59. ifdef DEFAULTFPCDIR
  60. FPCDIR=$(DEFAULTFPCDIR)
  61. endif
  62. endif
  63. ifndef FPCMAKE
  64. ifdef FPCDIR
  65. FPCMAKE=$(FPCDIR)/makefile.fpc
  66. else
  67. FPCMAKE=makefile.fpc
  68. endif
  69. endif
  70. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  71. ifeq ($(FPCMAKE),)
  72. testfpcmake:
  73. @echo makefile.fpc not found!
  74. @echo Check the FPCMAKE and FPCDIR environment variables.
  75. @exit 1
  76. else
  77. include $(FPCMAKE)
  78. testfpcmake:
  79. endif
  80. #####################################################################
  81. # Dependencies
  82. #####################################################################
  83. #
  84. # $Log$
  85. # Revision 1.12 1999-08-27 15:52:29 michael
  86. # + Initial implementation of resourcestrings test example
  87. #
  88. # Revision 1.11 1999/08/09 16:12:26 michael
  89. # * Fixes and new examples from Sebastian Guenther
  90. #
  91. # Revision 1.10 1999/08/03 17:02:36 michael
  92. # * Base64 en/de cdeing streams added
  93. #
  94. # Revision 1.9 1999/07/25 14:30:39 michael
  95. # Initial implementation of encryption stream
  96. #
  97. # Revision 1.8 1999/07/15 12:05:55 michael
  98. # + Added testcgi program
  99. #
  100. # Revision 1.7 1999/07/11 22:43:23 michael
  101. # + Added htdump
  102. #
  103. # Revision 1.6 1999/07/09 21:08:16 michael
  104. # + Added ztsream and xml demos
  105. #
  106. # Revision 1.5 1999/05/30 10:46:43 peter
  107. # * start of tthread for linux,win32
  108. #
  109. # Revision 1.4 1999/04/08 10:19:04 peter
  110. # * makefile updates
  111. #
  112. #