Improved error handling.

This commit is contained in:
2018-08-12 10:12:42 +00:00
parent c53386c4f4
commit a51b8955e2
3 changed files with 31 additions and 8 deletions

View File

@@ -13,6 +13,9 @@ OBJECTS := $(MODULES:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o)
U2FDevice: $(OBJECTS) libuECC.o libcppb64.o
g++ $(LDFLAGS) -o $@ $^
install: U2FDevice
install -m775 -t /usr/bin U2FDevice
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
g++ $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
@@ -22,7 +25,7 @@ clean:
rm $(OBJ_DIR)/*
rm U2FDevice
.PHONY: libuECC.o libcppb64.so clean
.PHONY: libuECC.o libcppb64.so clean install
libuECC.o:
$(MAKE) -C micro-ecc
cp micro-ecc/libuECC.o libuECC.o