Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. # set target and cpu which are required
  20. override OS_TARGET=linux
  21. override CPU=i386
  22. # Include files
  23. INC=../inc
  24. PROCINC=../$(CPU)
  25. # Where to place the files
  26. TARGETDIR=.
  27. # We need always -S2
  28. NEEDOPT=-S2
  29. # As default make only the units
  30. DEFAULTUNITS=1
  31. #####################################################################
  32. # Real targets
  33. #####################################################################
  34. # INCUNITS is defined in makefile.inc
  35. # They are default units for all platforms.
  36. include $(INC)/Makefile.inc
  37. UNITOBJECTS=classes $(INCUNITS)
  38. EXEOBJECTS=
  39. #####################################################################
  40. # Common targets
  41. #####################################################################
  42. .PHONY: all clean install info \
  43. staticlib sharedlib libsclean \
  44. staticinstall sharedinstall libinstall \
  45. all: testfpcmake fpc_all
  46. clean: testfpcmake fpc_clean
  47. install: testfpcmake fpc_install
  48. info: testfpcmake fpc_info
  49. staticlib: testfpcmake fpc_staticlib
  50. sharedlib: testfpcmake fpc_sharedlib
  51. libsclean: testfpcmake fpc_libsclean
  52. staticinstall: testfpcmake fpc_staticinstall
  53. sharedinstall: testfpcmake fpc_sharedinstall
  54. libinstall: testfpcmake fpc_libinstall
  55. #####################################################################
  56. # Include default makefile
  57. #####################################################################
  58. # test if FPCMAKE is still valid
  59. ifdef FPCMAKE
  60. ifeq ($(strip $(wildcard $(FPCMAKE))),)
  61. FPCDIR=
  62. FPCMAKE=
  63. endif
  64. endif
  65. ifndef FPCDIR
  66. ifdef DEFAULTFPCDIR
  67. FPCDIR=$(DEFAULTFPCDIR)
  68. endif
  69. endif
  70. ifndef FPCMAKE
  71. ifdef FPCDIR
  72. FPCMAKE=$(FPCDIR)/makefile.fpc
  73. else
  74. FPCMAKE=makefile.fpc
  75. endif
  76. endif
  77. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  78. ifeq ($(FPCMAKE),)
  79. testfpcmake:
  80. @echo makefile.fpc not found!
  81. @echo Check the FPCMAKE and FPCDIR environment variables.
  82. @exit
  83. else
  84. include $(FPCMAKE)
  85. testfpcmake:
  86. endif
  87. #####################################################################
  88. # Dependencies
  89. #####################################################################
  90. vpath %$(PASEXT) $(INC)
  91. INCFILES=$(addprefix $(INC)/,$(INCNAMES))
  92. classes$(PPUEXT): $(INCFILES) classes$(PASEXT)
  93. inifiles$(PPUEXT): classes$(PPUEXT) inifiles$(PASEXT)
  94. ezcgi$(PPUEXT): ezcgi$(PASEXT) ezcgi.inc
  95. #
  96. # $Log$
  97. # Revision 1.11 1999-05-31 12:46:31 peter
  98. # * classes unit to unitobjects
  99. #
  100. # Revision 1.10 1999/04/27 19:13:44 michael
  101. # + Added ezcgi from Michael Hess
  102. #
  103. # Revision 1.9 1999/04/22 10:50:45 peter
  104. # * set target always
  105. #
  106. # Revision 1.8 1999/04/08 15:58:44 michael
  107. # + INCUNITS added
  108. #
  109. # Revision 1.7 1999/04/08 10:18:59 peter
  110. # * makefile updates
  111. #
  112. #