aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2019-01-15 19:42:45 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2019-01-15 19:42:45 -0500
commita8ca001a8f811403bccffed03243954f5a52b27b (patch)
tree03c6ac85145afd4b2fd1079dd29a3a1ad0b74974 /Makefile
parent195c332a2314305392ee2a09272e3fbd4f1b134a (diff)
downloadlibctemplates-a8ca001a8f811403bccffed03243954f5a52b27b.tar.gz
libctemplates-a8ca001a8f811403bccffed03243954f5a52b27b.tar.bz2
libctemplates-a8ca001a8f811403bccffed03243954f5a52b27b.zip
Spelling corrections
Corrected a bunch of spelling mistakes in the readme and the Makefile
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