aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cd4d467..e7f9867 100644
--- a/Makefile
+++ b/Makefile
@@ -64,14 +64,15 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
.PHONY: all
all: bin/mds
+
bin/mds: obj/mds.o
mkdir -p bin
gcc $(C_FLAGS) -o $@ $^
-obj/mds.o: src/mds.c
+obj/%.o: src/%.c src/*.h
mkdir -p obj
- gcc $(C_FLAGS) -c -o $@ $^
+ gcc $(C_FLAGS) -c -o $@ $<