diff options
author | 2023-02-03 22:03:35 +0100 | |
---|---|---|
committer | 2023-02-03 22:03:35 +0100 | |
commit | 8fba1b132e14e2aa6e64aa2c8291a033bdb150e4 (patch) | |
tree | 848c977c917894b047b7c919aeb8e85afae6694e | |
parent | 06982e45f3ee1f87f452d7f209d4c4c959b508df (diff) | |
download | log-8fba1b132e14e2aa6e64aa2c8291a033bdb150e4.tar.gz log-8fba1b132e14e2aa6e64aa2c8291a033bdb150e4.zip |
Add Makefile in test directory
-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..a94bb88 --- /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:liblog.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} |