aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-11-25 22:54:17 -0600
committerfoswret <foswret@posteo.com>2025-11-25 22:54:17 -0600
commitc9493aae669fada3659547b2ce02ee292eb58ba5 (patch)
tree9a870377596a5eb82c718aaa33d56f10e77e16ae /Makefile
parent36d72aed1800f3e2c514bf264164a6f2a6ba5f5e (diff)
cleaned up Makefile
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