# $Id: Makefile.in,v 1.3 1999-10-19 20:22:56 danw Exp $

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

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}

all: athinfod

athinfod: athinfod.o
	${CC} ${LDFLAGS} -o athinfod athinfod.o ${LIBS}

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

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${lsbindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
	${INSTALL_PROGRAM} athinfod ${DESTDIR}${lsbindir}
	${INSTALL} -m 444 ${srcdir}/athinfo.defs.5 ${DESTDIR}${mandir}/man5
	${INSTALL} -m 444 ${srcdir}/athinfo.access.5 ${DESTDIR}${mandir}/man5
	${INSTALL} -m 444 ${srcdir}/athinfod.8 ${DESTDIR}${mandir}/man8

clean:
	rm -f athinfod.o athinfod

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