]>
Commit | Line | Data |
---|---|---|
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 | |
10 | C_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 | |
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 | ||
85ce9d3e | 36 | tcpclient.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 | 39 | tcpserver.o: tcpserver.cpp sockhelp.cpp |
40 | $(CC) $(C_ARGS) -c tcpserver.cpp | |
41 | ||
85ce9d3e | 42 | sockhelp.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 | |
45 | aClient.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 | |
48 | gameserv.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 | |
52 | c_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 | |
56 | player.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 | |
59 | config.o: config.cpp extern.h | |
e3c5fe46 | 60 | $(CC) $(C_ARGS) -c config.cpp |