howard/Makefile

13 lines
338 B
Makefile
Raw Normal View History

2022-05-29 22:28:22 +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-05-29 22:28:22 +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-05-29 22:28:22 +10:00
gcc $(CFLAGS) howard.c -ohoward.o
gcc howard.o $(LDFLAGS) -o howard