diff options
author | 2023-02-03 18:40:59 +0100 | |
---|---|---|
committer | 2023-02-03 18:40:59 +0100 | |
commit | 51c05fe7b5d6518bfb8a07ee3ec3c072bb21163e (patch) | |
tree | 92a52dc4849fbeb2566f8e87a88ff3ec02e5f75e /test/Makefile | |
download | string2-51c05fe7b5d6518bfb8a07ee3ec3c072bb21163e.tar.gz string2-51c05fe7b5d6518bfb8a07ee3ec3c072bb21163e.zip |
Initial commit
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..5cc71c6 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,21 @@ +# See LICENSE file for copyright and license details. + +CC = cc +SRC != find * -name '*.c' +OBJ = ${SRC:.c=.o} + +CFLAGS = -Wall -ansi --std=c89 -pedantic\ + -I../src/ +LDFLAGS = -L../ -l:libstr.a + +tests: test-app + ./test-app + +.c.o: + ${CC} ${CFLAGS} -c $< -o $@ + +test-app: ${OBJ} + ${CC} ${LDFLAGS} -o $@ ${OBJ} + +clean: + rm -f ${test-app} ${OBJ} |