Some cleanup, genericize JSON iterator to accept a list of record IDs.
[blerg.git] / Makefile
1 CFLAGS = -g -Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include
2 LDFLAGS = -Llibmicrohttpd-0.9.3/src/daemon/.libs -Lyajl/build/yajl-1.0.11/lib
3
4 targets = blerg.a blergtool http_blerg
5 blerg_a_objects = database.o tags.o
6 blergtool_objects = blergtool.o blerg.a
7 http_blerg_objects = http_blerg.o canned_responses.o auth.o blerg.a
8
9 all: $(targets)
10
11 clean:
12         rm -f $(targets) $(blerg_a_objects) $(blergtool_objects) $(http_blerg_objects)
13
14 blerg.a: $(blerg_a_objects)
15         ar rcu $@ $(blerg_a_objects)
16
17 blergtool: $(blergtool_objects)
18         gcc $^ -o $@
19
20 http_blerg: $(http_blerg_objects)
21         gcc $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@
22
23 %.o: %.c
24         gcc $(CFLAGS) $(LIBS) -c $< -o $@