diff --git a/Makefile b/Makefile index 72c5a29..26e5465 100644 --- a/Makefile +++ b/Makefile @@ -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 +all: pcsensor + pcsensor: pcsensor.c ${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^