# $Id: Makefile.in,v 1.3 2000-04-10 02:02:32 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@
sbindir=@sbindir@
libdir=@libdir@
mandir=@mandir@
datadir=@datadir@
sysconfdir=@sysconfdir@
appdefsdir=${sysconfdir}/X11/app-defaults

CC=@CC@
DEFS=@DEFS@ -DEDSC_PATH=\"${libdir}/debathena-discuss/edsc\"
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@
ALL_LDFLAGS=${LDFLAGS} ${X_LIBS}
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${X_CFLAGS} ${DEFS}
ALL_LIBS=-lXaw -lXt -lXmu -lXext ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} ${LIBS}

OBJS=xdsc.o reply.o headers.o cache.o

all: xdsc

xdsc: ${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}${appdefsdir}
	${INSTALL_PROGRAM} xdsc ${DESTDIR}${bindir}
	${INSTALL} -m 444 ${srcdir}/Xdsc ${DESTDIR}${appdefsdir}
	${INSTALL} -m 444 ${srcdir}/xdsc.1 ${DESTDIR}${mandir}/man1

clean:
	rm -f ${OBJS} xdsc

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