Improved Makefile. Added initial Android support.

This commit is contained in:
2019-06-15 22:54:43 +01:00
parent fe525cb634
commit 01b523d072
6 changed files with 51 additions and 4 deletions

View File

@@ -18,16 +18,19 @@ install: U2FDevice
install -m775 -t /etc/systemd/system Services/U2FDevice.service
install -d /usr/share/U2FDevice/
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(OBJ_DIR)
g++ $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
$(OBJ_DIR):
mkdir $(OBJ_DIR)
-include $(OBJECTS:.o=.d)
clean:
rm $(OBJ_DIR)/*
rm U2FDevice
.PHONY: libuECC.o libcppb64.so clean install
.PHONY: libuECC.o libcppb64.o clean install
libuECC.o:
$(MAKE) -C micro-ecc
cp micro-ecc/libuECC.o libuECC.o