]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/Makefile
Makefile Modification for tcpserver.cpp
[irc/gameservirc.git] / gameserv / Makefile
index f6ab3dd12db51c1216f98b8997bd9ee978cb22b2..ee9505629e86fc0a24bd473b1be7a06bfa8479e7 100644 (file)
@@ -1,10 +1,13 @@
 # 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
@@ -34,24 +37,27 @@ tcpserver:  tcpserver.o sockhelp.o
        $(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