1 libmicrohttpd_a = libmicrohttpd-0.9.3/src/daemon/.libs/libmicrohttpd.a
3 CFLAGS = -g -Ilibmicrohttpd-0.9.3/src/include
6 targets = blerg.a blergtool http_blerg
7 blerg_a_objects = database.o tags.o
8 blergtool_objects = blergtool.o blerg.a
9 http_blerg_objects = http_blerg.o blerg.a
14 rm -f $(targets) $(blerg_a_objects) $(blergtool_objects) $(http_blerg_objects)
15 -cd libmicrohttpd-0.9.3 && make distclean
17 blerg.a: $(blerg_a_objects)
18 ar rcu $@ $(blerg_a_objects)
21 cd libmicrohttpd-0.9.3 && ./configure --disable-https --disable-shared && make
23 blergtool: $(blergtool_objects)
26 http_blerg: $(http_blerg_objects) $(libmicrohttpd_a)
27 gcc $(http_blerg_objects) -lpthread $(libmicrohttpd_a) -o $@
30 gcc $(CFLAGS) $(LIBS) -c $< -o $@