diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d8b6bbe --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "hidapi"] + path = hidapi + url = https://github.com/libusb/hidapi diff --git a/Makefile b/Makefile index 544413f..75ca2ef 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,7 @@ obj-m += hanvon.o all: - gcc hanvon-libusb.c -L/usr/local/lib -lusb-1.0 -g - + gcc hanvon-libusb.c ./hidapi/linux/hid.o -L/usr/local/lib -lusb-1.0 -ludev -g archive: tar f - --exclude=.git -C ../ -c hanvon | gzip -c9 > ../hanvon-`date +%Y%m%d`.tgz diff --git a/hidapi b/hidapi new file mode 160000 index 0000000..cdc473d --- /dev/null +++ b/hidapi @@ -0,0 +1 @@ +Subproject commit cdc473dfe43f6432dda7ad53d7656b8ae8ff968b