Change libusb-0.1 -> libusb-1.0 to be able to build on Solaris

This commit is contained in:
K.Cima 2017-08-30 17:08:18 +09:00
parent 9eee035ff0
commit 8ccd2b1f47
5 changed files with 112 additions and 72 deletions

View file

@ -1,9 +1,10 @@
all: pcsensor
CFLAGS = -O2 -Wall
CC = gcc
CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0
pcsensor: pcsensor.c
${CC} -DUNIT_TEST -o $@ $^ -lusb
${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^
clean:
rm -f pcsensor *.o