# $Id: Makefile.in,v 1.7 2009-06-01 21:05:01 zacheiss Exp $

SHELL=/bin/sh

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
DEFS=@DEFS@
ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
COMPILE_ET=@COMPILE_ET@

LIBTOOL=@LIBTOOL@
LDFLAGS=@LDFLAGS@
KLIBS=@KLIBS@
ALL_LDFLAGS=$(LDFLAGS) $(KLIBS)

INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@

srcdir=@srcdir@
VPATH=@srcdir@
SRCTOP=@top_srcdir@
BUILDTOP=..
top_builddir=@top_builddir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@

OBJS=	critical.lo fixhost.lo fixname.lo \
	hash.lo kname_unparse.lo kname_parse.lo krb_et.lo mr_access.lo mr_auth.lo \
	mr_call.lo mr_connect.lo mr_et.lo mr_init.lo mr_ops.lo mr_query.lo \
	nfsparttype.lo sq.lo strs.lo ureg_err.lo

ET_H=	mr_et.h krb_et.h ureg_err.h
ET_C=	mr_et.c krb_et.c ureg_err.c

.c.lo:
	$(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<

.SUFFIXES: .et .lo

.et.c:
	$(COMPILE_ET) $<

all: depend libmoira.la

clean:
	$(LIBTOOL) --mode=clean rm -f $(OBJS) $(ET_H) $(ET_C) libmoira.a

cleandir distclean: clean
	rm -f Makefile

depend: $(ET_C)

install: all
	$(LIBTOOL) --mode=install  $(INSTALL) libmoira.la $(DESTDIR)$(libdir)/libmoira.la

libmoira.la: $(OBJS)
	$(LIBTOOL) --mode=link $(CC) $(ALL_LDFLAGS) -o $@ $(OBJS) -rpath $(libdir) -version-info 0:0:0
