aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-01-27 11:35:06 +0100
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-01-27 11:35:06 +0100
commitd8dd70b7f9577322424002b256bb8b2367107a2f (patch)
tree7ece989ef465afbed1f06f4b1abc0df7f14beceb
parent9b8ebc6ed1a1fdc15c404774bf102c883a34d990 (diff)
downloadlibnitrokey-d8dd70b7f9577322424002b256bb8b2367107a2f.tar.gz
libnitrokey-d8dd70b7f9577322424002b256bb8b2367107a2f.tar.bz2
makefile: link libnitrokey.so w/ hidapi-libusb
Signed-off-by: Szczepan Zalega <szczepan.zalega@gmail.com
-rw-r--r--Makefile2
-rw-r--r--unittest/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c5a4435..1b4a261 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ DEPENDS = $(CXXSOURCES:%.cc=$(BUILD)/%.d)
all: $(OBJ) $(BUILD)/libnitrokey.so unittest
$(BUILD)/libnitrokey.so: $(OBJ) $(DEPENDS)
- $(CXX) $(SOFLAGS) $(OBJ) -o $@
+ $(CXX) $(SOFLAGS) $(OBJ) $(LIB) -o $@
$(BUILD)/%.d: %.cc
$(CXX) -M $< -o $@ $(INCLUDE) $(CXXFLAGS)
diff --git a/unittest/Makefile b/unittest/Makefile
index fb3f4ef..145c738 100644
--- a/unittest/Makefile
+++ b/unittest/Makefile
@@ -4,7 +4,7 @@ LD = $(CXX)
INCLUDE = -I../include
LIB = -L../build
-LDLIBS = -lhidapi-libusb -lnitrokey
+LDLIBS = -lnitrokey
BUILD = build
CXXFLAGS = -std=c++14 -fPIC