]> andersk Git - moira.git/commitdiff
added install target
authorambar <ambar>
Fri, 31 Jul 1987 01:24:43 +0000 (01:24 +0000)
committerambar <ambar>
Fri, 31 Jul 1987 01:24:43 +0000 (01:24 +0000)
clients/passwd/Makefile

index 2e0bb5e463b314ab507f697d91bdd471afd83e82..e54841e2ed70ba1bf3b3a689cc0b63fb2f43bf63 100644 (file)
@@ -1,81 +1,48 @@
-# Makefile for Kerberos client software.
+# Makefile for SMS clients passwd/chfn/chhome/chsh
 #
 #      MIT Project Athena
 #
 #      $Source$
 #      $Header$
+#      $Author$
+#      $Log$
+#      Revision 1.2  1987-07-31 01:24:43  ambar
+#      added install target
+#
 #
 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 =  ../../lib/libsms.a ../../lib/libgdb.a ../../lib/libmisc.a
 
-#note -- all the include file and library dependencies are not yet
-#              listed
+PROGS= passwd chfn chhome chsh
 
 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}
+passwd:        passwd.o
+       cc -o passwd passwd.o -lkrb -ldes
 
-list_tkts:     list_tkts.o ${LIBDEP1}
-       cc -o list_tkts list_tkts.o ${LIBDEP1}
+chfn:  chfn.o
+       cc -o chfn chfn.o ${SMSLIB} -lkrb -ldes
 
-passwd:        passwd.o $(LIBDEP1) $(LIBDEP2) 
-       cc -O -o  passwd passwd.o ${LIBDEP1} $(LIBDEP2) \
-               -luserinfo ${EQLIB}
+chhome:        chhome.o
+       cc -o chhome chhome.o ${SMSLIB} -lkrb -ldes
 
-kchpass:       kchpass.o $(LIBDEP1)
-       cc -o kchpass kchpass.o ${LIBDEP1}
+chsh:  chsh.o
+       cc -o chsh chsh.o ${SMSLIB} -lkrb -ldes
 
-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 passwd ${DESTDIR}/usr/athena/passwd
+       install chsh ${DESTDIR}/usr/athena/chsh
+       install chfn ${DESTDIR}/usr/athena/chfn
+       install chhome ${DESTDIR}/usr/athena/chhome
This page took 0.040845 seconds and 5 git commands to generate.