aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
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