diff options
author | 2023-05-30 17:23:06 +0200 | |
---|---|---|
committer | 2023-05-30 17:23:06 +0200 | |
commit | 4f99c4289fb46e06c0ff305d12276cfc9fb5cf9c (patch) | |
tree | 1c683b5f0026f49bb78aff2f2ab78e3c63c1c849 /test/Makefile | |
parent | 7db07282b9c5dc43709d4bb0005564b91bdc3a96 (diff) | |
download | cherry-4f99c4289fb46e06c0ff305d12276cfc9fb5cf9c.tar.gz cherry-4f99c4289fb46e06c0ff305d12276cfc9fb5cf9c.zip |
Add test folder
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..d9b319d --- /dev/null +++ b/test/Makefile @@ -0,0 +1,25 @@ +# See LICENSE file for copyright and license details. + +NAME = tests +CC = cc +SRC != find * -name '*.c' +OBJ = ${SRC:.c=.o} + +LIB = x11 utils log + +CFLAGS != pkg-config --cflags ${LIB} +LFLAGS != pkg-config --libs ${LIB} + +CFLAGS += -I../build/include +LFLAGS += ../build/debug/static/libcherry.a + +all: init-lib ${OBJ} ${NAME} + +.c.o: + ${CC} ${CFLAGS} -c $< -o $@ + +init-lib: + cd ../ && make debug-static + +${NAME}: + ${CC} ${LFLAGS} ${OBJ} -o $@ |