#### include configury here
BUILDTOP=..

UHFILES	= \
	des.h \
	kadm.h \
	kstream.h \
	mit-copyright.h \
	osconf.h \
	krbports.h \
	conf-aixps2.h \
	conf-aixrios.h \
	conf-aux.h \
	conf-bsd386i.h \
	conf-bsdapollo.h \
	conf-bsdibm032.h \
	conf-bsdm68k.h \
	conf-bsdsparc.h \
	conf-bsdtahoe.h \
	conf-bsdvax.h \
	conf-hp68k.h \
	conf-hpsnake.h \
	conf-ibm370.h \
	conf-linux.h \
	conf-386bsd.h \
	conf-netbsd-i386.h \
	conf-netbsd-m68k.h \
	conf-netbsd-sparc.h \
	conf-next.h \
	conf-pc.h \
	conf-pyr.h \
	conf-sco386.h \
	conf-sgi.h \
	conf-sol20sparc.h \
	conf-ultmips2.h

GUHFILES = \
	kdc.h \
	klog.h \
	krb_db.h \
	krb.h

KHFILES	= \
	admin_server.h \
	conf.h \
	highc.h \
	kparse.h \
	krb_conf.h \
	passwd_server.h \
	principal.h \
	prot.h \
	addr_comp.h \
	lsb_addr_comp.h

ETHFILES = \
	kadm_err.h \
	krb_err.h

SRCDIR=$(SRCTOP)/include
HFILES=${GUHFILES} ${UHFILES} ${KHFILES}
CODE=${UHFILES} ${KHFILES} krb.h.sed kdc.h.sed klog.h.sed

all:: ${HFILES}

krb.h:	krb.h.sed
	$(RM) krb.h
	sed -e 's*CONFDIR*$(CONFDIR)*g' -e 's*SRVTAB_FILE*$(SRVTAB_FILE)*g' -e 's*SITE_KRB_REALM*$(SITE_KRB_REALM)*g' < $(srcdir)/krb.h.sed > krb.h

kdc.h:	kdc.h.sed
	$(RM) kdc.h
	sed -e 's*KLOGDIR*$(KLOGDIR)*g' -e 's*KDBDIR*$(KDBDIR)*g' < $(srcdir)/kdc.h.sed > kdc.h

krb_db.h:	krb_db.h.sed
	$(RM) krb_db.h
	sed -e 's*KDBDIR*$(KDBDIR)*g' < $(srcdir)/krb_db.h.sed > krb_db.h

klog.h:	klog.h.sed
	$(RM) klog.h
	sed -e 's*KLOGDIR*$(KLOGDIR)*g' < $(srcdir)/klog.h.sed > klog.h

depend:: ${HFILES}

install::
	-mkdir ${DESTDIR}${INCLDIR}
	for i in ${UHFILES}; do \
		${INSTALLFILE} $(srcdir)/$$i ${DESTDIR}${INCLDIR}/$$i; done
	for i in ${GUHFILES} ${ETHFILES}; do \
		${INSTALLFILE} $$i ${DESTDIR}${INCLDIR}/$$i; done

clean::
	rm -f krb.h kdc.h klog.h krb_db.h
