Fix Makefile

This commit is contained in:
shakemid 2017-09-22 13:59:53 +09:00
parent 5beecd0fc0
commit c2188fc9cf

View file

@ -1,8 +1,13 @@
all: pcsensor # Makefile for pcsensor
ifndef ${CC}
CC = gcc
endif
CC = gcc
CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0 CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0
all: pcsensor
pcsensor: pcsensor.c pcsensor: pcsensor.c
${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^ ${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^