mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
18 lines
283 B
Makefile
18 lines
283 B
Makefile
# Makefile for pcsensor
|
|
|
|
ifndef ${CC}
|
|
CC = gcc
|
|
endif
|
|
|
|
CFLAGS = -g -O2 -Wall -lusb-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
|