#
# This Makefile in in the public domain
#

srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config

OPTMZ += @KRB5CFLAGS@ -DALLOW_REGISTER
LIBS += @KRB5LIBS@
AFSLIBS = ${TOP_LIBDIR}/libprot.a ${TOP_LIBDIR}/libubik.a \
	  ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/librxkad.a \
	  ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a \
	  ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libdes.a \
	  ${TOP_LIBDIR}/libafsutil.a

SRCS=	aklog.c aklog_main.c  krb_util.c linked_list.c
OBJS=   aklog.o aklog_main.o krb_util.o linked_list.o

all: aklog

aklog:	${OBJS} ${AFSLIBS}
	${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} ${AFSLIBS} ${XLIBS}


#
# Installation targets
#
install: \
	${DESTDIR}${bindir}/aklog

${DESTDIR}${bindir}/aklog: aklog
	${INSTALL} $? $@

dest: \
	${DEST}/bin/aklog

${DEST}/bin/aklog: aklog
	${INSTALL} $? $@

#
# Misc. targets
#
clean:
	$(RM) -f *.o ${OBJS} aklog

include ../config/Makefile.version

