]> jfr.im git - irc/gameservirc.git/blame - gameserv/Makefile
Removed unnecessary files like debug.log, players.dat. Changed gameserv.conf to games...
[irc/gameservirc.git] / gameserv / Makefile
CommitLineData
85ce9d3e 1# Uncomment the following line for Solaris
e3c5fe46 2# C_LINK = -lsocket -lnsl -lcrypt
85ce9d3e 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.
e3c5fe46 7# C_LINK = -lsocket -lcrypt
8
9# All others should only need to use this line
10C_LINK = -lcrypt
85ce9d3e 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
85ce9d3e 36tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
e3c5fe46 37 $(CC) $(C_ARGS) -c tcpclient.cpp
85ce9d3e 38
732db353 39tcpserver.o: tcpserver.cpp sockhelp.cpp
40 $(CC) $(C_ARGS) -c tcpserver.cpp
41
85ce9d3e 42sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
e3c5fe46 43 $(CC) $(C_ARGS) -c sockhelp.cpp
85ce9d3e 44
45aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
e3c5fe46 46 $(CC) $(C_ARGS) -c aClient.cpp
85ce9d3e 47
48gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
49 listnode.h sockhelp.h
e3c5fe46 50 $(CC) $(C_ARGS) -c gameserv.cpp
85ce9d3e 51
52c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\
53 listnode.h sockhelp.h
e3c5fe46 54 $(CC) $(C_ARGS) -c c_forest.cpp
85ce9d3e 55
56player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
e3c5fe46 57 $(CC) $(C_ARGS) -c player.cpp
85ce9d3e 58
59config.o: config.cpp extern.h
e3c5fe46 60 $(CC) $(C_ARGS) -c config.cpp