From 0210ede88f9f10ef042dc37d7494c84f3f99a634 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 8 Jun 2014 10:24:48 +0200 Subject: beginning of echo server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 $@) -- cgit v1.2.3-70-g09d2