1# 2# Copyright (c) 1988 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, advertising 8# materials, and other materials related to such redistribution and 9# use acknowledge that the software was developed by the University 10# of California, Berkeley. The name of the University may not be 11# used to endorse or promote products derived from this software 12# without specific prior written permission. THIS SOFTWARE IS PROVIDED 13# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 14# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND 15# FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.3 (Berkeley) 9/20/88 18# 19 20CDEFS= -DKERBEROS 21CFLAGS= -O 22LIBC= /lib/libc.a 23KLIB= /usr/local/lib/libkrb.a 24DESLIB= /usr/local/lib/libdes.a 25KDBLIB= /usr/local/lib/libkrb_dbm.a 26INCDIR= /usr/include/kerberos 27SRC1= kpasswd.c 28SRC2= kpasswdd.c 29OBJS= kpasswd.o kpasswdd.o 30MAN= kpasswd.0 kpasswdd.0 31 32all: kpasswd kpasswdd 33 34kpasswd: ${SRC1} ${LIBC} ${KLIB} ${DESLIB} kpasswd.c 35 ${CC} -o $@ -I${INCDIR} ${CFLAGS} ${CDEFS} ${SRC1} ../lib/des_rw.o -lutil -lkrb -ldes 36 37kpasswdd: ${SRC2} ${LIBC} ${KLIB} ${DESLIB} kpasswdd.c 38 ${CC} -o $@ -I${INCDIR} ${CFLAGS} ${CDEFS} ${SRC2} ../lib/des_rw.o -lutil -lkrb -lkrb_dbm -ldes 39 40clean: 41 rm -f ${OBJS} core kpasswd kpasswdd 42 43cleandir: clean 44 rm -f ${MAN} tags .depend 45 46depend: ${SRC1} ${SRC2} 47 mkdep -p ${CFLAGS} ${SRC1} ${SRC2} 48 49install: ${MAN} 50 install -s -o bin -g bin -m 755 kpasswdd ${DESTDIR}/etc/kpasswdd 51 install -s -o bin -g bin -m 755 kpasswd ${DESTDIR}/usr/local 52 install -c -o bin -g bin -m 444 kpasswd.0 ${DESTDIR}/usr/man/cat1 53 install -c -o bin -g bin -m 444 kpasswdd.0 ${DESTDIR}/usr/man/cat8 54 55lint: ${SRC1} ${SRC2} 56 lint ${CFLAGS} ${SRC1} ${SRC2} 57 58tags: ${SRC1} ${SRC2} 59 ctags ${SRC1} ${SRC2} 60