Improved Makefile. Added initial Android support.
This commit is contained in:
7
Makefile
7
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user