commit:0633c5ed9ca5302ba9ff0eb9050bc23f1173e38a
author:Chip Black
committer:Chip Black
date:Sat Nov 23 15:16:05 2013 -0600
parents:98f1ef5611188a4ba79757c55b13b987d9858028
Rearrange makefile to put auth stuff in blerg_auth.a

Make it easier to compile the perl module
diff --git a/Makefile b/Makefile
line changes: +7/-3
index 850da29..775276e
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,13 @@ LDFLAGS ?=
 HTTP_LIBDIRS = $(MHD_LIBDIR) $(YAJL_LIBDIR)
 CGI_LIBDIRS = $(CGI_UTIL_LIBDIR) $(YAJL_LIBDIR)
 
-targets = blerg.a blergtool blerglatest blerg.cgi www/build/enyo-blerg.js
+targets = blerg.a blerg_auth.a blergtool blerglatest blerg.cgi www/build/enyo-blerg.js
 blerg_a_objects = database/database.o database/tags.o database/util.o database/subscription.o common/stringbucket.o
+blerg_auth_a_objects = common/auth.o common/md5.o
 blergtool_objects = tools/blergtool.o blerg.a
 blerglatest_objects = tools/blerglatest.o blerg.a common/json.o
-http_blerg_objects = http/http_blerg.o http/canned_responses.o common/app.o common/json.o common/auth.o common/md5.o blerg.a
-cgi_blerg_objects = cgi/cgi_blerg.o cgi/canned_responses.o common/app.o common/json.o common/auth.o common/md5.o builddeps/scrypt.a blerg.a
+http_blerg_objects = http/http_blerg.o http/canned_responses.o common/app.o common/json.o blerg_auth.a builddeps/scrypt.a blerg.a
+cgi_blerg_objects = cgi/cgi_blerg.o cgi/canned_responses.o common/app.o common/json.o blerg_auth.a builddeps/scrypt.a blerg.a
 
 all: $(targets)
 
@@ -25,6 +26,9 @@ clean:
 blerg.a: $(blerg_a_objects)
 	ar rcu $@ $(blerg_a_objects)
 
+blerg_auth.a: builddeps/scrypt.a $(blerg_auth_a_objects)
+	ar rcu $@ $(blerg_auth_a_objects)
+
 blergtool: $(blergtool_objects)
 	gcc $(LDFLAGS) $^ -o $@