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

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
MKDIR_P=@MKDIR_P@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
ALL_CFLAGS=-I../include ${CPPFLAGS} ${CFLAGS} ${DEFS}
RANLIB=@RANLIB@

USPET=	../ets/usp_et.o
RPCET=	../ets/rpc_et.o
DSCET=	../ets/dsc_et.o

ETS=	$(RPCET) $(USPET) $(DSCET)
KRBET=	../ets/krb_et.o

OBJS=	tfile.o tunix.o tnet.o stubs.o dsname.o interface.o \
	conv_mgr.o host.o announce.o dsc_enter.o tmem.o \
	res_module.o rpcall.o auth_krb.o

LIBS=	libdsk.a

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

all:	$(LIBS)

clean:
	rm -f $(LIBS) $(OBJS)

distclean: clean
	rm -f Makefile

depend:

install:
	${MKDIR_P} ${DESTDIR}${libdir}
	${INSTALL_PROGRAM} libdsk.a ${DESTDIR}${libdir}

libdsk.a: $(OBJS) $(KOBJS) $(ETS) $(KRBET)
	ar cru libdsk.a $(OBJS) $(KOBJS) $(ETS) $(KRBET)
	${RANLIB} libdsk.a
