pcsensor-temper/Makefile
2017-09-22 13:59:53 +09:00

18 lines
309 B
Makefile

# Makefile for pcsensor
ifndef ${CC}
CC = gcc
endif
CFLAGS = -g -O2 -Wall -lusb-1.0 -I/usr/include/libusb-1.0
all: pcsensor
pcsensor: pcsensor.c
${CC} ${CFLAGS} -DUNIT_TEST -o $@ $^
clean:
rm -f pcsensor *.o
rules-install: # must be superuser to do this
cp 99-tempsensor.rules /etc/udev/rules.d