home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-11-21 | 889 b | 31 lines |
- # Tron consists of 2 program files. The 'tron_server' is used to start up
- # the system. It starts a 'tron_run'-program for each player. For that it
- # gets the file-name of it through the TRON_RUN_FILE-Macro. That name has
- # to be the same on every host (e.g. /usr/games).
- # The SOCKET_NAME-Macro is used, but not really nescessary.
-
- CFLAGS = -g
- OBJ1 = tron_run.o texter.o helps.o
- OBJ2 = tron_server.o texter.o helps.o
-
- main: tron_run tron_server
-
- tron_run: $(OBJ1)
- $(CC) $(CFLAGS) $(OBJ1) -lX11 -o tron_run
-
- tron_server: $(OBJ2)
- $(CC) $(CFLAGS) $(OBJ2) -lX11 -o tron_server
-
- tron_run.o: grey_maps.h messages.h header.h
-
- tron_server.o: messages.h header.h
- $(CC) $(CFLAGS) \
- -DSOCKET_NAME=\"tron\" \
- -DTRON_RUN_FILE=\"~hoenig/sockets/tron_run\" \
- -c tron_server.c
-
- texter.o: header.h
- $(CC) $(CFLAGS) \
- -DFONT_NAME=\"-*-courier-bold-r-normal--24-*-*-*-*-*-*-*\" \
- -c texter.c
-