aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9539a7d..faf08df 100644
--- a/Makefile
+++ b/Makefile
@@ -76,17 +76,17 @@ LIBOBJ = linked-list hash-table fd-table mds-message util
# Build rules.
.PHONY: all
-all: bin/mds bin/mds-server bin/libmdsserver.so obj/mds-base.o
+all: obj/mds-base.o bin/mds bin/mds-server bin/libmdsserver.so
MDS_SERVER_OBJ_ = mds-server interception_condition client multicast \
queued_interception globals signals interceptors \
sending slavery reexec receiving
-MDS_SERVER_OBJ = $(foreach O,$(MDS_SERVER_OBJ_),mds-server/$(O))
+MDS_SERVER_OBJ = obj/mds-base.o $(foreach O,$(MDS_SERVER_OBJ_),obj/mds-server/$(O).o)
-bin/mds-server: $(foreach O,$(MDS_SERVER_OBJ),obj/$(O).o) bin/libmdsserver.so
+bin/mds-server: $(MDS_SERVER_OBJ) bin/libmdsserver.so
mkdir -p $(shell dirname $@)
- $(CC) $(C_FLAGS) -o $@ $(LDS) $(foreach O,$(MDS_SERVER_OBJ),obj/$(O).o)
+ $(CC) $(C_FLAGS) -o $@ $(LDS) $(MDS_SERVER_OBJ)
ifeq ($(DEBUG),y)
mv $@ $@.real
cp test.d/mds-server $@