aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4383372..8c6785c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,13 @@
-main: main.c
- clang main.c `pkg-config --cflags -libs cairo cairo-pdf` -o output
+CC = cc
+OBJS = draw.o main.o
+CAIROI = `pkg-config --cflags -libs cairo cairo-pdf`
+.PHONY: clean all
+
+#CFLAGS = -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic
+
+all: output
+
+output: $(OBJS)
+ $(CC) $(CAIROI) -o output $(OBJS)
+clean:
+ -rm -f $(OBJS) output