summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Hayakawa <ruby.wktk@gmail.com>2014-01-26 07:28:55 +0900
committerGabriel <g2p.code@gmail.com>2014-01-26 18:34:13 +0100
commit2bc4a7f24e448967848b975a73149c10f681d3cd (patch)
treedbaa9987092b378c96a87e357b15ca2190d0cae6
parent8ac67582357ceda528fdce6f0da59af56eac6cac (diff)
compile bcache-test
Add -lm option to compile bcache-test. Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8e38d9a..50a4d2b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ DRACUTLIBDIR=/lib/dracut
INSTALL=install
CFLAGS+=-O2 -Wall -g
-all: make-bcache probe-bcache bcache-super-show
+all: make-bcache probe-bcache bcache-super-show bcache-test
install: make-bcache probe-bcache bcache-super-show
$(INSTALL) -m0755 make-bcache bcache-super-show $(DESTDIR)${PREFIX}/sbin/
@@ -20,7 +20,7 @@ install: make-bcache probe-bcache bcache-super-show
clean:
$(RM) -f make-bcache probe-bcache bcache-super-show bcache-test *.o
-bcache-test: LDLIBS += `pkg-config --libs openssl`
+bcache-test: LDLIBS += `pkg-config --libs openssl` -lm
make-bcache: LDLIBS += `pkg-config --libs uuid blkid`
make-bcache: CFLAGS += `pkg-config --cflags uuid blkid`
make-bcache: bcache.o