## Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.3 2001/11/19 06:02:03 dm Exp $

$(PROGRAMS): $(LDEPS)

exec_PROGRAMS = sfsauthd
sbin_PROGRAMS = vidb

noinst_HEADERS = authdb.h

sfsauthd_SOURCES = dbrec2str.C sfsauthd.C authdb_types.C authdb.C

vidb_SOURCES = authdb_types.C authdb.C dbrec2str.C vidb.C
vidb_LDADD = $(LIBSFSCRYPT) $(LIBARPC) $(LIBASYNC) $(LIBGMP)

authdb_types.h: $(srcdir)/authdb_types.x
	@rm -f $@
	-$(RPCC) -h $(srcdir)/authdb_types.x || rm -f $@

authdb_types.C: $(srcdir)/authdb_types.x
	@rm -f $@
	-$(RPCC) -c $(srcdir)/authdb_types.x || rm -f $@

dist-hook:
	cd $(distdir) && rm -f authdb_types.h authdb_types.C

authdb_types.o authdb_types.lo: authdb_types.h
$(authdb_OBJECTS) $(vidb_OBJECTS): authdb_types.h

EXTRA_DIST = authdb_types.x .cvsignore
CLEANFILES = core *.core *~ *.rpo
MAINTAINERCLEANFILES = Makefile.in

