all: testlibusb skypephone iftest # this is for logitech iFeel mouse usbid=04b4:0302 # this is for cypress mouse #usbid=05fe:0011 skypephone: skypephone.c cc -lusb -lhid -lpthread -o $@ $< iftest: iftest.c cc $< -o $@ testlibusb: testlibusb.c cc -lusb -o $@ $< testrawhid: testrawhid.c cc -o $@ $< detach: libhid-detach-device $(usbid) info: lsusb -vvv -d $(usbid) testui: ifeel iftest detach ./ifeel -d $(usbid) & sleep 1 ./iftest /dev/input/event4 sleep 1 killall ifeel testusb: testlibusb ./testlibusb -v clean: rm -f DEADJOE *~ rm -f skypephone.o skypephone iftest iftest.o testlibusb