aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-07 11:16:38 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-07 11:16:38 +0200
commitf662304a724e2f8d5d959f1b09790ce1ac234a40 (patch)
tree96d944646e87f7cc7e8cef9ab143df57822d24da /Makefile
parentfix payload reading (last regression) (diff)
downloadmds-f662304a724e2f8d5d959f1b09790ce1ac234a40.tar.gz
mds-f662304a724e2f8d5d959f1b09790ce1ac234a40.tar.bz2
mds-f662304a724e2f8d5d959f1b09790ce1ac234a40.tar.xz
beginning of mds-respawn
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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 $@)