Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 b64test
  31. #####################################################################
  32. # Common targets
  33. #####################################################################
  34. .PHONY: all clean install info \
  35. staticlib sharedlib libsclean \
  36. staticinstall sharedinstall libinstall \
  37. all: testfpcmake fpc_all
  38. clean: testfpcmake fpc_clean
  39. install: testfpcmake fpc_install
  40. info: testfpcmake fpc_info
  41. staticlib: testfpcmake fpc_staticlib
  42. sharedlib: testfpcmake fpc_sharedlib
  43. libsclean: testfpcmake fpc_libsclean
  44. staticinstall: testfpcmake fpc_staticinstall
  45. sharedinstall: testfpcmake fpc_sharedinstall
  46. libinstall: testfpcmake fpc_libinstall
  47. #####################################################################
  48. # Include default makefile
  49. #####################################################################
  50. # test if FPCMAKE is still valid
  51. ifdef FPCMAKE
  52. ifeq ($(strip $(wildcard $(FPCMAKE))),)
  53. FPCDIR=
  54. FPCMAKE=
  55. endif
  56. endif
  57. ifndef FPCDIR
  58. ifdef DEFAULTFPCDIR
  59. FPCDIR=$(DEFAULTFPCDIR)
  60. endif
  61. endif
  62. ifndef FPCMAKE
  63. ifdef FPCDIR
  64. FPCMAKE=$(FPCDIR)/makefile.fpc
  65. else
  66. FPCMAKE=makefile.fpc
  67. endif
  68. endif
  69. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  70. ifeq ($(FPCMAKE),)
  71. testfpcmake:
  72. @echo makefile.fpc not found!
  73. @echo Check the FPCMAKE and FPCDIR environment variables.
  74. @exit 1
  75. else
  76. include $(FPCMAKE)
  77. testfpcmake:
  78. endif
  79. #####################################################################
  80. # Dependencies
  81. #####################################################################
  82. #
  83. # $Log$
  84. # Revision 1.10 1999-08-03 17:02:36 michael
  85. # * Base64 en/de cdeing streams added
  86. #
  87. # Revision 1.9 1999/07/25 14:30:39 michael
  88. # Initial implementation of encryption stream
  89. #
  90. # Revision 1.8 1999/07/15 12:05:55 michael
  91. # + Added testcgi program
  92. #
  93. # Revision 1.7 1999/07/11 22:43:23 michael
  94. # + Added htdump
  95. #
  96. # Revision 1.6 1999/07/09 21:08:16 michael
  97. # + Added ztsream and xml demos
  98. #
  99. # Revision 1.5 1999/05/30 10:46:43 peter
  100. # * start of tthread for linux,win32
  101. #
  102. # Revision 1.4 1999/04/08 10:19:04 peter
  103. # * makefile updates
  104. #
  105. #