home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume5 / tron / part01 / makefile next >
Encoding:
Makefile  |  1989-11-21  |  889 b   |  31 lines

  1. # Tron consists of 2 program files. The 'tron_server' is used to start up
  2. # the system. It starts a 'tron_run'-program for each player. For that it
  3. # gets the file-name of it through the TRON_RUN_FILE-Macro. That name has
  4. # to be the same on every host (e.g. /usr/games).
  5. # The SOCKET_NAME-Macro is used, but not really nescessary.
  6.  
  7. CFLAGS = -g
  8. OBJ1 =    tron_run.o texter.o helps.o
  9. OBJ2 =    tron_server.o texter.o helps.o
  10.  
  11. main:    tron_run tron_server
  12.  
  13. tron_run:    $(OBJ1)
  14.     $(CC) $(CFLAGS) $(OBJ1) -lX11 -o tron_run
  15.  
  16. tron_server:    $(OBJ2)
  17.     $(CC) $(CFLAGS) $(OBJ2) -lX11 -o tron_server
  18.  
  19. tron_run.o:    grey_maps.h messages.h header.h
  20.  
  21. tron_server.o:    messages.h header.h
  22.         $(CC) $(CFLAGS) \
  23.         -DSOCKET_NAME=\"tron\" \
  24.         -DTRON_RUN_FILE=\"~hoenig/sockets/tron_run\" \
  25.         -c tron_server.c
  26.  
  27. texter.o:    header.h
  28.         $(CC) $(CFLAGS) \
  29.         -DFONT_NAME=\"-*-courier-bold-r-normal--24-*-*-*-*-*-*-*\"    \
  30.         -c texter.c
  31.