From c2188fc9cf264004af795645b61b2c468263e216 Mon Sep 17 00:00:00 2001 From: shakemid Date: Fri, 22 Sep 2017 13:59:53 +0900 Subject: [PATCH] Fix Makefile --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 $@ $^