Added -Wno-format-truncation to the CFLAGS to make it shut up about calls to snprintf...
[citadel] / webcit-ng / Makefile
1 OBJS := http.o main.o request.o ssl.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
2 CFLAGS := -ggdb -Wno-format-truncation
3 LDFLAGS := 
4
5 # link
6 webcit: $(OBJS)
7         gcc $(OBJS) $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
8
9 # pull in dependency info for *existing* .o files
10 -include $(OBJS:.o=.d)
11
12 # compile and generate dependency info
13 %.o: %.c
14         gcc -c $(CFLAGS) $*.c -o $*.o
15         gcc -MM $(CFLAGS) $*.c > $*.d
16
17 # remove compilation products
18 clean:
19         rm -f webcit *.o *.d
20
21 distclean: clean
22
23 # install to target directory
24 install:
25         echo Not yet...