aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 38e220e..3738077 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ objfiles = $(objs:%=build/%.o)
TEST_1_NAME = t/test_1$(BIN_POSTFIX)
+TEST_2_NAME = t/test_2$(BIN_POSTFIX)
$(LIBNAME): $(objfiles)
ar rc $@ $^
@@ -26,10 +27,14 @@ clean:
$(RM) build/*.o *.a $(LIBNAME)
$(TEST_1_NAME): t/test_1.c $(LIBNAME)
- $(CC) $(CFLAGS) -o $(TEST_1_NAME) t/test_1.c -lctemplates
+ $(CC) $(CFLAGS) -o $@ $< -lctemplates
-test: $(TEST_1_NAME)
- $(TEST_1_NAME)
+$(TEST_2_NAME): t/test_2.c $(LIBNAME)
+ $(CC) $(CFLAGS) -o $@ $< -lctemplates
+
+test: $(TEST_1_NAME) $(TEST_2_NAME)
+ #$(TEST_1_NAME)
+ $(TEST_2_NAME)
install: $(LIBNAME)
cp $(LIBNAME) /usr/local/lib