]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/Makefile
Move *.c and *.h into server/ directory.
[citadel.git] / webcit-ng / Makefile
index 0fc1ded6d18d7b9cc44c04e242f016768f3ff210..cda937007a98555c7e34b80dd9f5e8b0b1a48c3d 100644 (file)
@@ -1,24 +1,13 @@
-OBJS := http.o main.o request.o tls.o static.o tcp_sockets.o webserver.o ctdlclient.o \
-       admin_functions.o room_functions.o util.o caldav_reports.o messages.o \
-       ctdlfunctions.o ctdl_commands.o forum_view.o html2html.o text2html.o user_functions.o \
-       floor_functions.o
 CFLAGS := -ggdb -Wno-format-truncation
 LDFLAGS := 
 
 # link
-webcit: $(OBJS)
-       gcc $(OBJS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
-
-# pull in dependency info for *existing* .o files
--include $(OBJS:.o=.d)
-
-# compile and generate dependency info
-%.o: %.c
-       gcc -c $(CFLAGS) $*.c -o $*.o
+webcit: server/*.c
+       gcc server/*.c $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
 
 # remove compilation products
 clean:
-       rm -f webcit *.o *.d
+       rm -f webcit
 
 distclean: clean