From 9e660e594f6d3a43ea1427fb872801a2fcedad93 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 26 Sep 2023 22:32:35 +0300 Subject: initial commit --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2efa90a --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +include config.mk + +OBJ = ui.o canvas.o user.o palette.o tools.o debug.o + +all: build run + +build: ${OBJ} src/cdraw.c + mkdir build + ${CC} ${CFLAGS} ${LIBS} ${OBJ} src/cdraw.c -o build/cdraw + +run: + ./build/cdraw + +%.o: src/%.c + ${CC} ${CFLAGS} $< -c + +clean: + rm *.o + rm build/cdraw -- cgit v1.2.3