projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add /info method to cgi_blerg
[blerg.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
e804abe
..
5113e70
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,12
+1,14
@@
CFLAGS ?= -g
CFLAGS ?= -g
-INCLUDES = -I. -I
database -Imisc
-Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include
+INCLUDES = -I. -I
fcgi -Idatabase -Icommon -Icgi-util-2.2.1
-Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include
LDFLAGS ?=
LDFLAGS ?=
-LIBDIRS = -Llibmicrohttpd-0.9.3/src/daemon/.libs -Lyajl/build/yajl-1.0.11/lib
+HTTP_LIBDIRS = -Llibmicrohttpd-0.9.3/src/daemon/.libs -Lyajl/build/yajl-1.0.11/lib
+CGI_LIBDIRS = -Lcgi-util-2.2.1 -Lyajl/build/yajl-1.0.11/lib
-targets = blerg.a blergtool http_blerg
+targets = blerg.a blergtool http_blerg
cgi_blerg
blerg_a_objects = database/database.o database/tags.o
blergtool_objects = tools/blergtool.o blerg.a
blerg_a_objects = database/database.o database/tags.o
blergtool_objects = tools/blergtool.o blerg.a
-http_blerg_objects = http/http_blerg.o http/canned_responses.o misc/auth.o blerg.a
+http_blerg_objects = http/http_blerg.o http/canned_responses.o common/app.o common/auth.o blerg.a
+cgi_blerg_objects = cgi/cgi_blerg.o common/app.o common/auth.o blerg.a
all: $(targets)
all: $(targets)
@@
-20,7
+22,10
@@
blergtool: $(blergtool_objects)
gcc $(LDFLAGS) $^ -o $@
http_blerg: $(http_blerg_objects)
gcc $(LDFLAGS) $^ -o $@
http_blerg: $(http_blerg_objects)
- gcc $(LIBDIRS) $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@
+ gcc $(HTTP_LIBDIRS) $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@
+
+cgi_blerg: $(cgi_blerg_objects)
+ gcc $(CGI_LIBDIRS) $(LDFLAGS) $(cgi_blerg_objects) -lcgi-util -lyajl_s -o $@
%.o: %.c
gcc $(INCLUDES) $(CFLAGS) -c $< -o $@
%.o: %.c
gcc $(INCLUDES) $(CFLAGS) -c $< -o $@