/* 
 * Imakefile for the Athena Login library
 *
 * $Author: ghudson $
 * $Id: Imakefile,v 1.8 1996/03/14 02:57:58 ghudson Exp $
 *
 * 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}
