aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-08 10:24:48 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-08 10:24:48 +0200
commit0210ede88f9f10ef042dc37d7494c84f3f99a634 (patch)
treeb47f8422dae075473b803e1cb37e7b82016df911 /Makefile
parentwhitespace (diff)
downloadmds-0210ede88f9f10ef042dc37d7494c84f3f99a634.tar.gz
mds-0210ede88f9f10ef042dc37d7494c84f3f99a634.tar.bz2
mds-0210ede88f9f10ef042dc37d7494c84f3f99a634.tar.xz
beginning of echo server
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ec70381..1a3c248 100644
--- a/Makefile
+++ b/Makefile
@@ -72,11 +72,14 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
# Object files for the libary
LIBOBJ = linked-list hash-table fd-table mds-message util
+# Servers and utilities.
+SERVERS = mds mds-respawn mds-server mds-echo
+
# Build rules.
.PHONY: all
-all: obj/mds-base.o bin/mds bin/mds-respawn bin/mds-server bin/libmdsserver.so
+all: obj/mds-base.o $(foreach S,$(SERVERS),bin/$(S)) bin/libmdsserver.so
MDS_SERVER_OBJ_ = mds-server interception-condition client multicast \
@@ -94,7 +97,7 @@ endif
bin/%: obj/%.o obj/mds-base.o bin/libmdsserver.so
mkdir -p $(shell dirname $@)
- $(CC) $(C_FLAGS) -o $@ $(LDS) $< obj/mds-base.o
+ $(CC) $(C_FLAGS) -o $@ $(LDS) $(LDS_$*) $< obj/mds-base.o
bin/mds: obj/mds.o bin/libmdsserver.so
mkdir -p $(shell dirname $@)