X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=Makefile;h=9a935f560816d3f333c36df4d7d87efb5d73b67c;hb=51121cd67db2faf393862fd50a0807342a5395da;hp=ed19b522059d843963b568b8507290a2d350e06d;hpb=4e824b6fa432f65753fd00323375c6bbdde7a7f9;p=blerg.git diff --git a/Makefile b/Makefile index ed19b52..9a935f5 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,10 @@ LDFLAGS ?= HTTP_LIBDIRS = $(MHD_LIBDIR) $(YAJL_LIBDIR) CGI_LIBDIRS = $(CGI_UTIL_LIBDIR) $(YAJL_LIBDIR) -targets = blerg.a blergtool http_blerg cgi_blerg rss -blerg_a_objects = database/database.o database/tags.o database/util.o +targets = blerg.a blergtool blerglatest blerg.httpd blerg.cgi rss.cgi +blerg_a_objects = database/database.o database/tags.o database/util.o database/subscription.o common/stringbucket.o blergtool_objects = tools/blergtool.o blerg.a +blerglatest_objects = tools/blerglatest.o blerg.a common/json.o rss_objects = cgi/rss.o cgi/canned_responses.o common/app.o common/escapery.o blerg.a http_blerg_objects = http/http_blerg.o http/canned_responses.o common/app.o common/json.o common/auth.o blerg.a cgi_blerg_objects = cgi/cgi_blerg.o cgi/canned_responses.o common/app.o common/json.o common/auth.o blerg.a @@ -26,13 +27,16 @@ blerg.a: $(blerg_a_objects) blergtool: $(blergtool_objects) gcc $(LDFLAGS) $^ -o $@ -http_blerg: $(http_blerg_objects) +blerglatest: $(blerglatest_objects) + gcc $(YAJL_LIBDIR) $(LDFLAGS) $^ -lyajl_s -o $@ + +blerg.httpd: $(http_blerg_objects) gcc $(HTTP_LIBDIRS) $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@ -cgi_blerg: $(cgi_blerg_objects) +blerg.cgi: $(cgi_blerg_objects) gcc $(CGI_LIBDIRS) $(LDFLAGS) $(cgi_blerg_objects) -lcgi-util -lyajl_s -o $@ -rss: $(rss_objects) +rss.cgi: $(rss_objects) gcc $(CGI_LIBDIRS) $(LDFLAGS) $(rss_objects) -lcgi-util -o $@ http/%.o: http/%.c