#
# 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/appl/RCS/Imakefile,v $
# $Author: root $
# $Header: Imakefile,v 4.0.1.1 89/01/24 20:26:32 root Exp $
#
# Copyright 1987, 1988 by the Massachusetts Institute of Technology.
#
# For copying and distribution information,
# please see the file <mit-copyright.h>.
#
# Intermediate level imakefile for appl directory.

SUBDIRS=sample bsd tftp knetd
CODE=Imakefile

all::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" all "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) all ; \
	echo "### Done with" `pwd`); \
	done

install::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" install "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) install ; \
	echo "### Done with" `pwd`); \
	done

clean::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" clean "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) clean ; \
	echo "### Done with" `pwd`); \
	done

depend::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" depend "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) depend ; \
	echo "### Done with" `pwd`); \
	done

tags::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" tags "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) tags ; \
	echo "### Done with" `pwd`); \
	done

print::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" print "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) print ; \
	echo "### Done with" `pwd`); \
	done

src::
	@for d in  $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making" src "in" `pwd`; \
	$(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) src ; \
	echo "### Done with" `pwd`); \
	done

Makefiles::
	@echo "### Making Makefiles in" `pwd`
	@for d in $(SUBDIRS); \
	do \
	(cd $$d; echo "### Making Makefile in" `pwd`; \
	$(MAKE) -f ../Makefile $(MFLAGS) SRCTOP=$(SRCTOP) \
	NEWTOP=../$(BUILDTOP) \
	BUILDTOP=../$(BUILDTOP) \
	Makefile; \
	$(MAKE) $(MFLAGS) SRCTOP=$(SRCTOP) \
	NEWTOP=../$(BUILDTOP) \
	Makefiles; \
	echo "### Done with" `pwd`); \
	done

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
