home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume13 / okbridge / part07 / Makefile < prev    next >
Makefile  |  1992-01-12  |  3KB  |  105 lines

  1. # makefile for Okbridge 1.5
  2. #
  3. # Matthew Clegg.
  4. #
  5.  
  6. # In general the okbridge program can be compiled simply by
  7. # typing 'make'.  If you are planning to install okbridge in
  8. # a public directory, then you may want to first change the
  9. # values of the variables OKBRIDGE_DIR and OKBRIDGE_HELPFILE.
  10. # Then, type 'make install'.
  11.  
  12. OKBRIDGE_DIR = /usr/local/games
  13. OKBRIDGE_HELPFILE = /usr/local/games/okbridge.help
  14.  
  15. # If you are compiling this program on a machine which is
  16. # running IBM's AIX operating system, then uncomment the
  17. # next line:
  18. #MACHINE_FLAGS = -DAIX
  19. #
  20. # If you are running on an HP/UX system, you may need to uncomment
  21. # the following line:
  22. #MACHINE_FLAGS = -DHPUX
  23. #
  24. # If you are compiling this program on a machine which does not
  25. # have strcasecmp and strncasecmp, then you will need to uncomment
  26. # the following line (this is not necessary if you are using
  27. # SunOS or a recent version of Ultrix):
  28. #STRCASECMP = -DNO_STRCASECMP
  29. #
  30. # The following flags may be useful if you have modified the okbridge
  31. # program and you need assistance debugging it:
  32. #
  33. # Uncomment the following line to test the program in LOOPBACK_MODE.
  34. # CFLAGS = -g -DLOGFILE -DLOOPBACK_MODE -DDEBUG $(STRCASECMP) $(MACHINE_FLAGS)
  35. # CFLAGS = -g -DDEBUG -DLOGFILE $(STRCASECMP) $(MACHINE_FLAGS)
  36. # CFLAGS = -g -DDEBUG $(STRCASECMP) $(MACHINE_FLAGS)
  37. CFLAGS = -g $(STRCASECMP) $(MACHINE_FLAGS)
  38.  
  39. OBJ = bridge.o input.o display.o terminal.o network.o help.o ps.o socket.o\
  40.       scoring.o email.o code.o startup.o
  41.  
  42. SHUFFLEOBJ = okshuffle.o email.o code.o
  43.  
  44. TALLYOBJ = oktally.o email.o code.o
  45.  
  46.  
  47.  
  48. all:    okbridge okshuffle oktally
  49.  
  50. okbridge:    $(OBJ)
  51.     $(CC) -o okbridge $(OBJ) -lcurses -ltermcap
  52.  
  53. okshuffle:    $(SHUFFLEOBJ) globals.h
  54.     $(CC) -o okshuffle $(SHUFFLEOBJ)
  55.  
  56. oktally:    $(TALLYOBJ) globals.h
  57.     $(CC) -o oktally $(TALLYOBJ)
  58.  
  59. install:    okbridge
  60.     install okbridge $(OKBRIDGE_DIR)
  61.     install okshuffle $(OKBRIDGE_DIR)
  62.     install oktally $(OKBRIDGE_DIR)
  63.     install -c -m 644 okbridge.help $(OKBRIDGE_HELPFILE)
  64.  
  65. clean:
  66.     rm -f *.o 
  67.     rm -f tmp*
  68.     rm -f okbridge okshuffle oktally core tags TAGS
  69.  
  70. distrib:    clean
  71.         rm -f helpfile.h 
  72.         rm -f *~
  73.         csh -f < MakeDistrib
  74.  
  75. bridge.o:    bridge.c globals.h ps.h display.h input.h network.h\
  76.         terminal.h help.h scoring.h
  77.  
  78. code.o:        code.h code.c
  79.  
  80. display.o:    display.h display.c globals.h terminal.h
  81.  
  82. email.o:    email.h email.c code.h
  83.  
  84. help.o:        help.h help.c globals.h ps.h input.h terminal.h helpfile.h
  85.  
  86. input.o:    input.h input.c globals.h ps.h network.h terminal.h display.h\
  87.         help.h input.h
  88.  
  89. network.o:    network.h network.c globals.h socket.c
  90.  
  91. ps.o:        ps.h ps.c
  92.  
  93. socket.o:    socket.c
  94.  
  95. scoring.o:    scoring.h scoring.c globals.h
  96.  
  97. startup.o:    globals.h
  98.  
  99. terminal.o:    terminal.h terminal.c
  100.  
  101. helpfile.h:
  102.         echo 'char *help_file_name="'$(OKBRIDGE_HELPFILE)'";' \
  103.         > helpfile.h
  104.  
  105.