# $Id: Makefile.in,v 1.1 1998-12-27 15:45:25 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@
includedir=@includedir@
bitmapsdir=${includedir}/X11/bitmaps

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
X_CFLAGS=@X_CFLAGS@
LDFLAGS=@LDFLAGS@
X_LIBS=@X_LIBS@
X_PRE_LIBS=@X_PRE_LIBS@
X_EXTRA_LIBS=@X_EXTRA_LIBS@
LIBS=@LIBS@
KRB4_LIBS=@KRB4_LIBS@
ALL_LDFLAGS=${LDFLAGS} ${X_LIBS}
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${X_CFLAGS} ${DEFS} -DHOSTTYPE=\"${HOSTTYPE}\"
ALL_LIBS=-lathdir -lXj ${X_PRE_LIBS} -lXext -lX11 ${X_EXTRA_LIBS} \
	${KRB4_LIBS} ${LIBS}

OBJS=dash.o klist.o

all: dash

dash: ${OBJS}
	${CC} ${ALL_LDFLAGS} -o $@ ${OBJS} ${ALL_LIBS}

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

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
	${top_srcdir}/mkinstalldirs ${DESTDIR}${bitmapsdir}
	${INSTALL_PROGRAM} dash ${DESTDIR}${bindir}
	${INSTALL} -m 444 ${srcdir}/dash.1 ${DESTDIR}${mandir}/man1
	${INSTALL} -m 444 ${srcdir}/arrow ${DESTDIR}${bitmapsdir}
	${INSTALL} -m 444 ${srcdir}/gray ${DESTDIR}${bitmapsdir}
	${INSTALL} -m 444 ${srcdir}/question ${DESTDIR}${bitmapsdir}
	${INSTALL} -m 444 ${srcdir}/Dash.xbm ${DESTDIR}${bitmapsdir}

clean:
	rm -f ${OBJS} dash

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