diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-08 10:24:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-08 10:24:48 +0200 |
commit | 0210ede88f9f10ef042dc37d7494c84f3f99a634 (patch) | |
tree | b47f8422dae075473b803e1cb37e7b82016df911 /Makefile | |
parent | whitespace (diff) | |
download | mds-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-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 $@) |