X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=bf270462bc22245f7ba24b2e678b63ceae6d12d5;hb=3d6d277d4cdfff7c11729cde0e2498b4b3912a98;hp=761b2bb726368e78c9c517b7d2103a8636e9bc24;hpb=756d4bcc451233245a952d4b5b0e9fd348323131;p=blerg.git diff --git a/Makefile b/Makefile index 761b2bb..bf27046 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ -libmicrohttpd_a = libmicrohttpd-0.9.3/src/daemon/.libs/libmicrohttpd.a - -CFLAGS = -g -Ilibmicrohttpd-0.9.3/src/include -LIBS = +CFLAGS = -g -Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include +LDFLAGS = -Llibmicrohttpd-0.9.3/src/daemon/.libs -Lyajl/build/yajl-1.0.11/lib targets = blerg.a blergtool http_blerg blerg_a_objects = database.o tags.o @@ -12,19 +10,15 @@ all: $(targets) clean: rm -f $(targets) $(blerg_a_objects) $(blergtool_objects) $(http_blerg_objects) - -cd libmicrohttpd-0.9.3 && make distclean blerg.a: $(blerg_a_objects) ar rcu $@ $(blerg_a_objects) -$(libmicrohttpd_a): - cd libmicrohttpd-0.9.3 && ./configure --disable-https --disable-shared && make - blergtool: $(blergtool_objects) gcc $^ -o $@ -http_blerg: $(http_blerg_objects) $(libmicrohttpd_a) - gcc $(http_blerg_objects) -lpthread $(libmicrohttpd_a) -o $@ +http_blerg: $(http_blerg_objects) + gcc $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@ %.o: %.c gcc $(CFLAGS) $(LIBS) -c $< -o $@