home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume2 / dots2 / Makefile < prev    next >
Makefile  |  1987-09-18  |  3KB  |  89 lines

  1. #
  2. # Makefile for dots
  3. #
  4. #  Dots and Boxes -- the program for UNIX was programmed by Dan Heller and
  5. #     Don Hatch Spring, 1984 with further developments continually.
  6. #  Sockets Implemented by Dan Heller in May, 1985.
  7. #
  8. # This program was originally written on a PDP-11 under UNIX V7.
  9. #
  10. # If you are on a berkeley unix system, then you should have -DBSD defined
  11. # below and use the appropriate OBJS (see notes below).  If you are using
  12. # a system-V unix then you should define -DSYSV and use those OBJS.
  13. #
  14. # Installation is so easy that there's no need for a README or anything,
  15. # Be sure to edit dots.h and change some of the constants to whatever
  16. # pathnames you'd like them to be and note VPRINTF and DESTDIR are defined
  17. # here.
  18. #
  19. # Rules for defining VPRINTF:
  20. # 1) you are a system-v (xenix or otherwise) machine.
  21. # 2) you are on a sun running 3.0 or higher.
  22. # DO NOT define VPRINTF if you are on a vax or running 4.[23] or something.
  23. # If you are unsure, try:
  24. #  % ar t /lib/libc.a | grep vprintf
  25. # If you don't get output, you don't have it.  If you do have it, you'll
  26. # get several lines of output (vprintf.o vsprintf.o).
  27. #
  28. # This code is intended for public consumption and modifications are
  29. # enoucraged.  If you do make mods, I'd love to hear about them and
  30. # include in later releases (interest providing).
  31. #
  32. # Since everything includes dots.h a make depend is senseless. If you
  33. # make changes to defines, grep the files to note which are affected
  34. # and remake them.  If you change variables, use grep on .c files or use
  35. # "nm" on the .o files to find which files use them.
  36. #
  37. # The file "dots.doc" has more information on how to play.
  38. #
  39. # comments, etc... to:  Dan Heller
  40. #    island!argv@sun.com        argv@spam.istc.sri.com
  41. #
  42. # Thanx to Jay Libove for his port to XENIX (System-V)
  43. # Thanx to Bruno Wolff for general bug fixes.
  44.  
  45. # for xenix systems or (hopefully) any sys-v unix, use these CFLAGS and LDFLAGS
  46. # CFLAGS=    -O -DSYSV -Ml -DVPRINTF
  47. # LDFLAGS= -s -Ml
  48.  
  49. # BSD systems should use these CFLAGS and  LDFLAGS
  50. CFLAGS=    -O -DBSD
  51. LDFLAGS= -s
  52.  
  53. DESTDIR= /usr/games
  54. LINTFLAGS= -bxah -Dlint
  55. LIBES = -lcurses -ltermlib
  56.  
  57. PROG=dots
  58.  
  59. SRCS=main.c comp.c comp2.c board.c person.c misc.c menu.c save.c score.c \
  60.      sockt.c findem.c
  61.  
  62. # SYSV (xenix) *do not* use sockt.o and findem.o -- BSD systems *do use* them.
  63. # OBJS=main.o comp.o comp2.o board.o person.o misc.o menu.o save.o score.o
  64. OBJS=main.o comp.o comp2.o board.o person.o misc.o menu.o save.o score.o \
  65.      sockt.o findem.o
  66.  
  67. ${PROG}: ${OBJS}
  68.     @echo Loading...
  69.     @cc ${LDFLAGS} ${OBJS} ${LIBES} -o ${PROG}
  70.  
  71. install: ${PROG}
  72.     /bin/mv ${PROG} ${DESTDIR}/${PROG}
  73.     chmod 711 ${DESTDIR}/${PROG}
  74.  
  75. tags:
  76.     ctags dots.h ${SRCS}
  77.  
  78. clean:
  79.     rm -f core ${OBJS} ${PROG}
  80.  
  81. lint:
  82.     lint ${LINTFLAGS} ${SRCS}
  83.  
  84. tar:
  85.     tar fcv DOTS Makefile dots.h $(SRCS) tags
  86.  
  87. shar:
  88.     shar Makefile dots.doc dots.h $(SRCS) > dots.shar
  89.