projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring, remove build bits for libmicrohttpd
[blerg.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
0b99b0d
..
bf27046
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,16
+1,24
@@
-CFLAGS = -g
-L
IBS =
+CFLAGS = -g
-Ilibmicrohttpd-0.9.3/src/include -Iyajl/build/yajl-1.0.11/include
+L
DFLAGS = -Llibmicrohttpd-0.9.3/src/daemon/.libs -Lyajl/build/yajl-1.0.11/lib
-targets = blergtool
-blergtool_objects = blergtool.o database.o
+targets = blerg.a blergtool http_blerg
+blerg_a_objects = database.o tags.o
+blergtool_objects = blergtool.o blerg.a
+http_blerg_objects = http_blerg.o auth.o blerg.a
all: $(targets)
clean:
all: $(targets)
clean:
- rm -f $(targets) $(blergtool_objects)
+ rm -f $(targets) $(blerg_a_objects) $(blergtool_objects) $(http_blerg_objects)
+
+blerg.a: $(blerg_a_objects)
+ ar rcu $@ $(blerg_a_objects)
blergtool: $(blergtool_objects)
gcc $^ -o $@
blergtool: $(blergtool_objects)
gcc $^ -o $@
+http_blerg: $(http_blerg_objects)
+ gcc $(LDFLAGS) $(http_blerg_objects) -lpthread -lmicrohttpd -lyajl_s -o $@
+
%.o: %.c
gcc $(CFLAGS) $(LIBS) -c $< -o $@
%.o: %.c
gcc $(CFLAGS) $(LIBS) -c $< -o $@