# $Id: Makefile.in,v 1.1.1.4 1999/03/31 20:36:39 nathanw Exp $

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
lbindir=@lbindir@
mandir=@mandir@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
KRB4_LIBS=@KRB4_LIBS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS}

AFS_LIBS=-lprot -lauth -lrxkad -lubik @AFS_DIR@/lib/afs/util.a -laudit \
	 -lsys -lrx -llwp -lsys
OBJS=aklog.o aklog_main.o aklog_param.o linked_list.o

all: aklog

aklog: ${OBJS}
	${CC} ${LDFLAGS} -o aklog ${OBJS} ${AFS_LIBS} ${KRB4_LIBS} -lcom_err \
		${LIBS}

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${lbindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
	${INSTALL_PROGRAM} -m 555 aklog ${DESTDIR}${lbindir}
	${INSTALL_PROGRAM} -m 555 aklog.1 ${DESTDIR}${mandir}/man1

clean:
	rm -f ${OBJS} aklog

distclean: clean
	rm -f config.cache config.log config.status Makefile

aklog_main.o linked_list.o: linked_list.h
aklog.o aklog_main.o aklog_param.o: aklog.h
