BINDIR = /usr/local/sbin MANDIR = /usr/local/man/man1 CFLAGS = -fullwarn -O3 LDFLAGS = -laudio -lXm -lXt all: dphone doit: all dphone install: dphone photo.sh bsdinst -o root -m 755 -s dphone $(BINDIR) bsdinst -o root -m 750 photo.sh $(BINDIR) bsdinst -o root -m 644 dphone.1 $(MANDIR) install-init: dphone.init bsdinst -o root -m 755 dphone.init /etc/init.d/dphone chkconfig -f dphone on