-# Makefile for SMS clients passwd/chfn/chpobox/chsh
+# Makefile for MOIRA clients passwd/chfn/chpobox/chsh
#
# MIT Project Athena
#
# $Source$
# $Header$
# $Author$
-# $Log$
-# Revision 1.3 1987-08-02 19:46:26 ambar
-# changed name of chhome to chpobox
-#
-# Revision 1.2 87/07/31 01:24:43 ambar
-# added install target
#
+# (c) Copyright 1988 by the Massachusetts Institute of Technology.
+# For copying and distribution information, please see the file
+# <mit-copyright.h>.
#
+
DESTDIR=
DEFINES = -O
CFLAGS = -I../../include ${DEFINES}
CONFDIR = ${DESTDIR}/usr/athena
BINDIR = ${DESTDIR}/bin
-SMSLIB = ../../lib/libsms.a ../../lib/libgdb.a ../../lib/libmisc.a
+MOIRALIB = -L../../lib -lmoira -lgdb -lcom_err -lkrb -ldes -lhesiod
-PROGS= passwd chfn chpobox chsh
+PROGS= chfn chsh chpobox
all: ${PROGS}
-passwd: passwd.o
- cc -o passwd passwd.o -lkrb -ldes
-
chfn: chfn.o
- cc -o chfn chfn.o ${SMSLIB} -lkrb -ldes
+ cc -o chfn chfn.o ${MOIRALIB}
chpobox: chpobox.o
- cc -o chpobox chpobox.o ${SMSLIB} -lkrb -ldes
+ cc -o chpobox chpobox.o ${MOIRALIB}
chsh: chsh.o
- cc -o chsh chsh.o ${SMSLIB} -lkrb -ldes
+ cc -o chsh chsh.o ${MOIRALIB}
lint:
lint *.c
rm -f ${PROGS}
install: ${PROGS}
- install passwd ${DESTDIR}/usr/athena/passwd
- install chsh ${DESTDIR}/usr/athena/chsh
- install chfn ${DESTDIR}/usr/athena/chfn
- install chpobox ${DESTDIR}/usr/athena/chpobox
+ install -c -s chsh ${DESTDIR}/usr/athena/chsh
+ install -c -s chfn ${DESTDIR}/usr/athena/chfn
+ install -c -s chpobox ${DESTDIR}/usr/athena/chpobox
+
+depend:
+ mkdep ${CFLAGS} chfn.c chpobox.c chsh.c
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+
+chfn.o: chfn.c /usr/include/sys/types.h /usr/include/stdio.h
+chfn.o: /usr/include/strings.h /usr/include/sys/file.h ../../include/krb.h
+chfn.o: ../../include/mit-copyright.h ../../include/des.h
+chfn.o: /usr/include/ctype.h /usr/include/errno.h ../../include/moira.h
+chfn.o: ../../include/mr_et.h ../../include/moira_site.h
+chpobox.o: chpobox.c /usr/include/sys/types.h /usr/include/stdio.h
+chpobox.o: /usr/include/pwd.h /usr/include/strings.h /usr/include/ctype.h
+chpobox.o: /usr/include/errno.h ../../include/moira.h ../../include/mr_et.h
+chpobox.o: ../../include/moira_site.h ../../include/mit-copyright.h
+chsh.o: chsh.c /usr/include/sys/types.h /usr/include/stdio.h
+chsh.o: /usr/include/strings.h /usr/include/sys/file.h ../../include/krb.h
+chsh.o: ../../include/mit-copyright.h ../../include/des.h
+chsh.o: /usr/include/ctype.h /usr/include/errno.h ../../include/moira.h
+chsh.o: ../../include/mr_et.h ../../include/moira_site.h