summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 35aba2c..e856534 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,13 @@
CFLAGS += -g
CFLAGS += -O3
+CFLAGS += -I./magic_buddy
# CFLAGS += -fsanitize=address
-all: build/magic
+all: build/examples/main
-build/magic: main.c magic_buddy.c
- @ mkdir -p build
+build/examples/%: examples/%.c magic_buddy/magic_buddy.c
+ @ mkdir -p $(dir $@)
$(CC) $(CFLAGS) $^ -o $@
clean:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback