--- Makefile.orig 2018-07-03 19:49:02 UTC +++ Makefile @@ -1,22 +1,12 @@ -################################## -# Well, I may be doing stupid things with make -# OK, it was Makefile stupid'ness -# I don't really understand what the hell I am doing with Make, I'm -# just copying other files and seeing what works. -# heh -# i think thats all anyone does -# 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 -CC = clang +CC ?= clang +PREFIX ?= /usr/local all: $(PROGOBJ) $(PROG) @@ -45,5 +35,5 @@ strip: @ls -l $(PROG) install: all - install -d $(DESTDIR)$(BINDIR) - install -m 755 $(PROG) $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 $(PROG) $(DESTDIR)$(PREFIX)/bin