CFLAGS=-c -D_LINUX -g -Wall -I/usr/include/hidapi -I/usr/include/libusb-1.0 LDFLAGS=-L/usr/lib/x86_64-linux-gnu/ -lhidapi-hidraw -lusb-1.0 all: lsusb howard lsusb: lsusb.c gcc $(CFLAGS) lsusb.c -olsusb.o gcc lsusb.o $(LDFLAGS) -o lsusb howard: howard.c howard.h gcc $(CFLAGS) howard.c -ohoward.o gcc howard.o $(LDFLAGS) -o howard install: howard cp -af howard /usr/local/bin/howard cp -af initscripts/howard /etc/init.d/howard