Brute-force decryption of the tetrisstart message, now it works even for clients...
[tetrinet.git] / Makefile
blob62c8f0812532c788cc088ec9df0d49a50b21f7c4
1 CC = cc
3 CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
4 OBJS = sockets.o tetrinet.o tetris.o tty.o
5 ### no xwin.o, because it isn't done yet
6 # OBJS = sockets.o tetrinet.o tetris.o tty.o xwin.o
8 ### If you want to have -server tetrinet client option, comment the two lines
9 ### above and uncomment this instead.
11 # CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -DBUILTIN_SERVER -Wall
12 # OBJS = server.o sockets.o tetrinet.o tetris.o tty.o xwin.o
14 ### If you experience random delays and server freezes when accepting new
15 ### clients, add -DNO_BRUTE_FORCE_DECRYPTION to the CFLAGS line.
17 ########
19 all: tetrinet tetrinet-server
21 install: all
22 cp -p tetrinet tetrinet-server /usr/games
24 clean:
25 rm -f tetrinet tetrinet-server *.o
27 spotless: clean
29 binonly:
30 rm -f *.[cho] Makefile
31 rm -rf CVS/
33 ########
35 tetrinet: $(OBJS)
36 $(CC) -o $@ $(OBJS) -lncurses
38 tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h
39 $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
41 .c.o:
42 $(CC) $(CFLAGS) -c $<
44 server.o: server.c tetrinet.h tetris.h server.h sockets.h
45 sockets.o: sockets.c sockets.h tetrinet.h
46 tetrinet.o: tetrinet.c tetrinet.h io.h server.h sockets.h tetris.h
47 tetris.o: tetris.c tetris.h tetrinet.h io.h sockets.h
48 tty.o: tty.c tetrinet.h tetris.h io.h
49 ### no xwin.o, because it isn't done yet
50 #xwin.o: xwin.c tetrinet.h tetris.h io.h
52 tetrinet.h: io.h