]> jfr.im git - irc/gameservirc.git/blob - gameserv/Makefile
Removed unnecessary files like debug.log, players.dat. Changed gameserv.conf to games...
[irc/gameservirc.git] / gameserv / Makefile
1 # Uncomment the following line for Solaris
2 # C_LINK = -lsocket -lnsl -lcrypt
3
4 # Uncomment this for SCO. (Note, this has only been reported to work with
5 # Revision 3.2.4 with the "SCO TCP/IP Development System" package installed.
6 # Please let me know if you have any other SCO success stories.
7 # C_LINK = -lsocket -lcrypt
8
9 # All others should only need to use this line
10 C_LINK = -lcrypt
11
12 # Comment the following line if you are not using the gnu c compiler
13 # C_ARGS = -Wall
14 #C_ARGS = -Wno-non-template-friend -O9
15 C_ARGS =-Wno-deprecated -O9
16
17 # You might have to change this if your c compiler is not cc
18 CC = g++
19
20 # You shouldn't need to make any more changes below this line.
21
22 all: tcpclient
23
24 renew: distclean all
25
26 clean:
27 rm -f *.o
28
29 distclean: clean
30 rm -f gameserv
31
32 tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o
33 $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\
34 tcpclient.o $(C_LINK)
35
36 tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
37 $(CC) $(C_ARGS) -c tcpclient.cpp
38
39 tcpserver.o: tcpserver.cpp sockhelp.cpp
40 $(CC) $(C_ARGS) -c tcpserver.cpp
41
42 sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
43 $(CC) $(C_ARGS) -c sockhelp.cpp
44
45 aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
46 $(CC) $(C_ARGS) -c aClient.cpp
47
48 gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
49 listnode.h sockhelp.h
50 $(CC) $(C_ARGS) -c gameserv.cpp
51
52 c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\
53 listnode.h sockhelp.h
54 $(CC) $(C_ARGS) -c c_forest.cpp
55
56 player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
57 $(CC) $(C_ARGS) -c player.cpp
58
59 config.o: config.cpp extern.h
60 $(CC) $(C_ARGS) -c config.cpp