# Makefile for hdparm
 
all: hdparm

hdparm: hdparm.c
	gcc -Wall -Wstrict-prototypes -O2 -s -o hdparm hdparm.c
 
install: all hdparm.8
	if [ -f /usr/sbin/hdparm ]; then rm -f /usr/sbin/hdparm ; fi 
	install -m 755 -o root -g root hdparm /usr/sbin
	install -m 644 -o root -g root hdparm.8 /usr/man/man8

clean:
	rm -f hdparm *.o core
