$OpenBSD: patch-Makefile,v 1.1.1.1 2005/06/11 09:46:08 alek Exp $ --- Makefile.orig Sat Feb 28 02:41:10 2004 +++ Makefile Sat Jun 11 11:00:39 2005 @@ -1,18 +1,19 @@ BINDIR = /usr/sbin #FLAGS = -O2 -g -FLAGS = -O2 -INCLUDE = -I/usr/kerberos/include -I/usr/kerberos/include/krb5 -KRB5_LIBS_DIR = -L/usr/kerberos/lib -KRB5_BASE_LIBS = -lkrb5 -lk5crypto -lcom_err -CC=gcc +FLAGS = ${CFLAGS} +INCLUDE = -I/usr/include/kerberosV +KRB5_LIBS_DIR = -L/usr/lib +KRB5_BASE_LIBS = -lkrb5 -lcrypto -lcom_err SOURCE = kpoppassd.c BIN = kpoppassd +all: kpoppassd + kpoppassd: kpoppassd.c Makefile - $(CC) $(SOURCE) -o $(BIN) -I$(INCLUDE) $(INCLUDE) $(KRB5_LIBS_DIR) $(KRB5_BASE_LIBS) $(FLAGS) + $(CC) $(SOURCE) -o $(BIN) $(INCLUDE) $(KRB5_LIBS_DIR) $(KRB5_BASE_LIBS) $(FLAGS) install: kpoppassd - install -g bin -o root -m 500 kpoppassd $(BINDIR) + $(BSD_INSTALL_PROGRAM) kpoppassd $(BINDIR) clean: rm -f *.o kpoppassd