When checking to see whether we have to rebind a new key and/or
[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 CFLAGS := -ggdb -Wno-format-truncation
5 LDFLAGS := 
6
7 # link
8 webcit: $(OBJS)
9         gcc $(OBJS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
10
11 # pull in dependency info for *existing* .o files
12 -include $(OBJS:.o=.d)
13
14 # compile and generate dependency info
15 %.o: %.c
16         gcc -c $(CFLAGS) $*.c -o $*.o
17         gcc -MM $(CFLAGS) $*.c > $*.d
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...