# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.4 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.


SHELL = /bin/sh

srcdir = .
top_srcdir = ..
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/sfs
pkglibdir = $(libdir)/sfs
pkgincludedir = $(includedir)/sfs

top_builddir = ..

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/athena/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = sparc-sun-solaris2.8
host_triplet = sparc-sun-solaris2.8
AS = @AS@
CC = gcc
CPP = gcc -E
CXX = c++
CXXDEBUG = -g -O2
CXXNOERR = -Wno-error
CXXWFLAGS = -Wall
DB3_DIR = 
DB3_LIB = 
DBDEPS = $(top_builddir)/sfsrodb/libsfsrodb.a $(top_builddir)/adb/libbtree.a
DBLIB = $(top_builddir)/sfsrodb/libsfsrodb.a $(top_builddir)/adb/libbtree.a
DEBUG = -g -O2
DLLTOOL = @DLLTOOL@
ECFLAGS = 
ECXXFLAGS = 
ETAGS_ARGS = -C /dev/null
GMP_DIR = 
LD = /usr/ccs/bin/ld
LDADD = $(LIBSFSMISC) $(LIBSVC) $(LIBSFSCRYPT) $(LIBARPC) $(LIBASYNC) $(LIBGMP)
LDEPS = $(LIBSFSMISC) $(LIBSVC) $(LIBSFSCRYPT) $(LIBARPC) $(LIBASYNC)
LEX = flex
LIBADB = $(top_builddir)/adb/btree/libbtree.la
LIBARPC = $(top_builddir)/arpc/libarpc.la
LIBASYNC = $(top_builddir)/async/libasync.la
LIBCRYPT = 
LIBGMP = /mit/outland/lib/libgmp.la
LIBSFSCRYPT = $(top_builddir)/crypt/libsfscrypt.la
LIBSFSMISC = $(top_builddir)/sfsmisc/libsfsmisc.la
LIBSFSRODB = $(top_builddir)/sfsrodb/libsfsrodb.la
LIBSVC = $(top_builddir)/svc/libsvc.la
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
M4 = /mit/gnu/arch/sun4x_58/bin/gm4
MAKEINFO = makeinfo
MALLOCK = $(top_builddir)/sfsmisc/mallock.o
NM = /usr/ccs/bin/nm -p
NOPAGING = 
NW = -w
OBJDUMP = @OBJDUMP@
OPENSSL_DIR = 
PACKAGE = sfs
PATH_ = @PATH_@
PERL = @PERL@
PERL_INC = @PERL_INC@
PERL_LIB = @PERL_LIB@
PERL_XSI = @PERL_XSI@
PTYLIB = 
RANLIB = ranlib
RPCC = $(top_builddir)/rpcc/rpcc
UVFS_DIR = 
VERSION = 0.5
WFLAGS = -Wall
XSUBPP = @XSUBPP@
YACC = bison -y
_PATH_CPP = /lib/cpp
etcdir = /etc/sfs
execdir = ${pkglibdir}-${VERSION}
piddir = /var/run
sfsdir = /var/sfs
sfsgroup = sfs
sfsincludedir = ${pkgincludedir}-${VERSION}
sfslibdir = ${pkglibdir}-${VERSION}
sfsuser = sfs

ARPCGEN = $(top_builddir)/uvfs/arpcgen/arpcgen
SVCDIR = $(top_srcdir)/svc

lib_LIBRARIES = libsfs.a
exec_PROGRAMS = pathinfo suidconnect
noinst_PROGRAMS = tst

EXTRA_DIST = Makefile.am.m4 .cvsignore
libsfs_a_SOURCES = nfs3_prot.c nfs3exp_prot.c sfs_prot.c sfsagent.c rwfd.c suidprotect.c authunixint.c devcon.c hashtab.c sfsops.c sfspaths.c srpc.c xdr_misc.c


DEPEND_ON_MAKEFILE = devgetcon.o sfspaths.o

include_HEADERS = sfs.h
sfsinclude_HEADERS = sfs-internal.h
noinst_HEADERS = hashtab.h queue.h suio.h xdr_suio.h

suidconnect_SOURCES = suidconnect.c
suidconnect_LDADD = libsfs.a

pathinfo_SOURCES = pathinfo.c
pathinfo_LDADD = libsfs.a

tst_SOURCES = tst.c
tst_LDADD = libsfs.a

CLEANFILES = core *.core *~ *.rpo  nfs3_prot.h nfs3exp_prot.h sfs_prot.h sfsagent.h  nfs3_prot.c nfs3exp_prot.c sfs_prot.c sfsagent.c authunixint.c rwfd.c
MAINTAINERCLEANFILES = Makefile.in Makefile.am
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = 
LIBRARIES =  $(lib_LIBRARIES)


DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
CPPFLAGS =  -I/mit/outland/include -I$(top_srcdir) -I$(top_srcdir)/async -I$(top_srcdir)/arpc -I$(top_srcdir)/crypt -I$(top_srcdir)/sfsmisc -I$(top_srcdir)/sfsrodb -I$(top_srcdir)/adb -I$(top_builddir)/svc -I$(top_srcdir)/svc -DEXECDIR=\"$(execdir)\" -DETCDIR=\"$(etcdir)\" -DDATADIR=\"$(pkgdatadir)\" -DPIDDIR=\"$(piddir)\" -DSFSDIR=\"$(sfsdir)\"
LDFLAGS = 
LIBS = -lresolv -lnsl -lsocket 
libsfs_a_LIBADD = 
libsfs_a_OBJECTS =  nfs3_prot.o nfs3exp_prot.o sfs_prot.o sfsagent.o \
rwfd.o suidprotect.o authunixint.o devcon.o hashtab.o sfsops.o \
sfspaths.o srpc.o xdr_misc.o
AR = ar
PROGRAMS =  $(exec_PROGRAMS) $(noinst_PROGRAMS)

pathinfo_OBJECTS =  pathinfo.o
pathinfo_DEPENDENCIES =  libsfs.a
pathinfo_LDFLAGS = 
suidconnect_OBJECTS =  suidconnect.o
suidconnect_DEPENDENCIES =  libsfs.a
suidconnect_LDFLAGS = 
tst_OBJECTS =  tst.o
tst_DEPENDENCIES =  libsfs.a
tst_LDFLAGS = 
CFLAGS = $(DEBUG) $(WFLAGS) $(ECFLAGS)
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS =  $(include_HEADERS) $(noinst_HEADERS) $(sfsinclude_HEADERS)

DIST_COMMON =  Makefile.am Makefile.in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = gtar
GZIP_ENV = --best
DEP_FILES =  .deps/authunixint.P .deps/devcon.P .deps/hashtab.P \
.deps/nfs3_prot.P .deps/nfs3exp_prot.P .deps/pathinfo.P .deps/rwfd.P \
.deps/sfs_prot.P .deps/sfsagent.P .deps/sfsops.P .deps/sfspaths.P \
.deps/srpc.P .deps/suidconnect.P .deps/suidprotect.P .deps/tst.P \
.deps/xdr_misc.P
SOURCES = $(libsfs_a_SOURCES) $(pathinfo_SOURCES) $(suidconnect_SOURCES) $(tst_SOURCES)
OBJECTS = $(libsfs_a_OBJECTS) $(pathinfo_OBJECTS) $(suidconnect_OBJECTS) $(tst_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOMAKE) --gnu libsfs/Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status


mostlyclean-libLIBRARIES:

clean-libLIBRARIES:
	-test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)

distclean-libLIBRARIES:

maintainer-clean-libLIBRARIES:

install-libLIBRARIES: $(lib_LIBRARIES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libdir)
	@list='$(lib_LIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
	  else :; fi; \
	done
	@$(POST_INSTALL)
	@list='$(lib_LIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
	    $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
	  else :; fi; \
	done

uninstall-libLIBRARIES:
	@$(NORMAL_UNINSTALL)
	list='$(lib_LIBRARIES)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(libdir)/$$p; \
	done

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

.s.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.S.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:

maintainer-clean-libtool:

libsfs.a: $(libsfs_a_OBJECTS) $(libsfs_a_DEPENDENCIES)
	-rm -f libsfs.a
	$(AR) cru libsfs.a $(libsfs_a_OBJECTS) $(libsfs_a_LIBADD)
	$(RANLIB) libsfs.a

mostlyclean-execPROGRAMS:

clean-execPROGRAMS:
	-test -z "$(exec_PROGRAMS)" || rm -f $(exec_PROGRAMS)

distclean-execPROGRAMS:

maintainer-clean-execPROGRAMS:

install-execPROGRAMS: $(exec_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(execdir)
	@list='$(exec_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(execdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(execdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	  else :; fi; \
	done

uninstall-execPROGRAMS:
	@$(NORMAL_UNINSTALL)
	list='$(exec_PROGRAMS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(execdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	done

mostlyclean-noinstPROGRAMS:

clean-noinstPROGRAMS:
	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)

distclean-noinstPROGRAMS:

maintainer-clean-noinstPROGRAMS:

pathinfo: $(pathinfo_OBJECTS) $(pathinfo_DEPENDENCIES)
	@rm -f pathinfo
	$(LINK) $(pathinfo_LDFLAGS) $(pathinfo_OBJECTS) $(pathinfo_LDADD) $(LIBS)

suidconnect: $(suidconnect_OBJECTS) $(suidconnect_DEPENDENCIES)
	@rm -f suidconnect
	$(LINK) $(suidconnect_LDFLAGS) $(suidconnect_OBJECTS) $(suidconnect_LDADD) $(LIBS)

tst: $(tst_OBJECTS) $(tst_DEPENDENCIES)
	@rm -f tst
	$(LINK) $(tst_LDFLAGS) $(tst_OBJECTS) $(tst_LDADD) $(LIBS)

install-includeHEADERS: $(include_HEADERS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(includedir)
	@list='$(include_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
	done

uninstall-includeHEADERS:
	@$(NORMAL_UNINSTALL)
	list='$(include_HEADERS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(includedir)/$$p; \
	done

install-sfsincludeHEADERS: $(sfsinclude_HEADERS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(sfsincludedir)
	@list='$(sfsinclude_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sfsincludedir)/$$p"; \
	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(sfsincludedir)/$$p; \
	done

uninstall-sfsincludeHEADERS:
	@$(NORMAL_UNINSTALL)
	list='$(sfsinclude_HEADERS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(sfsincludedir)/$$p; \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $$unique $(LISP)

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = libsfs

distdir: $(DISTFILES)
	here=`cd $(top_builddir) && pwd`; \
	top_distdir=`cd $(top_distdir) && pwd`; \
	distdir=`cd $(distdir) && pwd`; \
	cd $(top_srcdir) \
	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu libsfs/Makefile
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook

DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)

-include $(DEP_FILES)

mostlyclean-depend:

clean-depend:

distclean-depend:
	-rm -rf .deps

maintainer-clean-depend:

%.o: %.c
	@echo '$(COMPILE) -c $<'; \
	$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
	@-cp .deps/$(*F).pp .deps/$(*F).P; \
	tr ' ' '\012' < .deps/$(*F).pp \
	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
	    >> .deps/$(*F).P; \
	rm .deps/$(*F).pp

%.lo: %.c
	@echo '$(LTCOMPILE) -c $<'; \
	$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
	@-sed -e 's/^\([^:]*\)\.o[ 	]*:/\1.lo \1.o :/' \
	  < .deps/$(*F).pp > .deps/$(*F).P; \
	tr ' ' '\012' < .deps/$(*F).pp \
	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
	    >> .deps/$(*F).P; \
	rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-libLIBRARIES install-execPROGRAMS
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
install-exec: install-exec-am

install-data-am: install-includeHEADERS install-sfsincludeHEADERS
install-data: install-data-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-libLIBRARIES uninstall-execPROGRAMS \
		uninstall-includeHEADERS uninstall-sfsincludeHEADERS
uninstall: uninstall-am
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
all-redirect: all-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
	$(mkinstalldirs)  $(DESTDIR)$(libdir) $(DESTDIR)$(execdir) \
		$(DESTDIR)$(includedir) $(DESTDIR)$(sfsincludedir)


mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
mostlyclean-am:  mostlyclean-libLIBRARIES mostlyclean-compile \
		mostlyclean-libtool mostlyclean-execPROGRAMS \
		mostlyclean-noinstPROGRAMS mostlyclean-tags \
		mostlyclean-depend mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am:  clean-libLIBRARIES clean-compile clean-libtool \
		clean-execPROGRAMS clean-noinstPROGRAMS clean-tags \
		clean-depend clean-generic mostlyclean-am

clean: clean-am

distclean-am:  distclean-libLIBRARIES distclean-compile \
		distclean-libtool distclean-execPROGRAMS \
		distclean-noinstPROGRAMS distclean-tags \
		distclean-depend distclean-generic clean-am
	-rm -f libtool

distclean: distclean-am

maintainer-clean-am:  maintainer-clean-libLIBRARIES \
		maintainer-clean-compile maintainer-clean-libtool \
		maintainer-clean-execPROGRAMS \
		maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
		maintainer-clean-depend maintainer-clean-generic \
		distclean-am
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-am

.PHONY: mostlyclean-libLIBRARIES distclean-libLIBRARIES \
clean-libLIBRARIES maintainer-clean-libLIBRARIES uninstall-libLIBRARIES \
install-libLIBRARIES mostlyclean-compile distclean-compile \
clean-compile maintainer-clean-compile mostlyclean-libtool \
distclean-libtool clean-libtool maintainer-clean-libtool \
mostlyclean-execPROGRAMS distclean-execPROGRAMS clean-execPROGRAMS \
maintainer-clean-execPROGRAMS uninstall-execPROGRAMS \
install-execPROGRAMS mostlyclean-noinstPROGRAMS \
distclean-noinstPROGRAMS clean-noinstPROGRAMS \
maintainer-clean-noinstPROGRAMS uninstall-includeHEADERS \
install-includeHEADERS uninstall-sfsincludeHEADERS \
install-sfsincludeHEADERS tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
distclean-depend clean-depend maintainer-clean-depend info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


nfs3_prot.h: $(SVCDIR)/nfs3_prot.x
	@rm -f nfs3_prot
	-$(ARPCGEN) -r sfs-internal.h -h $(SVCDIR)/nfs3_prot.x -o $@ || rm -f $@
nfs3_prot.c: $(SVCDIR)/nfs3_prot.x
	@rm -f nfs3_prot
	-$(ARPCGEN) -c $(SVCDIR)/nfs3_prot.x -o $@ || rm -f $@
nfs3_prot.o: nfs3_prot.c nfs3_prot.h
	$(COMPILE) -c -w nfs3_prot.c

nfs3exp_prot.h: $(SVCDIR)/nfs3exp_prot.x
	@rm -f nfs3exp_prot
	-$(ARPCGEN) -r sfs-internal.h -h $(SVCDIR)/nfs3exp_prot.x -o $@ || rm -f $@
nfs3exp_prot.c: $(SVCDIR)/nfs3exp_prot.x
	@rm -f nfs3exp_prot
	-$(ARPCGEN) -c $(SVCDIR)/nfs3exp_prot.x -o $@ || rm -f $@
nfs3exp_prot.o: nfs3exp_prot.c nfs3exp_prot.h
	$(COMPILE) -c -w nfs3exp_prot.c

sfs_prot.h: $(SVCDIR)/sfs_prot.x
	@rm -f sfs_prot
	-$(ARPCGEN) -r sfs-internal.h -h $(SVCDIR)/sfs_prot.x -o $@ || rm -f $@
sfs_prot.c: $(SVCDIR)/sfs_prot.x
	@rm -f sfs_prot
	-$(ARPCGEN) -c $(SVCDIR)/sfs_prot.x -o $@ || rm -f $@
sfs_prot.o: sfs_prot.c sfs_prot.h
	$(COMPILE) -c -w sfs_prot.c

sfsagent.h: $(SVCDIR)/sfsagent.x
	@rm -f sfsagent
	-$(ARPCGEN) -r sfs-internal.h -h $(SVCDIR)/sfsagent.x -o $@ || rm -f $@
sfsagent.c: $(SVCDIR)/sfsagent.x
	@rm -f sfsagent
	-$(ARPCGEN) -c $(SVCDIR)/sfsagent.x -o $@ || rm -f $@
sfsagent.o: sfsagent.c sfsagent.h
	$(COMPILE) -c -w sfsagent.c

nfs3_prot.o: nfs3exp_prot.h

$(DEP_FILES):  nfs3_prot.h nfs3exp_prot.h sfs_prot.h sfsagent.h

rwfd.c:
	$(LN_S) $(top_srcdir)/async/rwfd.c rwfd.c
suidprotect.c:
	$(LN_S) $(top_srcdir)/async/suidprotect.c suidprotect.c
authunixint.c:
	$(LN_S) $(top_srcdir)/arpc/authunixint.c authunixint.c
$(DEPEND_ON_MAKEFILE): Makefile

dist-hook:
	cd $(distdir) && rm -f rwfd.c authunixint.c  nfs3_prot.h nfs3exp_prot.h sfs_prot.h sfsagent.h  nfs3_prot.c nfs3exp_prot.c sfs_prot.c sfsagent.c

.PHONY: rpcclean
rpcclean:
	rm -f  nfs3_prot.h nfs3exp_prot.h sfs_prot.h sfsagent.h  nfs3_prot.c nfs3exp_prot.c sfs_prot.c sfsagent.c

install-exec-hook:
	-chgrp sfs $(DESTDIR)$(execdir)/suidconnect \
	   && chmod 2555 $(DESTDIR)$(execdir)/suidconnect

$(srcdir)/Makefile.am: $(srcdir)/Makefile.am.m4
	@rm -f $(srcdir)/Makefile.am~
	$(M4) $(srcdir)/Makefile.am.m4 > $(srcdir)/Makefile.am~
	mv -f $(srcdir)/Makefile.am~ $(srcdir)/Makefile.am

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
