head	1.8;
access;
symbols;
locks; strict;
comment	@# @;


1.8
date	96.03.14.02.57.58;	author ghudson;	state Exp;
branches;
next	1.7;

1.7
date	95.12.11.22.59.46;	author ghudson;	state Exp;
branches;
next	1.6;

1.6
date	95.11.18.17.42.20;	author ghudson;	state Exp;
branches;
next	1.5;

1.5
date	95.11.17.21.34.56;	author ghudson;	state Exp;
branches;
next	1.4;

1.4
date	95.11.17.05.59.04;	author ghudson;	state Exp;
branches;
next	1.3;

1.3
date	95.07.26.05.28.20;	author ghudson;	state Exp;
branches;
next	1.2;

1.2
date	94.10.17.22.27.09;	author ghudson;	state Exp;
branches;
next	1.1;

1.1
date	94.10.17.22.26.46;	author ghudson;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Add utmp files.
@
text
@/* 
 * Imakefile for the Athena Login library
 *
 * $Author: ghudson $
 * $Id: Imakefile,v 1.7 1995/12/11 22:59:46 ghudson Exp ghudson $
 *
 * Copyright 1994 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file
 * "mit-copyright.h".
 */

SRC=etale.c etalw.c setuser.c passwd.c modify.c group.c start.c homedir.c \
	getpwnam.c utmp.c
OBJ=etale.o etalw.o setuser.o passwd.o modify.o group.o start.o homedir.o \
	getpwnam.o utmp.o

LIB=-lcom_err -lkrb -ldes -lhesiod

INC=-I..

DEFINES=${INC} ${DEBUG}

AnsiCC()

error_table(etale)

error_table(etalw)

SimpleLibrary(AL,$(OBJ),$(ATHLIBDIR))
create_dir($(ATHINCDIR)/AL)
install_file(AL.h,$(ATHINCDIR)/AL/)
install_file(ptypes.h,$(ATHINCDIR)/AL/)
install_file(etale.h,$(ATHINCDIR)/AL/)
install_file(etalw.h,$(ATHINCDIR)/AL/)

build_program(testpw,testpw.o libAL.a,,${LIB})
build_program(testgr,testgr.o libAL.a,,${LIB})

/**/# mkptypes is in the watchmaker locker
protos: ${SRC}
	mkptypes ${SRC} | sed "s/int NOARGS/void/g" > ptypes.h

${OBJ}: AL.h ptypes.h etale.h etalw.h

#if defined(ultrix) || defined(sun)
saber_src:
	/**/#suppress 592	/* unused static */
	/**/#suppress 560	/* assignment within conditional */
	/**/#suppress 530	/* Empty body of statement */
	/**/#load ${DEFINES} -I/usr/athena/include ${SRC}
#else
saber_src:
	/**/#suppress 287
	/**/#suppress 349 in /lib/libc.a   /* _ctype_ redefined as text */
	/**/#load ${DEFINES} -I/usr/athena/include ${SRC}
#endif

saber_lib:
	/**/#load ${DEFINES} -L/usr/athena/lib ${LIB}
@


1.7
log
@Don't make ptypes.h as part of normal build process; make it a special
build target.  (Depends on ${SRC} since etalw.c and etale.c must
exist.)
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.6 1995/11/18 17:42:20 ghudson Exp ghudson $
d12 4
a15 2
SRC=etale.c etalw.c setuser.c passwd.c modify.c group.c start.c homedir.c
OBJ=etale.o etalw.o setuser.o passwd.o modify.o group.o start.o homedir.o
@


1.6
log
@Treat ptypes.h as an automatically generated file rather than a
manually generated file.
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.5 1995/11/17 21:34:56 ghudson Exp ghudson $
d38 2
a39 7
ptypes.h: ptypes.h.new
	@@-cmp -s $@@ ptypes.h.new || \
		(echo rm -f $@@; rm -f $@@; \
		echo cp ptypes.h.new $@@; cp ptypes.h.new $@@)

ptypes.h.new: ${SRC}
	mkptypes ${SRC} | sed "s/int NOARGS/void/g" > $@@
@


1.5
log
@Install ourselves in /usr/athena/lib instead of having people link to
us in the build tree.  pw_util is no longer necessary for NetBSD.
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.4 1995/11/17 05:59:04 ghudson Exp ghudson $
d34 2
a35 2
build_program(testpw,testpw.o,,-L. -lAL ${LIB})
build_program(testgr,testgr.o,,-L. -lAL ${LIB})
d38 9
a46 4
ptypes.h: $(SRC)
	$(RM) ptypes.h~
	-mv ptypes.h ptypes.h~
	mkptypes ${SRC} | sed "s/int NOARGS/void/g" > ptypes.h
@


1.4
log
@pw_util.c no longer necessary.
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.3 1995/07/26 05:28:20 ghudson Exp ghudson $
d27 6
a32 1
build_library(AL,${OBJ})
@


1.3
log
@Build pw_util.c if under NetBSD.
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.2 1994/10/17 22:27:09 ghudson Exp ghudson $
d12 2
a13 11
#ifdef __NetBSD__
OSSRC=pw_util.c
OSOBJ=pw_util.o
#endif

SRC=etale.c etalw.c setuser.c passwd.c modify.c group.c start.c homedir.c \
	$(OSSRC)

OBJ=etale.o etalw.o setuser.o passwd.o modify.o group.o start.o homedir.o \
	$(OSOBJ)

@


1.2
log
@Don't include Kerberos stuff in this library.
@
text
@d5 1
a5 1
 * $Id: Imakefile,v 1.1 1994/10/17 22:26:46 ghudson Exp ghudson $
d12 4
a15 1
SRC=etale.c etalw.c setuser.c passwd.c modify.c group.c start.c homedir.c
d17 5
a21 1
OBJ=etale.o etalw.o setuser.o passwd.o modify.o group.o start.o homedir.o
@


1.1
log
@Initial revision
@
text
@d4 2
a5 2
 * $Author: brlewis $
 * $Id: Imakefile,v 1.3 94/05/28 16:10:21 brlewis Exp Locker: brlewis $
d12 1
a12 2
SRC=etale.c etalw.c setuser.c passwd.c modify.c group.c start.c homedir.c \
	get_phost.c getrealm.c
d14 1
a14 2
OBJ=etale.o etalw.o setuser.o passwd.o modify.o group.o start.o homedir.o \
	get_phost.o getrealm.o
@
