]> jfr.im git - irc/gameservirc.git/blame - gameserv/Makefile
took out something... just a test
[irc/gameservirc.git] / gameserv / Makefile
CommitLineData
85ce9d3e 1# Uncomment the following line for Solaris
2# C_LINK = -lsocket -lnsl
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
8
9# Comment the following line if you are not using the gnu c compiler
10# C_ARGS = -Wall
11#C_ARGS = -Wno-non-template-friend -O9
12C_ARGS =-Wno-deprecated -O9
13
14# You might have to change this if your c compiler is not cc
15CC = g++
16
17# You shouldn't need to make any more changes below this line.
18
19all: tcpclient
20
21renew: distclean all
22
23clean:
24 rm -f *.o
25
26distclean: clean
27 rm -f gameserv
28
29tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o
30 $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\
31 tcpclient.o $(C_LINK)
32
33tcpserver: tcpserver.o sockhelp.o
34 $(CC) -o tcpserver tcpserver.o sockhelp.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_LINK) -c tcpclient.cpp
38
39sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
40 $(CC) $(C_ARGS) $(C_LINK) -c sockhelp.cpp
41
42aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
43 $(CC) $(C_ARGS) $(C_LINK) -c aClient.cpp
44
45gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
46 listnode.h sockhelp.h
47 $(CC) $(C_ARGS) $(C_LINK) -c gameserv.cpp
48
49c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\
50 listnode.h sockhelp.h
51 $(CC) $(C_ARGS) $(C_LINK) -c c_forest.cpp
52
53player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
54 $(CC) $(C_ARGS) $(C_LINK) -c player.cpp
55
56config.o: config.cpp extern.h
57 $(CC) $(C_ARGS) $(C_LINK) -c config.cpp