2022-06-04 17:16:28 +10:00
|
|
|
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
|
2021-11-27 16:58:52 +11:00
|
|
|
|
|
|
|
all: lsusb howard
|
|
|
|
|
|
|
|
lsusb: lsusb.c
|
2022-06-04 17:16:28 +10:00
|
|
|
gcc $(CFLAGS) lsusb.c -olsusb.o
|
|
|
|
gcc lsusb.o $(LDFLAGS) -o lsusb
|
2021-11-27 16:58:52 +11:00
|
|
|
|
|
|
|
howard: howard.c howard.h
|
2022-06-04 17:16:28 +10:00
|
|
|
gcc $(CFLAGS) howard.c -ohoward.o
|
|
|
|
gcc howard.o $(LDFLAGS) -o howard
|
|
|
|
|
|
|
|
install: howard
|
|
|
|
cp -af howard /usr/local/bin/howard
|
2022-06-04 17:29:39 +10:00
|
|
|
cp -af initscripts/howard /etc/init.d/howard
|