diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-07-28 21:25:51 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-07-28 21:25:51 +0200 |
commit | 403f3aae4d7e72301c646781686692815c7c3884 (patch) | |
tree | 1a0a101954512dcf01255261dba283483f9b81f9 | |
parent | improve makefile (diff) | |
download | mds-403f3aae4d7e72301c646781686692815c7c3884.tar.gz mds-403f3aae4d7e72301c646781686692815c7c3884.tar.bz2 mds-403f3aae4d7e72301c646781686692815c7c3884.tar.xz |
put mds-registry in its own directory
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | build.mk | 5 | ||||
-rw-r--r-- | src/mds-registry/mds-registry.c (renamed from src/mds-registry.c) | 0 | ||||
-rw-r--r-- | src/mds-registry/mds-registry.h (renamed from src/mds-registry.h) | 2 |
4 files changed, 10 insertions, 2 deletions
@@ -20,7 +20,10 @@ OBJ_mds-server = mds-server interception-condition client multicast \ queued-interception globals signals interceptors \ sending slavery reexec receiving -OBJ_mds-server_ = $(foreach O,$(OBJ_mds-server),obj/mds-server/$(O).o) +OBJ_mds-registry = mds-registry + +OBJ_mds-server_ = $(foreach O,$(OBJ_mds-server),obj/mds-server/$(O).o) +OBJ_mds-registry_ = $(foreach O,$(OBJ_mds-registry),obj/mds-registry/$(O).o) @@ -22,6 +22,11 @@ ifeq ($(DEBUG),y) endif +bin/mds-registry: $(OBJ_mds-registry_) obj/mds-base.o bin/libmdsserver.so + mkdir -p $(shell dirname $@) + $(CC) $(C_FLAGS) -o $@ $(LDS) $(LDS_mds-registry) $(OBJ_mds-registry_) obj/mds-base.o + + # Link small servers. bin/%: obj/%.o obj/mds-base.o bin/libmdsserver.so diff --git a/src/mds-registry.c b/src/mds-registry/mds-registry.c index b0c6962..b0c6962 100644 --- a/src/mds-registry.c +++ b/src/mds-registry/mds-registry.c diff --git a/src/mds-registry.h b/src/mds-registry/mds-registry.h index 2f40f31..6f9355d 100644 --- a/src/mds-registry.h +++ b/src/mds-registry/mds-registry.h @@ -19,7 +19,7 @@ #define MDS_MDS_REGISTRY_H -#include "mds-base.h" +#include "../mds-base.h" #include <stdint.h> |