X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=Makefile;h=137844b1588eb741c769d0429e102d0b660d76f4;hb=4755aca02762c23967027d6b57a94f3c6adcc684;hp=5722ba5359a9539ac2a5b0bdc0c7e1c7c25020d4;hpb=fff174451c104dd5dab4517a71b660263ffd8b4e;p=blerg.git diff --git a/Makefile b/Makefile index 5722ba5..137844b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ -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 +CFLAGS ?= -g +INCLUDES = -Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include +LDFLAGS ?= +LIBDIRS = -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 @@ -15,10 +17,10 @@ blerg.a: $(blerg_a_objects) ar rcu $@ $(blerg_a_objects) blergtool: $(blergtool_objects) - gcc $^ -o $@ + gcc $(LDFLAGS) $^ -o $@ http_blerg: $(http_blerg_objects) - gcc $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@ + gcc $(LIBDIRS) $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@ %.o: %.c - gcc $(CFLAGS) $(LIBS) -c $< -o $@ + gcc $(INCLUDES) $(CFLAGS) -c $< -o $@