# $Id: Makefile.in,v 1.3 2006-07-25 23:37:02 ghudson 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@
mandir=@mandir@

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@KRB5_LIBS@ @LIBS@
ALL_CFLAGS=`pkg-config --cflags gtk+-2.0` ${CPPFLAGS} ${CFLAGS} ${DEFS}
ALL_LIBS=`pkg-config --libs gtk+-2.0` ${LIBS}

all: authwatch

authwatch: authwatch.o
	${CC} ${LDFLAGS} -o $@ authwatch.o ${ALL_LIBS}

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

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
	${INSTALL_PROGRAM} authwatch ${DESTDIR}${bindir}
	${INSTALL} ${srcdir}/authwatch.1 ${DESTDIR}${mandir}/man1

clean:
	rm -f authwatch.o authwatch

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