--- Makefile.orig	Tue Jul 13 03:06:57 2004
+++ Makefile	Wed Dec 28 09:25:07 2005
@@ -1,7 +1,6 @@
 SHELL = /bin/sh
-DESTDIR = /usr/local/bin
-MANUAL = /usr/local/man/man1/kbanner.1
-CFLAGS = -O
+BINDIR = $(PREFIX)/bin
+MANUAL = $(PREFIX)/man/man1/kbanner.1
 OBJ = kbanner.o font1.o font2.o font3.o
 
 .SUFFIXES: .c .o
@@ -10,12 +9,11 @@ OBJ = kbanner.o font1.o font2.o font3.o
 	cc -c $(CFLAGS) $<
 
 kbanner: $(OBJ)
-	cc $(OBJ) -o kbanner
-	strip kbanner
+	$(CC) $(CFLAGS) $(OBJ) -o kbanner
 
 clean:
 	rm -f *.o core
 
 install: kbanner
-	cp kbanner $(DESTDIR)/
-	cp kbanner.1 $(MANUAL)
+	$(BSD_INSTALL_PROGRAM) kbanner $(BINDIR)
+	$(BSD_INSTALL_MAN) kbanner.1 $(MANUAL)
