oooh, lotsa good stuff
[citadel.git] / webcit / Makefile
index 4081a7fb5153f0523d961cb125868a01d17da0af..3289df7256804d468fe71b26e1a6af82296a2650 100644 (file)
@@ -1,16 +1,27 @@
 all: webserver webcit
 
+
+
 webserver: webserver.o context_loop.o
-       cc webserver.o context_loop.o -lpthread -o webserver
+       cc webserver.o context_loop.o \
+               -lpthread -o webserver
 
 webserver.o: webserver.c webcit.h
-       cc -c webserver.c
+       cc -c -D_REENTRANT webserver.c
 
 context_loop.o: context_loop.c webcit.h
-       cc -c context_loop.c
+       cc -c -D_REENTRANT context_loop.c
+
 
-webcit: webcit.o
-       cc webcit.o -o webcit
+
+webcit: webcit.o auth.o tcp_sockets.o
+       cc webcit.o auth.o tcp_sockets.o -o webcit
 
 webcit.o: webcit.c webcit.h
        cc -c webcit.c
+
+auth.o: auth.c webcit.h
+       cc -c auth.c
+
+tcp_sockets.o: tcp_sockets.c webcit.h
+       cc -c tcp_sockets.c