diff options
| author | foswret <foswret@posteo.com> | 2025-11-25 22:54:17 -0600 |
|---|---|---|
| committer | foswret <foswret@posteo.com> | 2025-11-25 22:54:17 -0600 |
| commit | c9493aae669fada3659547b2ce02ee292eb58ba5 (patch) | |
| tree | 9a870377596a5eb82c718aaa33d56f10e77e16ae /Makefile | |
| parent | 36d72aed1800f3e2c514bf264164a6f2a6ba5f5e (diff) | |
cleaned up Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |
