aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-22 05:19:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-22 05:31:18 +0200
commit9c7d3117f422a7deb3e42d666ed9e2308438eaca (patch)
tree300b5dc1ce99183ca8c6e300bbab6490d08277b0 /Makefile
parentadd documentation of the basic protocol (diff)
downloadmds-9c7d3117f422a7deb3e42d666ed9e2308438eaca.tar.gz
mds-9c7d3117f422a7deb3e42d666ed9e2308438eaca.tar.bz2
mds-9c7d3117f422a7deb3e42d666ed9e2308438eaca.tar.xz
linked list implementation
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-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 $@ $<