diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-23 06:32:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-23 06:32:09 +0200 |
commit | 579bc134069648341fbf6d3a3eb9a994523e8746 (patch) | |
tree | ff76a3134672d7d20325c832a95c6ab87ce683ff | |
parent | update makefile (diff) | |
download | mds-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |