# modified from /mit/source/athena/bin/panel-wrapper
# $Id: Makefile.in,v 1.7 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@ @KRB4_LIBS@ @LIBS@
ALL_CFLAGS=`pkg-config --cflags gtk+-2.0` ${CPPFLAGS} ${CFLAGS} ${DEFS}
ALL_LIBS=`pkg-config --libs gtk+-2.0` ${LIBS}

all: grenew 

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

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

check:

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

clean:
	rm -f grenew.o grenew

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