-# Makefile for Kerberos client software.
+# Makefile for SMS clients passwd/chfn/chpobox/chsh
#
# MIT Project Athena
#
# $Source$
# $Header$
+# $Author$
+#
+# (c) Copyright 1988 by the Massachusetts Institute of Technology.
+# For copying and distribution information, please see the file
+# <mit-copyright.h>.
#
+
DESTDIR=
-DEFINES = -DDEBUG -O
-PCDEFINES = -DPC
-VXDEFINES = -DBSD42
-CFLAGS = ${DEFINES} ${VXDEFINES}
+DEFINES = -O
+CFLAGS = -I../../include ${DEFINES}
CONFDIR = ${DESTDIR}/usr/athena
BINDIR = ${DESTDIR}/bin
-EQLIB = -lm -lc
-
-LIBDEP1 = ../lib/krb/libkrb.a ../lib/des/bsd/libdes.a
-LIBDEP2 = ../db/util/libkerb_db.a
-
-PROGS= kinit kdestroy passwd list_tkts kchpass
+SMSLIB = -L../../lib -lsms -lgdb -lcom_err -lkrb -ldes
-#note -- all the include file and library dependencies are not yet
-# listed
+PROGS= chfn chsh chpobox
all: ${PROGS}
-clean:
- rm -f *.o *.b vxlogin pclogin.com *~
- rm -f ${PROGS} chsh chfn chhome list_tkts
-
-kinit: kinit.o $(LIBDEP1)
- cc -O -o kinit kinit.o ${LIBDEP1}
-
-kdestroy: kdestroy.o ${LIBDEP1}
- cc -o kdestroy kdestroy.o ${LIBDEP1}
-
-list_tkts: list_tkts.o ${LIBDEP1}
- cc -o list_tkts list_tkts.o ${LIBDEP1}
+chfn: chfn.o
+ cc -o chfn chfn.o ${SMSLIB}
-passwd: passwd.o $(LIBDEP1) $(LIBDEP2)
- cc -O -o passwd passwd.o ${LIBDEP1} $(LIBDEP2) \
- -luserinfo ${EQLIB}
+chpobox: chpobox.o
+ cc -o chpobox chpobox.o ${SMSLIB}
-kchpass: kchpass.o $(LIBDEP1)
- cc -o kchpass kchpass.o ${LIBDEP1}
+chsh: chsh.o
+ cc -o chsh chsh.o ${SMSLIB}
-ksu: ksu.o $(LIBDEP1) ../services/rcmd/rcmd.o ../services/rcmd/kparse.o
- cc -o ksu ksu.o ../services/rcmd/rcmd.o ../services/rcmd/kparse.o ${LIBDEP1}
-
-# getusershell.o: getusershell.c
-
-passwd.o: passwd.c passwd_server.h
- cc ${CFLAGS} -c passwd.c
-
-#pclogin.com: clogin.b
-# cc86 -DPC -o pclogin kinit.b \
-# -lkrb -lbsd4.2 -ltftp -ludp -l3com -lip -lnet -ltask -ldes -lh19
-
-#x.com: x.b
-# cc86 -lkrb -DPC -o x x.b
-
-install:
- install -c -s kinit ${CONFDIR}/kinit
- install -c -s kdestroy ${CONFDIR}/kdestroy
- install -c -s list_tkts ${CONFDIR}/list_tkts
- install -c -s kchpass ${CONFDIR}/kchpass
- install -c -s -m 4755 -o root ksu ${CONFDIR}/ksu
- install -c -s -m 4755 -o root passwd ${BINDIR}/passwd
- for i in chsh chfn chhome; do \
- rm -f ${BINDIR}/$$i; ln ${BINDIR}/passwd ${BINDIR}/$$i; \
- done
-
-# .SUFFIXES: .o .c .b
-#
-# .c.o: $*.c
-# cc $(DEFINES) $(VXDEFINES) -c $*.c
-#
-# .c.b: $*.c
-# cc86 $(DEFINES) $(PCDEFINES) -c $*.c
+lint:
+ lint *.c
+clean:
+ rm -f *.o *~
+ rm -f ${PROGS}
+
+install: ${PROGS}
+ install -s chsh ${DESTDIR}/usr/athena/chsh
+ install -s chfn ${DESTDIR}/usr/athena/chfn
+ install -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/sms.h
+chfn.o: /usr/include/sms_et.h ../../include/sms_app.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/sms.h /usr/include/sms_et.h
+chpobox.o: ../../include/sms_app.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/sms.h
+chsh.o: /usr/include/sms_et.h ../../include/sms_app.h