#
# Warning: the cpp used on this machine replaces
# all newlines and multiple tabs/spaces in a macro
# expansion with a single space.  Imake tries to
# compensate for this, but is not always
# successful.
#

#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#
#	$Source: /mit/kerberos/src/util/imake.includes/RCS/Imake.template,v $
#	$Author: steiner $
#	$Header: Imake.template,v 4.3 88/12/09 15:41:52 steiner Exp $
#

NEWTOP=../.
BUILDTOP=../.

DEPEND=$(BUILDTOP)/util/makedepend/makedepend

IMAKE=$(BUILDTOP)/util/imake/imake -I$(BUILDTOP)/util/imake.includes

INCLUDE= -I$(BUILDTOP)/include
CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
LINTFLAGS=$(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)

#	$Source: /afs/athena.mit.edu/astaff/project/kerberos/src/util/imake.includes/RCS/config.Imakefile,v $
#	$Author: qjb $
#	$Header: /afs/athena.mit.edu/astaff/project/kerberos/src/util/imake.includes/RCS/config.Imakefile,v 4.23 89/12/30 20:01:17 qjb Exp $
#

GLOBAL_CDEFS= -DBSD42 -DATHENA_COMPAT -DATHENA -DKERBEROS -DVFS \
	-D SYSLOG42 -D SunOS=41 \
	$(NOENCFLAG) $(DBMFLAG) $(SHMFLAG)

SRCTOP=/mit/kerberos/src

DESTDIR=

USRDIR= /usr/local
SVRDIR= /usr/local/etc
DAEMDIR= /usr/local/sbin
PROGDIR=/usr/local/athena
LIBDIR= /usr/local/athena/lib
USRLIB= /usr/local/lib
LINTLIBDIR = /usr/lib/lint
BINDIR= /usr/local/bin
UCBDIR= /usr/ucb
INCLDIR= /usr/include
MANDIR= /usr/local/man
ETCDIR= /etc
SLASHBINDIR= /bin

LINTLIBFLAG=-C

KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
KRB_LIBDEP=$(KRB_LIB)
KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
KADM_LIB=$(BUILDTOP)/lib/kadm/libkadm.a
KADM_LIBDEP=$(KADM_LIB)
ACL_LIB=$(BUILDTOP)/lib/acl/libacl.a
ACL_LIBDEP=$(ACL_LIB)

NOENCFLAG=
DES_LIB=$(BUILDTOP)/lib/des/libdes.a
DES_LIBDEP=$(DES_LIB)
DES_LINTLIB=$(BUILDTOP)/lib/des/llib-ldes.ln

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

SHMFLAG=

COMPILE_ET= $(BUILDTOP)/util/et/compile_et

COM_ERR = $(BUILDTOP)/util/et/libcom_err.a

COM_ERR_DEP = $(COM_ERR)

MAKE_COMMANDS= $(BUILDTOP)/util/ss/make_commands

SS_LIB = $(BUILDTOP)/util/ss/libss.a

SS_LIBDEP = $(SS_LIB)

ARCHIVE= ar cru

RANLIB= ranlib

INSTALLFILE= install -c -m 444

INSTALLLIB= install -c -m 444

INSTALLPROG= install -c -m 555

INSTALLRAW= install

INSTALLSUID= install -c -m 4555 -o root

LD=ld

AS=as

LINT=lint

CC=gcc

CCRO=gcc -fshared-data

HCC=$(CC)

CPP=$(CC) -E

DBG=-O

HCFLAGS=$(CFLAGS)

TAGGER=etags

MAKE=make
RM=rm -f
MV=mv
CP=cp
LN=ln -s
LPR=lpr -p
CHMOD=chmod

DEF_UID = 113

#	$Source: /afs/athena.mit.edu/astaff/project/kerberos/src/util/imake.includes/RCS/Imake.rules,v $
#	$Author: qjb $
#	$Header: /afs/athena.mit.edu/astaff/project/kerberos/src/util/imake.includes/RCS/Imake.rules,v 4.15 89/09/26 14:34:51 qjb Exp $
#

# $Source: /mit/kerberos/src/admin/RCS/Imakefile,v $
# $Author: jtkohl $
# $Header: Imakefile,v 4.0 89/01/24 21:50:18 jtkohl Exp $
#
# Copyright 1987, 1988 by the Massachusetts Institute of Technology.
#
# For copying and distribution information,
# please see the file <mit-copyright.h>.
#
# Imakefile for Kerberos database management programs.
#

SRCS	= \
	ext_srvtab.c \
	kdb_destroy.c \
	kdb_edit.c \
	kdb_init.c \
	kdb_util.c \
	kstash.c \
	maketime.c

SRCDIR	= ${SRCTOP}/admin
CODE	= ${SRCS} Imakefile time.h
DEFINES	= -DBSD42 -I.
LIBS= ${KDB_LIB} ${KRB_LIB} ${DES_LIB}
DEPLIBS= ${KDB_LIBDEP} ${KRB_LIBDEP} ${DES_LIBDEP}

all:: ext_srvtab

ext_srvtab: ${DEPLIBS} ext_srvtab.o
	$(CC) $(CFLAGS) -o $@ ext_srvtab.o ${LIBS}

install::
	$(INSTALLPROG) ext_srvtab ${DESTDIR}${DAEMDIR}/ext_srvtab

clean::
	$(RM) ext_srvtab ext_srvtab.o

all:: kdb_destroy

kdb_destroy:  kdb_destroy.o
	$(CC) $(CFLAGS) -o $@ kdb_destroy.o

install::
	$(INSTALLPROG) kdb_destroy ${DESTDIR}${DAEMDIR}/kdb_destroy

clean::
	$(RM) kdb_destroy kdb_destroy.o

all:: kdb_edit

kdb_edit: ${DEPLIBS} kdb_edit.o maketime.o
	$(CC) $(CFLAGS) -o $@ kdb_edit.o maketime.o ${LIBS}

install::
	$(INSTALLPROG) kdb_edit ${DESTDIR}${DAEMDIR}/kdb_edit

clean::
	$(RM) kdb_edit kdb_edit.o maketime.o

all:: kdb_init

kdb_init: ${DEPLIBS} kdb_init.o
	$(CC) $(CFLAGS) -o $@ kdb_init.o ${LIBS}

install::
	$(INSTALLPROG) kdb_init ${DESTDIR}${DAEMDIR}/kdb_init

clean::
	$(RM) kdb_init kdb_init.o

all:: kdb_util

kdb_util: ${DEPLIBS} kdb_util.o maketime.o
	$(CC) $(CFLAGS) -o $@ kdb_util.o maketime.o ${LIBS}

install::
	$(INSTALLPROG) kdb_util ${DESTDIR}${DAEMDIR}/kdb_util

clean::
	$(RM) kdb_util kdb_util.o maketime.o

all:: kstash

kstash: ${DEPLIBS} kstash.o
	$(CC) $(CFLAGS) -o $@ kstash.o ${LIBS}

install::
	$(INSTALLPROG) kstash ${DESTDIR}${DAEMDIR}/kstash

clean::
	$(RM) kstash kstash.o

depend:: ${CODE}

depend:: $(SRCS)
	@echo "### Now computing dependencies"
	@$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)

clean::
	$(RM) *~ \#* *.bak $(TAGSFILE)

tags::
	$(TAGGER) *.c *.h

Makefile::
	-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
	$(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile

print:: ${CODE}
	${LPR} ${CODE}

src:: ${CODE}

${CODE}:
	$(RM) $@
	-$(LN) ${SRCDIR}/$@ $@

install::

Makefiles::

# DO NOT DELETE THIS LINE

ext_srvtab.o: .././include/mit-copyright.h /usr/include/stdio.h
ext_srvtab.o: /usr/include/sys/file.h /usr/include/sys/types.h
ext_srvtab.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
ext_srvtab.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
ext_srvtab.o: /usr/include/sys/time.h /usr/include/sys/time.h
ext_srvtab.o: /usr/include/sys/wait.h /usr/include/signal.h
ext_srvtab.o: /usr/include/sys/signal.h /usr/include/vm/faultcode.h
ext_srvtab.o: .././include/des.h .././include/krb.h .././include/krb_db.h
kdb_destroy.o: .././include/mit-copyright.h /usr/include/strings.h
kdb_destroy.o: /usr/include/stdio.h .././include/krb.h .././include/des.h
kdb_destroy.o: .././include/krb_db.h
kdb_edit.o: .././include/mit-copyright.h /usr/include/stdio.h
kdb_edit.o: /usr/include/signal.h /usr/include/sys/signal.h
kdb_edit.o: /usr/include/vm/faultcode.h /usr/include/errno.h
kdb_edit.o: /usr/include/sys/errno.h /usr/include/strings.h
kdb_edit.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
kdb_edit.o: /usr/include/sys/ttydev.h /usr/include/sys/ttold.h
kdb_edit.o: /usr/include/sys/ioccom.h /usr/include/sys/ttycom.h
kdb_edit.o: /usr/include/sys/filio.h /usr/include/sys/sockio.h
kdb_edit.o: /usr/include/sys/file.h /usr/include/sys/types.h
kdb_edit.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
kdb_edit.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
kdb_edit.o: /usr/include/sys/time.h .././include/des.h .././include/krb.h
kdb_edit.o: .././include/krb_db.h .././include/kdc.h
kdb_init.o: .././include/mit-copyright.h /usr/include/stdio.h
kdb_init.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
kdb_init.o: /usr/include/sys/sysmacros.h /usr/include/sys/file.h
kdb_init.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
kdb_init.o: /usr/include/sys/time.h /usr/include/sys/time.h
kdb_init.o: .././include/des.h .././include/krb.h .././include/krb_db.h
kdb_init.o: /usr/include/string.h
kdb_util.o: .././include/mit-copyright.h /usr/include/stdio.h
kdb_util.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
kdb_util.o: /usr/include/sys/sysmacros.h /usr/include/netinet/in.h
kdb_util.o: /usr/include/sys/time.h /usr/include/strings.h .././include/des.h
kdb_util.o: .././include/krb.h /usr/include/sys/file.h
kdb_util.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
kdb_util.o: .././include/krb_db.h
kstash.o: .././include/mit-copyright.h /usr/include/stdio.h
kstash.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
kstash.o: /usr/include/sys/sysmacros.h /usr/include/sys/socket.h
kstash.o: /usr/include/netinet/in.h /usr/include/netdb.h
kstash.o: /usr/include/signal.h /usr/include/sys/signal.h
kstash.o: /usr/include/vm/faultcode.h /usr/include/sgtty.h
kstash.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
kstash.o: /usr/include/sys/ttydev.h /usr/include/sys/ttold.h
kstash.o: /usr/include/sys/ioccom.h /usr/include/sys/ttycom.h
kstash.o: /usr/include/sys/filio.h /usr/include/sys/sockio.h
kstash.o: /usr/include/sys/time.h /usr/include/sys/time.h
kstash.o: /usr/include/sys/file.h /usr/include/sys/fcntlcom.h
kstash.o: /usr/include/sys/stat.h .././include/krb.h .././include/des.h
kstash.o: .././include/klog.h .././include/prot.h .././include/krb_conf.h
kstash.o: .././include/krb_db.h .././include/kdc.h
maketime.o: /usr/include/sys/time.h /usr/include/sys/param.h
maketime.o: /usr/include/machine/param.h /usr/include/sys/signal.h
maketime.o: /usr/include/vm/faultcode.h /usr/include/sys/types.h
maketime.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
maketime.o: /usr/include/sys/timeb.h
