# Uncomment the following line for Solaris # C_LINK = -lsocket -lnsl -lcrypt # Uncomment this for SCO. (Note, this has only been reported to work with # Revision 3.2.4 with the "SCO TCP/IP Development System" package installed. # Please let me know if you have any other SCO success stories. # C_LINK = -lsocket -lcrypt # All others should only need to use this line C_LINK = -lcrypt # Comment the following line if you are not using the gnu c compiler # C_ARGS = -Wall #C_ARGS = -Wno-non-template-friend -O9 C_ARGS =-Wno-deprecated -O9 # You might have to change this if your c compiler is not cc CC = g++ # You shouldn't need to make any more changes below this line. all: tcpclient renew: distclean all clean: rm -f *.o distclean: clean rm -f gameserv tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\ tcpclient.o $(C_LINK) tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h $(CC) $(C_ARGS) -c tcpclient.cpp tcpserver.o: tcpserver.cpp sockhelp.cpp $(CC) $(C_ARGS) -c tcpserver.cpp sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h $(CC) $(C_ARGS) -c sockhelp.cpp aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h $(CC) $(C_ARGS) -c aClient.cpp gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\ listnode.h sockhelp.h $(CC) $(C_ARGS) -c gameserv.cpp c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\ listnode.h sockhelp.h $(CC) $(C_ARGS) -c c_forest.cpp player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h $(CC) $(C_ARGS) -c player.cpp config.o: config.cpp extern.h $(CC) $(C_ARGS) -c config.cpp