aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-26 20:30:45 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-26 20:30:45 +0200
commit3df364ebb1e5d412bcbddc337871c921d390172c (patch)
treed41f6f3f3cc8ad787596dc0b786cd6fbca21b1c2 /Makefile
parentm fixes + store client information in a hash table and in a linked list (diff)
downloadmds-3df364ebb1e5d412bcbddc337871c921d390172c.tar.gz
mds-3df364ebb1e5d412bcbddc337871c921d390172c.tar.bz2
mds-3df364ebb1e5d412bcbddc337871c921d390172c.tar.xz
add table optimised for file descriptors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9840226..04befaa 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
# Object files for the libary
-LIBOBJ = linked-list hash-table
+LIBOBJ = linked-list hash-table fd-table
# Build rules.
@@ -73,7 +73,7 @@ bin/%: obj/%.o bin/libmdsserver.so
mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -o $@ -Lbin -lmdsserver obj/$*.o
-obj/%.o: src/%.c src/%.h src/config.h
+obj/%.o: src/%.c src/*.h src/libmdsserver/*.h
mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -Isrc -c -o $@ $<
@@ -82,7 +82,7 @@ bin/libmdsserver.so: $(foreach O,$(LIBOBJ),obj/libmdsserver/$(O).o)
mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -shared -o $@ $^
-obj/libmdsserver/%.o: src/libmdsserver/%.c src/libmdsserver/%.h
+obj/libmdsserver/%.o: src/libmdsserver/%.c src/libmdsserver/*.h
mkdir -p $(shell dirname $@)
gcc $(C_FLAGS) -fPIC -c -o $@ $<