From f662304a724e2f8d5d959f1b09790ce1ac234a40 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 7 Jun 2014 11:16:38 +0200 Subject: beginning of mds-respawn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e24f8af..ec70381 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ LIBOBJ = linked-list hash-table fd-table mds-message util # Build rules. .PHONY: all -all: obj/mds-base.o bin/mds bin/mds-server bin/libmdsserver.so +all: obj/mds-base.o bin/mds bin/mds-respawn bin/mds-server bin/libmdsserver.so MDS_SERVER_OBJ_ = mds-server interception-condition client multicast \ @@ -92,9 +92,13 @@ ifeq ($(DEBUG),y) cp test.d/mds-server $@ endif -bin/%: obj/%.o bin/libmdsserver.so +bin/%: obj/%.o obj/mds-base.o bin/libmdsserver.so mkdir -p $(shell dirname $@) - $(CC) $(C_FLAGS) -o $@ $(LDS) obj/$*.o + $(CC) $(C_FLAGS) -o $@ $(LDS) $< obj/mds-base.o + +bin/mds: obj/mds.o bin/libmdsserver.so + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -o $@ $(LDS) $< obj/mds-server/%.o: src/mds-server/%.c src/mds-server/*.h src/libmdsserver/*.h mkdir -p $(shell dirname $@) -- cgit v1.2.3-70-g09d2