fix header and add a makefile so I can test in isolation.

This commit is contained in:
Enno Rehling 2014-03-16 22:26:12 +01:00
parent 8246a55111
commit f128254145
2 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,4 @@
ifndef CU_TEST_H
#ifndef CU_TEST_H
#define CU_TEST_H
#include <setjmp.h>

18
Makefile Normal file
View File

@ -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