Makefile 3.5 KB

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