]>
Commit | Line | Data |
---|---|---|
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 | |
12 | C_ARGS =-Wno-deprecated -O9 | |
13 | ||
14 | # You might have to change this if your c compiler is not cc | |
15 | CC = g++ | |
16 | ||
17 | # You shouldn't need to make any more changes below this line. | |
18 | ||
19 | all: tcpclient | |
20 | ||
21 | renew: distclean all | |
22 | ||
23 | clean: | |
24 | rm -f *.o | |
25 | ||
26 | distclean: clean | |
27 | rm -f gameserv | |
28 | ||
29 | tcpclient: 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 | ||
33 | tcpserver: tcpserver.o sockhelp.o | |
34 | $(CC) -o tcpserver tcpserver.o sockhelp.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_LINK) -c tcpclient.cpp | |
38 | ||
39 | sockhelp.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 | ||
42 | aClient.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 | ||
45 | gameserv.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 | ||
49 | c_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 | ||
53 | player.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 | ||
56 | config.o: config.cpp extern.h | |
57 | $(CC) $(C_ARGS) $(C_LINK) -c config.cpp |