aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-20 13:21:54 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-20 13:21:54 +0200
commite20b2956e4d39fd8698a01d121916827d3bf0e63 (patch)
treed4bf8526d33ec1f100fba04655760b9dddc2d2f7 /Makefile
parentnot too much... (diff)
downloadmds-e20b2956e4d39fd8698a01d121916827d3bf0e63.tar.gz
mds-e20b2956e4d39fd8698a01d121916827d3bf0e63.tar.bz2
mds-e20b2956e4d39fd8698a01d121916827d3bf0e63.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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 $@ $<