Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #
  2. # $Id$
  3. # Copyright (c) 1998 by the Free Pascal Development Team
  4. #
  5. # Makefile for Free Pascal Environment
  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. #####################################################################
  20. # Common targets
  21. #####################################################################
  22. .PHONY: all clean install info \
  23. staticlib sharedlib libsclean \
  24. staticinstall sharedinstall libinstall \
  25. info: testfpcmake fpc_info
  26. #####################################################################
  27. # Include default makefile
  28. #####################################################################
  29. # test if FPCMAKE is still valid
  30. ifdef FPCMAKE
  31. ifeq ($(strip $(wildcard $(FPCMAKE))),)
  32. FPCDIR=
  33. FPCMAKE=
  34. endif
  35. endif
  36. ifndef FPCDIR
  37. ifdef DEFAULTFPCDIR
  38. FPCDIR=$(DEFAULTFPCDIR)
  39. endif
  40. endif
  41. ifndef FPCMAKE
  42. ifdef FPCDIR
  43. FPCMAKE=$(FPCDIR)/makefile.fpc
  44. else
  45. FPCMAKE=makefile.fpc
  46. endif
  47. endif
  48. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  49. ifeq ($(FPCMAKE),)
  50. testfpcmake:
  51. @echo makefile.fpc not found!
  52. @echo Check the FPCMAKE and FPCDIR environment variables.
  53. @exit
  54. else
  55. include $(FPCMAKE)
  56. testfpcmake:
  57. endif
  58. #####################################################################
  59. # Dependencies
  60. #####################################################################
  61. ifdef inlinux
  62. LIBDIR=/usr/lib/gcc-lib/i486-linux/2.7.2.3
  63. endif
  64. all:
  65. $(MAKE) -C text all
  66. gdb:
  67. $(MAKE) -C text all GDB=1
  68. full:
  69. $(MAKE) -C text all FULL=1
  70. fullgdb:
  71. $(MAKE) -C text all FULL=1 GDB=1
  72. # This is necessary because we don't have all units separate in the
  73. # units targets
  74. clean:
  75. $(MAKE) -C fake clean
  76. $(MAKE) -C text clean
  77. #
  78. # Installation
  79. #
  80. install:
  81. $(MAKE) -C fake install
  82. $(MAKE) -C fake install
  83. zipinstall:
  84. $(MAKE) -C fake zipinstall
  85. $(MAKE) -C fake zipinstall
  86. #
  87. # Misc
  88. #
  89. clean_compiler:
  90. make -C ../../compiler clean
  91. #
  92. # $Log$
  93. # Revision 1.1 1999-04-16 20:16:38 michael
  94. # + Adapted ide Makefiles
  95. #
  96. # Revision 1.14 1999/03/16 00:47:00 peter
  97. # * makefile.fpc targets start with fpc_
  98. # * small updates for install scripts
  99. #
  100. # Revision 1.13 1999/03/09 01:35:52 peter
  101. # * makefile.fpc updates and defaultfpcdir var
  102. #
  103. #