summaryrefslogtreecommitdiffstats
path: root/.graveyard/temper/Makefile
blob: d18ad71037b32e1ed670271581e320ac3b3c6e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

all: infest
infest: temper rules-install
CFLAGS = -O2 -Wall -DDEBUG

temper:	temper.c 
	${CC} -DUNIT_TEST -o $@ $^ -lusb
	chmod +s temper
	#cp -a temper /usr/bin
clean:		
	rm -f temper *.o

rules-install: /etc/udev/rules.d/99-tempsensor.rules
/etc/udev/rules.d/99-tempsensor.rules:
	cp 99-tempsensor.rules /etc/udev/rules.d
debian-prereq:
	apt-get install libusb-dev
uninstall:
	rm -f /etc/udev/rules.d/99-tempsensor.rules /usr/bin/temper