From a261c738abf870a11e0323402157e6fb759c22da Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 17 May 2023 11:34:36 +0200 Subject: Add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..83d0c11 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# See LICENSE file for copyright and license details. + +include config.mk + +all: ${NAME} + +${NAME}: ${OBJ} + ${CC} ${LFLAGS} ${OBJ} -o $@ + +debug: + @make OPT=-g all + +.c.o: + ${CC} ${CFLAGS} -c $< -o $@ + +clean: + rm -rf ${OBJ} ${NAME} -- cgit v1.2.3