#
# $Id: Makefile.in,v 1.3 2007-08-09 20:41:31 amb Exp $
#

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
MKDIR_P=@MKDIR_P@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datarootdir=@datarootdir@
mandir=@mandir@

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=../libds/libdsk.a ../usp/libusp.a @REGEX_LIBS@ @KRB4_LIBS@ @KRB5_LIBS@ @LIBS@
ALL_CFLAGS=-I../include ${CPPFLAGS} ${CFLAGS} ${DEFS}

OBJS= dsgrep.o regerror.o

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

all: dsgrep

clean:
	rm -f dsgrep *.o

distclean: clean
	rm -f Makefile

depend:

install:
	${MKDIR_P} ${DESTDIR}${bindir}
	${MKDIR_P} ${DESTDIR}${mandir}/man1
	${INSTALL_PROGRAM} dsgrep ${DESTDIR}${bindir}
	${INSTALL_DATA} dsgrep.1 ${DESTDIR}${mandir}/man1

dsgrep: $(OBJS)
	${CC} ${LDFLAGS} -o dsgrep ${OBJS} ${LIBS}
