aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a53e318..67861a0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CC = cc
-OBJS = draw.o main.o
+DIR = src
+OBJS = $(DIR)/draw.o $(DIR)/main.o
CAIROI = `pkg-config --cflags -libs cairo cairo-pdf`
.PHONY: clean all
@@ -9,5 +10,6 @@ all: output
output: $(OBJS)
$(CC) $(CAIROI) -o output $(OBJS)
+
clean:
-rm -f $(OBJS) output