/ctdl/f/ to get a list of all floors
[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         gcc -MM $(CFLAGS) $*.c > $*.d
19
20 # remove compilation products
21 clean:
22         rm -f webcit *.o *.d
23
24 distclean: clean
25
26 # install to target directory
27 install:
28         echo Not yet...