aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 196258c..048a21d 100644
--- a/Makefile
+++ b/Makefile
@@ -62,15 +62,15 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
# Build rules.
.PHONY: all
-all: bin/mds bin/mds-server
+all: bin/mds bin/mds-server bin/libmdsserver/linked-list
bin/%: obj/%.o
- mkdir -p bin
+ mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -o $@ $^
obj/%.o: src/%.c src/%.h src/config.h
- mkdir -p obj
+ mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -c -o $@ $<