# Uncomment the following line for Solaris
-# C_LINK = -lsocket -lnsl
+# 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
+# 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
$(CC) -o tcpserver tcpserver.o sockhelp.o $(C_LINK)
tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
- $(CC) $(C_ARGS) $(C_LINK) -c tcpclient.cpp
+ $(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_LINK) -c sockhelp.cpp
+ $(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_LINK) -c aClient.cpp
+ $(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_LINK) -c gameserv.cpp
+ $(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_LINK) -c c_forest.cpp
+ $(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_LINK) -c player.cpp
+ $(CC) $(C_ARGS) -c player.cpp
config.o: config.cpp extern.h
- $(CC) $(C_ARGS) $(C_LINK) -c config.cpp
+ $(CC) $(C_ARGS) -c config.cpp