6 CFLAGS = -Wall -Werror -Wno-unused-result -g --std=c99
7 CPPFLAGS = $(shell pkg-config --cflags glib-2.0) -I../markdown
8 LDFLAGS = $(shell pkg-config --libs glib-2.0) -L../markdown -lmarkdown
19 rm -f src/*.o src/html.c $(PROG)
22 SITE="pileus@pileus.org:~/src/site/"; \
23 PAGES="pileus@pileus.org:~/src/pages/"; \
24 rsync -uavz .htaccess .gitignore $$SITE; \
25 rsync -uavz --delete --exclude '*~' --exclude '.*' \
26 pileus.cgi src theme $$SITE; \
27 rsync -uavz --delete --exclude '*~' --exclude '.*' \
31 $(PROG): src/main.o src/html.o
32 $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
34 %.o: %.c makefile src/html.h
35 $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
37 src/%.c: theme/%.ct makefile