# This file was generated automatically by configure.  Do not edit.
VPATH = .
links = 
host_alias = i386-unknown-netbsd1.1
host_cpu = i386
host_vendor = unknown
host_os = netbsd1.1
host_canonical = i386-unknown-netbsd1.1
target_alias = i386-unknown-netbsd1.1
target_cpu = i386
target_vendor = unknown
target_os = netbsd1.1
target_canonical = i386-unknown-netbsd1.1
common_makefile_frag = ../config/common
target_makefile_frag = ../config/mt-netbsd_le
host_makefile_frag = ../config/host
site_makefile_frag = .././config/ms-athena
postfix_makefile_frag = ../config/postfix
ALL=all.internal
#### include configury here
## common makefile fragment from Imake.tmpl
SRCTOP=$(srcdir)/$(BUILDTOP)
INCLUDE= $(LOCALINCLUDE) -I$(BUILDTOP)/include -I$(SRCTOP)/include -I$(srcdir)
GLOBAL_CDEFS=$(TARGET_CDEFS) $(DBMFLAG) $(SHMFLAG) $(SITE_CDEFS)
CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
DEPEND=true

srcdir = .
VPATH=$(srcdir)

BASEDIR = /usr
USRDIR  = $(BASEDIR)/kerberos
SVRDIR  = $(USRDIR)/etc
DAEMDIR = $(USRDIR)/etc
PROGDIR = $(USRDIR)/bin
LIBDIR  = $(USRDIR)/lib
INCLDIR = $(USRDIR)/include
MANDIR  = $(USRDIR)/man
KDBDIR  = $(USRDIR)/database
KLOGDIR = $(USRDIR)/database
CONFDIR = $(USRDIR)/etc
INSTDIR = $(USRDIR)/install
SRVTAB_FILE = /etc/krb-srvtab

SITE_KRB_REALM=error-default-realm

### /*
###  * Set ORGANIZATION to be the desired organization string printed
###  * by the 'kinit' program.  It may have spaces.
###  */
### Used in kuser/Makefile.in, kuser/kinit.c
###
ORGANIZATION=Cygnus Support

### /*
###  * Define NOENCRYPTION if you do not have the DES library.
###  */
### /* #define NOENCRYPTION */

### /*
###  * Define NEED_SETENV if you don't have setenv() in your libc.
###  * (likely for older 4.3 systems and pre-4.3 systems)
###  */
### Used in lib/krb/Makefile.in
###
### /* #define NEED_SETENV */
### SETENVSRCS = setenv.c
### SETENVOBJS = setenv.o

### /*
###  * Define TKT_SHMEM if you want to use shared memory for the session
###  * keys in your ticket caches.
###  */
### /* #define TKT_SHMEM */
### SHMFLAG=-DTKT_SHMEM

### if you don't have flock() (ie, posix) then clear this
### Used in email/movemail/Makefile.in, movemail.c
FLOCK=-DMAIL_USE_FLOCK

KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
KRB_LIBDEP=$(KRB_LIB)
KADM_LIB=$(BUILDTOP)/lib/kadm/libkadm.a
KADM_LIBDEP=$(KADM_LIB)
ACL_LIB=$(BUILDTOP)/lib/acl/libacl.a
ACL_LIBDEP=$(ACL_LIB)
KSTREAM_LIB=$(BUILDTOP)/lib/kstream/libkstream.a
KSTREAM_LIBDEP=$(KSTREAM_LIB)

DES_LIBDEP=$(BUILDTOP)/lib/des/libdes.a 
DES_LIB=$(DES_LIBDEP) $(BSDLIB)

DBMFLAG=-DNDBM
KDB_LIBDEP=$(BUILDTOP)/lib/kdb/libkdb.a
KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a $(LIBNDBM)

.SUFFIXES:  .h .c .et .ct

.et.h:
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=$*.h $<

.et.c:
	$(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$*.c $<

### /*
###  * The name of a command which compiles command tables.
###  */
MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds
.ct.c:
	$(MAKE_COMMANDS) $*.ct

### /*
###  * Loader argument to get the com_err library
###  */
COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
### /*
###  * Dependency name for COM_ERR, if any
###  */
COM_ERR_DEP = $(COM_ERR)
### /*
###  * Loader argument to get the ss library
###  */
SS_LIB = $(BUILDTOP)/util/ss/libss.a
### /*
###  * Dependency name for SS_LIB, if any
###  */
SS_LIBDEP = $(SS_LIB)

### /*
###  * Define DEBUG_LIBS if you want to create versions of the libraries
###  * that have useful debugging information (the default rules will strip
###  * out extra symbols, including debugging symbols, from the symbol
###  * table.)  NOTE:  This only works if you do NOT turn on PROFILED_LIBS
###  * below.
###  * NOTE:  this doesn't turn on the debugging flag for your compiler; do
###  * that with the DBG make variable, below.
###  */
### /* define DEBUG_LIBS */

### /*
###  * Define PROFILED_LIBS if you want to create profiled versions of the
###  * libraries used in Kerberos
###  */
### /* #define PROFILED_LIBS */

### /*
###  * Define PROF_FLAG to be the flag to be passed to your C compiler to
###  * turn on profiling.  For 4.3BSD on a VAX, this should probably be -pg.
###  * For most other systems, it should probably be -p
###  */
### /* #define PROF_FLAG -p */

### /*
###  * The name of a command which builds an object library.
###  */
ARCHIVE= ar cru
### /*
###  * The name of another program needed to post-process the archive.
###  */
RANLIB= ranlib

### /* 
###  * Install commands:  installs a file into the destination tree.
###  * These commands are called with two arguments: the source and the
###  * destination of the install.
###  */
# use install to deal with existing read-only target files.
### /* install a file */
INSTALLFILE=install -c
### /* install a library */ 
INSTALLLIB=install -c
### /* install a program */
INSTALLPROG=install -c
### /* invoke raw install program */
INSTALLRAW=install -c
### /* install a program which should run as root */
INSTALLSUID= echo "FIX UID:"; cp

AWK=awk
LD=ld
AS=as
CC=gcc
CCRO=$(CC)
CPP=$(CC) -E
DBG=-O
TAGGER=etags
MAKE=make
RM=rm -f
MV=mv
CP=cp
LN=ln -s
LPR=lpr -p
CHMOD=chmod
YACC=yacc
LEX=lex
# /* NetBSD little-endian */
#define NEED_REGEX3
REGEX3SRC=regex.c
REGEX3OBJ=regex.o
RPROGS=-DRPROGS_IN_USR_BIN \
	'-DTAB3=(TAB1|TAB2)' -DTABDLY=TBDELAY -DONOCR=0
BYTEORDER=-DHOST_BYTE_ORDER=LSB_FIRST
TARGET_CDEFS= -DATHENA -DKERBEROS -DKRB5 -DPOSIX \
	-DHAVE_GETENV -DO_SYNC=O_FSYNC -DNO_LASTLOG -DSTDARG
BSDLIB=-lcrypt
# we have setenv/getenv in libc
SETENVSRCS = 
SETENVOBJS = 

# use KRB5
KRB5LIBS = -L/mit/krb5/arch/i386_nbsd1/lib -lkrb5 -lcrypto -lcom_err
# empty host config

LOGINPATH="/srvd/patch:/usr/athena/bin:/bin/athena:/usr/bin/X11:/usr/new:/usr/ucb:/usr/bin:/bin:/usr/ibm:/usr/andrew/bin:."

SITE_CDEFS=-DHESIOD -I/usr/athena/include -DDO_REVERSE_RESOLVE
SITE_LOGIN_CDEFS=-DATHENA_ROOT_LOGINS
SITE_KRB_REALM=ATHENA.MIT.EDU

HESIOD_LIB=-L/usr/athena/lib -lhesiod

DBG=-O6

BASEDIR = /usr
USRDIR  = $(BASEDIR)/athena
SVRDIR  = $(USRDIR)/etc
DAEMDIR = $(USRDIR)/etc
PROGDIR = $(USRDIR)/bin
LIBDIR  = $(USRDIR)/lib
INCLDIR = $(USRDIR)/include
MANDIR  = $(USRDIR)/man
CONFDIR = /etc/athena
SRVTAB_FILE = /etc/athena/srvtab

LOCALINCLUDE = -I/mit/krb5/arch/@sys/include
BUILDTOP=..

CODE=kerberos.1 klist.1 kdestroy.1 kinit.1 ksrvtgt.1 kpasswd.1 \
	kerberos.3 krb_sendauth.3 \
	des_crypt.3 kadmin.8 kadmind.8 ksrvutil.8 \
	kerberos.point des.point ksend.point \
	realm.point krb_realmofhost.3 krb_set_tkt_string.3 \
	krb.conf.5 krb.realms.5 \
	rlogin.1 rsh.1 rcp.1 ksu.1 klogind.8 kshd.8 \
	tftpd.8 tcom.8 tftp.1 tf_util.3 tf_util.point

install:: kerberos.1
	$(INSTALLFILE) $(srcdir)/kerberos.1 ${DESTDIR}${MANDIR}/man1/kerberos.1

install:: klist.1
	$(INSTALLFILE) $(srcdir)/klist.1 ${DESTDIR}${MANDIR}/man1/klist.1

install:: kdestroy.1
	$(INSTALLFILE) $(srcdir)/kdestroy.1 ${DESTDIR}${MANDIR}/man1/kdestroy.1

install:: kinit.1
	$(INSTALLFILE) $(srcdir)/kinit.1 ${DESTDIR}${MANDIR}/man1/kinit.1

install:: ksrvtgt.1
	$(INSTALLFILE) $(srcdir)/ksrvtgt.1 ${DESTDIR}${MANDIR}/man1/ksrvtgt.1

install:: kpasswd.1
	$(INSTALLFILE) $(srcdir)/kpasswd.1 ${DESTDIR}${MANDIR}/man1/kpasswd.1

install:: kerberos.3
	$(INSTALLFILE) $(srcdir)/kerberos.3 ${DESTDIR}${MANDIR}/man3/kerberos.3

install:: des_crypt.3
	$(INSTALLFILE) $(srcdir)/des_crypt.3 ${DESTDIR}${MANDIR}/man3/des_crypt.3

install:: krb_sendauth.3
	$(INSTALLFILE) $(srcdir)/krb_sendauth.3 ${DESTDIR}${MANDIR}/man3/krb_sendauth.3

install:: krb_realmofhost.3
	$(INSTALLFILE) $(srcdir)/krb_realmofhost.3 ${DESTDIR}${MANDIR}/man3/krb_realmofhost.3

install:: krb_set_tkt_string.3
	$(INSTALLFILE) $(srcdir)/krb_set_tkt_string.3 ${DESTDIR}${MANDIR}/man3/krb_set_tkt_string.3

install:: tf_util.3
	$(INSTALLFILE) $(srcdir)/tf_util.3 ${DESTDIR}${MANDIR}/man3/tf_util.3

install:: kadmin.8
	$(INSTALLFILE) $(srcdir)/kadmin.8 ${DESTDIR}${MANDIR}/man8/kadmin.8

install:: kadmind.8
	$(INSTALLFILE) $(srcdir)/kadmind.8 ${DESTDIR}${MANDIR}/man8/kadmind.8

install:: ksrvutil.8
	$(INSTALLFILE) $(srcdir)/ksrvutil.8 ${DESTDIR}${MANDIR}/man8/ksrvutil.8

install:: krb.conf.5
	$(INSTALLFILE) $(srcdir)/krb.conf.5 ${DESTDIR}${MANDIR}/man5/krb.conf.5

install:: krb.realms.5
	$(INSTALLFILE) $(srcdir)/krb.realms.5 ${DESTDIR}${MANDIR}/man5/krb.realms.5


install:: kdb_destroy.8
	$(INSTALLFILE) $(srcdir)/kdb_destroy.8 ${DESTDIR}${MANDIR}/man8/kdb_destroy.8

install:: kdb_edit.8
	$(INSTALLFILE) $(srcdir)/kdb_edit.8 ${DESTDIR}${MANDIR}/man8/kdb_edit.8

install:: kdb_init.8
	$(INSTALLFILE) $(srcdir)/kdb_init.8 ${DESTDIR}${MANDIR}/man8/kdb_init.8

install:: kdb_util.8
	$(INSTALLFILE) $(srcdir)/kdb_util.8 ${DESTDIR}${MANDIR}/man8/kdb_util.8

install:: kstash.8
	$(INSTALLFILE) $(srcdir)/kstash.8 ${DESTDIR}${MANDIR}/man8/kstash.8


install:: tftpd.8
	$(INSTALLFILE) $(srcdir)/tftpd.8 ${DESTDIR}${MANDIR}/man8/tftpd.8

install:: tcom.8
	$(INSTALLFILE) $(srcdir)/tcom.8 ${DESTDIR}${MANDIR}/man8/tcom.8

install:: tftp.1
	$(INSTALLFILE) $(srcdir)/tftp.1 ${DESTDIR}${MANDIR}/man1/tftp.1


install:: acl_check.3
	$(INSTALLFILE) $(srcdir)/acl_check.3 ${DESTDIR}${MANDIR}/man3/acl_check.3


# Berkeley-derived man pages
install:: rlogin.1
	$(INSTALLFILE) $(srcdir)/rlogin.1 ${DESTDIR}${MANDIR}/man1/rlogin.1

install:: rsh.1
	$(INSTALLFILE) $(srcdir)/rsh.1 ${DESTDIR}${MANDIR}/man1/rsh.1

install:: rcp.1
	$(INSTALLFILE) $(srcdir)/rcp.1 ${DESTDIR}${MANDIR}/man1/rcp.1

install:: ksu.1
	$(INSTALLFILE) $(srcdir)/ksu.1 ${DESTDIR}${MANDIR}/man1/ksu.1

install:: kuserok.3
	$(INSTALLFILE) $(srcdir)/kuserok.3 ${DESTDIR}${MANDIR}/man3/kuserok.3

install:: klogind.8
	$(INSTALLFILE) $(srcdir)/klogind.8 ${DESTDIR}${MANDIR}/man8/klogind.8

install:: kshd.8
	$(INSTALLFILE) $(srcdir)/kshd.8 ${DESTDIR}${MANDIR}/man8/kshd.8


# Set up "pointers" to the section 3 manpages.

DES	= des_read_password \
	des_string_to_key \
	des_random_key \
	des_set_key \
	des_ecb_encrypt \
	des_cbc_encrypt \
	des_pcbc_encrypt \
	des_cbc_cksum \
	quad_cksum

install:: des.point
	for i in ${DES} ; do \
		${INSTALLFILE} $(srcdir)/des.point ${DESTDIR}${MANDIR}/man3/$$i.3; \
		done

KSEND	= \
	krb_recvauth \
	krb_net_write \
	krb_net_read

install:: ksend.point
	for i in ${KSEND} ; do \
		${INSTALLFILE} $(srcdir)/ksend.point ${DESTDIR}${MANDIR}/man3/$$i.3; \
		done

REALM = \
	krb_get_phost \
	krb_get_krbhst \
	krb_get_admhst \
	krb_get_lrealm

install:: realm.point
	for i in ${REALM} ; do \
		${INSTALLFILE} $(srcdir)/realm.point ${DESTDIR}${MANDIR}/man3/$$i.3; \
		done
TF	= \
	tf_init \
	tf_get_pname \
	tf_get_pinst \
	tf_get_cred \
	tf_close

install:: tf_util.point
	for i in ${TF} ; do \
		${INSTALLFILE} $(srcdir)/tf_util.point ${DESTDIR}${MANDIR}/man3/$$i.3; \
		done

KRB	= \
	krb_mk_req \
	krb_rd_req \
	krb_kntoln \
	krb_set_key \
	krb_get_cred \
	krb_mk_priv \
	krb_rd_priv \
	krb_mk_safe \
	krb_rd_safe \
	krb_mk_err \
	krb_rd_err \
	krb_ck_repl

install:: kerberos.point
	for i in ${KRB} ; do \
		${INSTALLFILE} $(srcdir)/kerberos.point ${DESTDIR}${MANDIR}/man3/$$i.3; \
		done
	@echo "Don't forget to execute makewhatis or catman" >&2
	@echo "Also beware that older systems have man pages for" >&2
	@echo "rsh.1c, rlogin.1c and rcp.1c which should be removed" >&2

	
all:
	echo "nothing for $@ here"

depend:
	echo "nothing for $@ here"

clean:
	echo "nothing for $@ here"

# NOPOSTFIX
