Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # This file contains the Makefile for CHESS.
  2. # Copyright (C) 1986 Free Software Foundation, Inc.
  3. #
  4. # This file is part of CHESS.
  5. #
  6. # CHESS is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY. No author or distributor
  8. # accepts responsibility to anyone for the consequences of using it
  9. # or for whether it serves any particular purpose or works at all,
  10. # unless he says so in writing. Refer to the CHESS General Public
  11. # License for full details.
  12. #
  13. # Everyone is granted permission to copy, modify and redistribute
  14. # CHESS, but only under the conditions described in the
  15. # CHESS General Public License. A copy of this license is
  16. # supposed to have been given to you along with CHESS so you
  17. # can know your rights and responsibilities. It should be in a
  18. # file named COPYING. Among other things, the copyright notice
  19. # and this notice must be preserved on all copies. */
  20. #
  21. PROGRAM = bitmapper
  22. CFLAGS = -O -ffpa
  23. LIBS =
  24. OBJECTS = $(PROGRAM).o\
  25. bitmacs.o\
  26. eval.o\
  27. genmov.o\
  28. initmap.o\
  29. legals.o\
  30. move.o\
  31. prmap.o\
  32. savegame.o\
  33. util.o
  34. SOURCES = $(PROGRAM).c\
  35. bitmacs.c\
  36. eval.c\
  37. initmap.c\
  38. genmov.c\
  39. legals.c\
  40. move.c\
  41. prmap.c\
  42. savegame.c\
  43. util.c
  44. HEADERS = algdefs.h\
  45. bitmacs.h\
  46. externmap.h\
  47. crucialdefs.h\
  48. fixeddefs.h\
  49. movelist.h
  50. $(PROGRAM): $(OBJECTS)
  51. $(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LIBS)
  52. enter:
  53. co $(HEADERS) $(SOURCES)
  54. make
  55. leave:
  56. ci $(HEADERS) $(SOURCES)
  57. make clean
  58. clean:
  59. rm -f core *~ *.o $(PROGRAM) picture.out mon.out #* *BAK *.lint *.prof
  60. count:
  61. wc $(HEADERS) $(SOURCES)
  62. lint:
  63. lint -h $(HEADERS) $(SOURCES) > $(PROGRAM).lint
  64. print:
  65. cat $(HEADERS) $(SOURCES) | lpr