aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-23 06:32:09 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-23 06:32:09 +0200
commit579bc134069648341fbf6d3a3eb9a994523e8746 (patch)
treeff76a3134672d7d20325c832a95c6ab87ce683ff
parentupdate makefile (diff)
downloadmds-579bc134069648341fbf6d3a3eb9a994523e8746.tar.gz
mds-579bc134069648341fbf6d3a3eb9a994523e8746.tar.bz2
mds-579bc134069648341fbf6d3a3eb9a994523e8746.tar.xz
link binaries to the library
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 fedac35..bfe7142 100644
--- a/Makefile
+++ b/Makefile
@@ -65,13 +65,13 @@ C_FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
all: bin/mds bin/mds-server bin/libmdsserver.so
-bin/%: obj/%.o
+bin/%: obj/%.o bin/libmdsserver.so
mkdir -p $(shell dirname $@)
- gcc $(C_FLAGS) -o $@ $^
+ gcc $(C_FLAGS) -o $@ -Lbin -lmdsserver obj/$*.o
obj/%.o: src/%.c src/%.h src/config.h
mkdir -p $(shell dirname $@)
- gcc $(C_FLAGS) -c -o $@ $<
+ gcc $(C_FLAGS) -Isrc -c -o $@ $<
bin/libmdsserver.so: obj/libmdsserver/linked-list.o obj/libmdsserver/hash-table.o