aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-08 03:58:00 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-08 03:58:08 +0200
commitfbd127113629a1eed72d32ffb84572b0d40d8154 (patch)
tree5d1c4cdf7cf4260943dcd2f5aacae333b3d85e47 /Makefile
parentsplit up mds-server structs into their own .h-files and add marshal functions (diff)
downloadmds-fbd127113629a1eed72d32ffb84572b0d40d8154.tar.gz
mds-fbd127113629a1eed72d32ffb84572b0d40d8154.tar.bz2
mds-fbd127113629a1eed72d32ffb84572b0d40d8154.tar.xz
use the data structure marshallers
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1ea639c..acea291 100644
--- a/Makefile
+++ b/Makefile
@@ -69,11 +69,10 @@ LIBOBJ = linked-list hash-table fd-table mds-message util
all: bin/mds bin/mds-server/mds-server bin/libmdsserver.so
-bin/mds-server/mds-server: obj/mds-server/mds-server.o bin/libmdsserver.so \
- obj/mds-server/interception_condition.o \
- obj/mds-server/client.o
+MDS_SERVER_OBJ = mds-server/mds-server mds-server/interception_condition mds-server/client
+bin/mds-server/mds-server: $(foreach O,$(MDS_SERVER_OBJ),obj/$(O).o) bin/libmdsserver.so
mkdir -p $(shell dirname $@)
- gcc $(C_FLAGS) -o $@ -Lbin -lmdsserver -lrt obj/mds-server/mds-server.o
+ gcc $(C_FLAGS) -o $@ -Lbin -lmdsserver -lrt $(foreach O,$(MDS_SERVER_OBJ),obj/$(O).o)
bin/%: obj/%.o bin/libmdsserver.so
mkdir -p $(shell dirname $@)