Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. #
  2. # $Id$
  3. # Copyright (c) 1999 by the Free Pascal Development Team
  4. #
  5. # Makefile for Free Pascal Utils
  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. # We need the FCL
  20. NEEDUNITDIR=../fcl/$(OS_TARGET)
  21. #####################################################################
  22. # Real targets
  23. #####################################################################
  24. EXEOBJECTS=ppudump ppumove ppdep ptop rstconv
  25. UNITOBJECTS=
  26. EXTRACLEANUNITS=ppu ptopu
  27. #####################################################################
  28. # Common targets
  29. #####################################################################
  30. .PHONY: all clean install info \
  31. staticlib sharedlib libsclean \
  32. staticinstall sharedinstall libinstall \
  33. extra_clean \
  34. h2pas_all h2pas_clean h2pas_install \
  35. all: testfpcmake fpc_all h2pas_all
  36. clean: testfpcmake fpc_clean h2pas_clean
  37. install: testfpcmake fpc_install h2pas_install
  38. info: testfpcmake fpc_info
  39. staticlib: testfpcmake fpc_staticlib
  40. sharedlib: testfpcmake fpc_sharedlib
  41. libsclean: testfpcmake fpc_libsclean
  42. staticinstall: testfpcmake fpc_staticinstall
  43. sharedinstall: testfpcmake fpc_sharedinstall
  44. libinstall: testfpcmake fpc_libinstall
  45. #####################################################################
  46. # Include default makefile
  47. #####################################################################
  48. # test if FPCMAKE is still valid
  49. ifdef FPCMAKE
  50. ifeq ($(strip $(wildcard $(FPCMAKE))),)
  51. FPCDIR=
  52. FPCMAKE=
  53. endif
  54. endif
  55. ifndef FPCDIR
  56. ifdef DEFAULTFPCDIR
  57. FPCDIR=$(DEFAULTFPCDIR)
  58. endif
  59. endif
  60. ifndef FPCMAKE
  61. ifdef FPCDIR
  62. FPCMAKE=$(FPCDIR)/makefile.fpc
  63. else
  64. FPCMAKE=makefile.fpc
  65. endif
  66. endif
  67. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  68. ifeq ($(FPCMAKE),)
  69. testfpcmake:
  70. @echo makefile.fpc not found!
  71. @echo Check the FPCMAKE and FPCDIR environment variables.
  72. @exit
  73. else
  74. include $(FPCMAKE)
  75. testfpcmake:
  76. endif
  77. #####################################################################
  78. # Dependencies
  79. #####################################################################
  80. #
  81. # PPU Tools
  82. #
  83. ppu$(PPUEXT): ppu.pas
  84. ppudump$(EXEEXT): ppudump.pp ppu$(PPUEXT)
  85. ppumove$(EXEEXT): ppumove.pp ppu$(PPUEXT)
  86. #
  87. # Pascal beautifier
  88. #
  89. ptop$(EXEEXT): ptop.pp ptopu$(PPUEXT)
  90. ptopu$(PPUEXT): ptopu.pp
  91. #
  92. # H2Pas
  93. #
  94. h2pas_all:
  95. $(MAKE) -C h2pas all
  96. h2pas_clean:
  97. $(MAKE) -C h2pas clean
  98. h2pas_install:
  99. $(MAKE) -C h2pas install
  100. #
  101. # $Log$
  102. # Revision 1.5 1999-07-27 13:02:32 peter
  103. # * add to needunits
  104. #
  105. # Revision 1.4 1999/07/23 18:23:45 michael
  106. # + Added rstconv
  107. #
  108. # Revision 1.3 1999/07/16 13:45:37 peter
  109. # * 0.99.12b updates
  110. # * merges
  111. #
  112. # Revision 1.2 1999/06/18 11:03:13 peter
  113. # * merged
  114. #
  115. # Revision 1.1.2.2 1999/07/16 13:40:58 peter
  116. # + extrainstallunits,extracleanunits
  117. #
  118. # Revision 1.1.2.1 1999/06/18 10:55:36 peter
  119. # * version fixes
  120. # * EXTRAUNITS to set extra units that are build and needs to be cleaned
  121. #
  122. # Revision 1.1 1999/05/12 16:11:39 peter
  123. # * moved
  124. #
  125. # Revision 1.14 1999/05/03 18:03:13 peter
  126. # * renamed mkdep -> ppdep
  127. # * removed obsolete units
  128. # * add .cod files
  129. #
  130. # Revision 1.13 1999/04/02 00:01:49 peter
  131. # + ptop to exeobjects
  132. #
  133. # Revision 1.12 1999/04/01 22:52:00 peter
  134. # * update for makefile.fpc
  135. #
  136. # Revision 1.1 1999/03/16 00:50:29 peter
  137. # + init
  138. #
  139. #