webcit-ng: don't generate .d files , they are not needed
[citadel.git] / webcit-ng / Makefile
1 OBJS := http.o main.o request.o tls.o static.o tcp_sockets.o webserver.o ctdlclient.o \
2         admin_functions.o room_functions.o util.o caldav_reports.o messages.o \
3         ctdlfunctions.o ctdl_commands.o forum_view.o html2html.o text2html.o user_functions.o \
4         floor_functions.o
5 CFLAGS := -ggdb -Wno-format-truncation
6 LDFLAGS := 
7
8 # link
9 webcit: $(OBJS)
10         gcc $(OBJS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
11
12 # pull in dependency info for *existing* .o files
13 -include $(OBJS:.o=.d)
14
15 # compile and generate dependency info
16 %.o: %.c
17         gcc -c $(CFLAGS) $*.c -o $*.o
18
19 # remove compilation products
20 clean:
21         rm -f webcit *.o *.d
22
23 distclean: clean
24
25 # install to target directory
26 install:
27         echo Not yet...