Update makefile more

This commit is contained in:
dokutan 2020-02-08 04:10:34 +01:00
parent 1f75629c3c
commit d7bd82db05

View file

@ -1,7 +1,7 @@
BIN_DIR = /usr/bin
install:
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0 && \
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0 -Wall -O2 && \
cp ./mouse_m908 $(BIN_DIR)/mouse_m908 && \
cp ./mouse_m908.rules /etc/udev/rules.d
@ -13,9 +13,8 @@ uninstall:
rm $(BIN_DIR)/mouse_m908
upgrade:
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0 && \
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0 -Wall -O2 && \
cp ./mouse_m908 $(BIN_DIR)/mouse_m908
build:
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0
g++ mouse_m908.cpp -o mouse_m908 -lusb-1.0 -Wall -O2