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