From f1282541451fb0de71dd1d142f519d7f5ddf01eb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Mar 2014 22:26:12 +0100 Subject: [PATCH] fix header and add a makefile so I can test in isolation. --- CuTest.h | 2 +- Makefile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/CuTest.h b/CuTest.h index 17e41b4..3866107 100644 --- a/CuTest.h +++ b/CuTest.h @@ -1,4 +1,4 @@ -ifndef CU_TEST_H +#ifndef CU_TEST_H #define CU_TEST_H #include diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3cc9d61 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +# I am not very good at Makefiles. + +CFLAGS += -Wall -g +INCLUDES = -I. + +all: test + +bin: + mkdir -p $@ + +test: bin/CuTestTest + @bin/CuTestTest + +bin/CuTestTest: AllTests.c CuTestTest.c CuTest.c | bin + $(CC) $(CFLAGS) $(INCLUDES) -lm -o $@ $^ + +clean: + @rm -rf *~ bin