Tetrifast support.
[tetrinet/clach04.git] / Makefile
blob3744f15abef2fefcbd5cfac71522002d750762b2
1 CC = cc
2 CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g
4 OBJS = server.o sockets.o tetrinet.o tetris.o tty.o xwin.o
6 ########
8 all: tetrinet tetrinet-server
10 install: all
11 cp -p tetrinet tetrinet-server /usr/games
13 clean:
14 rm -f tetrinet tetrinet-server *.o
16 spotless: clean
18 ########
20 tetrinet: $(OBJS)
21 $(CC) -o $@ $(OBJS) -lncurses
23 tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h
24 $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
26 .c.o:
27 $(CC) $(CFLAGS) -c $<
29 server.o: server.c tetrinet.h tetris.h server.h sockets.h
30 sockets.o: sockets.c sockets.h tetrinet.h
31 tetrinet.o: tetrinet.c tetrinet.h io.h server.h sockets.h tetris.h
32 tetris.o: tetris.c tetris.h tetrinet.h io.h sockets.h
33 tty.o: tty.c tetrinet.h tetris.h io.h
34 xwin.o: xwin.c tetrinet.h tetris.h io.h
36 tetrinet.h: io.h