Finish tagging implementation for hash tags
[blerg.git] / Makefile
index 0b99b0d..c0050db 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,25 @@
 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:
-       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 $@
 
+tag_test: $(tag_test_objects)
+       gcc $^ -o $@
+
 %.o: %.c
        gcc $(CFLAGS) $(LIBS) -c $< -o $@