Add Check unit testing example

This commit is contained in:
Juraj Michalek
2013-05-01 20:30:22 +02:00
parent c8a5e7aaec
commit 133b387d3f
3 changed files with 120 additions and 0 deletions

15
check/Makefile Normal file
View File

@@ -0,0 +1,15 @@
OBJ = main.o
LDADD = -lcheck
test: $(OBJ)
${CC} ${OBJ} -o test ${LDADD}
.c.o:
${CC} ${CFLAGS} -c $<
clean:
rm -f test