projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish tagging implementation for hash tags
[blerg.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
0b99b0d
..
c0050db
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,16
+1,25
@@
CFLAGS = -g
LIBS =
CFLAGS = -g
LIBS =
-targets = blergtool
-blergtool_objects = blergtool.o database.o
+targets = blerg.a blergtool tag_test
+blerg_a_objects = database.o tags.o
+blergtool_objects = blergtool.o blerg.a
+
+tag_test_objects = tag_test.o tags.o
all: $(targets)
clean:
all: $(targets)
clean:
- rm -f $(targets) $(blergtool_objects)
+ rm -f $(targets) $(blerg_a_objects) $(blergtool_objects)
+
+blerg.a: $(blerg_a_objects)
+ ar rcu $@ $(blerg_a_objects)
blergtool: $(blergtool_objects)
gcc $^ -o $@
blergtool: $(blergtool_objects)
gcc $^ -o $@
+tag_test: $(tag_test_objects)
+ gcc $^ -o $@
+
%.o: %.c
gcc $(CFLAGS) $(LIBS) -c $< -o $@
%.o: %.c
gcc $(CFLAGS) $(LIBS) -c $< -o $@