mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
fix header and add a makefile so I can test in isolation.
This commit is contained in:
parent
8246a55111
commit
f128254145
2
CuTest.h
2
CuTest.h
@ -1,4 +1,4 @@
|
|||||||
ifndef CU_TEST_H
|
#ifndef CU_TEST_H
|
||||||
#define CU_TEST_H
|
#define CU_TEST_H
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
18
Makefile
Normal file
18
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user