

CFLAGS += -O2 -Wall -ansi -pedantic


all: cpufreqd

cpufreqd: cpufreqd.c

install: cpufreqd
	install -m 0644 -o root -g root cpufreqd.1 /usr/share/man/man1
	install -m 0644 -o root -g root cpufreqd.conf.5 /usr/share/man/man5
	install -m 0711 -o root -g root cpufreqd /usr/local/sbin
	install -m 0644 -o root -g root cpufreqd.conf /etc

clean:
	@rm -f cpufreqd *~ core

