--- Makefile.orig	2009-06-05 20:07:08.000000000 +0200
+++ Makefile	2009-09-13 23:43:07.000000000 +0200
@@ -1,21 +1,11 @@
-##################################
-# <jwright> Well, I may be doing stupid things with make
-# <jwright> OK, it was Makefile stupid'ness
-# <jwright> I don't really understand what the hell I am doing with Make, I'm
-#           just copying other files and seeing what works.
-# <dragorn> heh
-# <dragorn> i think thats all anyone does
-# <dragorn> make is a twisted beast
-##################################
 LDLIBS		= -lpcap
 CFLAGS		= -pipe -Wall -DOPENSSL 
 CFLAGS		+= -O2
 LDLIBS		+= -lcrypto
 CFLAGS		+= -g3 -ggdb
-#CFLAGS		+= -static
 PROGOBJ		= md5.o sha1.o utils.o cowpatty.o genpmk.o
 PROG		= cowpatty genpmk
-BINDIR		= /usr/local/bin
+PREFIX?= /usr/local
 
 all: $(PROGOBJ) $(PROG)
 
@@ -44,5 +34,5 @@
 	@ls -l $(PROG)
 
 install: all
-	install -d $(DESTDIR)$(BINDIR)
-	install -m 755 $(PROG) $(DESTDIR)$(BINDIR)
+	install -d $(DESTDIR)$(PREFIX)/bin
+	install -m 755 $(PROG) $(PREFIX)/bin
