From 579bc134069648341fbf6d3a3eb9a994523e8746 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 23 Apr 2014 06:32:09 +0200 Subject: link binaries to the library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 6 +++--- 1 file 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 -- cgit v1.2.3-70-g09d2