]> jfr.im git - irc/gameservirc.git/blame_incremental - gameserv/Makefile
Removed unnecessary files like debug.log, players.dat. Changed gameserv.conf to games...
[irc/gameservirc.git] / gameserv / Makefile
... / ...
CommitLineData
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
10C_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
15C_ARGS =-Wno-deprecated -O9
16
17# You might have to change this if your c compiler is not cc
18CC = g++
19
20# You shouldn't need to make any more changes below this line.
21
22all: tcpclient
23
24renew: distclean all
25
26clean:
27 rm -f *.o
28
29distclean: clean
30 rm -f gameserv
31
32tcpclient: 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
36tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
37 $(CC) $(C_ARGS) -c tcpclient.cpp
38
39tcpserver.o: tcpserver.cpp sockhelp.cpp
40 $(CC) $(C_ARGS) -c tcpserver.cpp
41
42sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
43 $(CC) $(C_ARGS) -c sockhelp.cpp
44
45aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
46 $(CC) $(C_ARGS) -c aClient.cpp
47
48gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
49 listnode.h sockhelp.h
50 $(CC) $(C_ARGS) -c gameserv.cpp
51
52c_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
56player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
57 $(CC) $(C_ARGS) -c player.cpp
58
59config.o: config.cpp extern.h
60 $(CC) $(C_ARGS) -c config.cpp