mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-15 16:23:34 +01:00
Add Check unit testing example
This commit is contained in:
15
check/Makefile
Normal file
15
check/Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user