* webserver.c, context_loop.c, webcit.c: add commandline args for host
[citadel.git] / webcit / Makefile
index 3d45d4e00456e3a83b2bf53dfddd6c5fc5f0800d..b41aed353823795749f77a093a118d232a08f5ef 100644 (file)
@@ -1,16 +1,47 @@
 all: webserver webcit
 
+
+clean:
+       rm *.o webcit webserver
+
+
 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
-       cc -c webserver.c
+webserver.o: webserver.c webcit.h
+       cc -c -D_REENTRANT webserver.c
 
-context_loop.o: context_loop.c
-       cc -c context_loop.c
+context_loop.o: context_loop.c webcit.h
+       cc -c -D_REENTRANT context_loop.c
 
-webcit: webcit.o
-       cc webcit.o -o webcit
 
-webcit.o: webcit.c
+
+webcit: webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
+       roomops.o tools.o
+       cc webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o \
+       tools.o roomops.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
+
+mainmenu.o: mainmenu.c webcit.h
+       cc -c mainmenu.c
+
+serv_func.o: serv_func.c webcit.h
+       cc -c serv_func.c
+
+who.o: who.c webcit.h
+       cc -c who.c
+
+tools.o: tools.c webcit.h
+       cc -c tools.c
+
+roomops.o: roomops.c webcit.h
+       cc -c roomops.c