
#
# 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: /mit/kerberos/src/util/imake.includes/RCS/config.Imakefile,v $
#	$Author: jtkohl $
#	$Header: config.Imakefile,v 4.10 89/01/05 14:56:16 jtkohl Exp $
#

GLOBAL_CDEFS= -DATHENA_COMPAT -DATHENA -DKERBEROS -DVFS $(NOENCFLAG) $(DBMFLAG)

SRCTOP=/mit/kerberos/src

DESTDIR=

SVRDIR= /usr/etc
ATHENADIR=/usr/athena
LIBDIR= /usr/athena/lib
LINTLIBDIR = /usr/lib/lint
BINDIR= /usr/bin
UCBDIR= /usr/ucb
ETCDIR= /etc
DAEMDIR= /usr/etc
SLASHBINDIR= /bin
INCLDIR= /usr/include
MANDIR= /usr/man

KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
KRB_LIBDEP=$(KRB_LIB)
KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
KRB_ADM=$(BUILDTOP)/lib/kadm/libkadm.a
KRB_ADMDEP=$(KRB_ADM)

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)

COM_ERR=-lcom_err

COM_ERR_DEP=

ARCHIVE= ar cru

RANLIB= ranlib

COMPILE_ET= compile_et

INSTALLFILE= install -m 444

INSTALLLIB= install -m 444

INSTALLPROG= install -m 555

INSTALLRAW= install

INSTALLSUID= install -m 4555 -o root

LD=ld

AS=as

LINT=lint

CC=cc

CCRO=cc -R

HCC=$(CC)

CPP=$(CC) -E

DBG=-O

DEFINES=-DBSD42

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: /mit/kerberos/src/util/imake.includes/RCS/Imake.rules,v $
#	$Author: jtkohl $
#	$Header: Imake.rules,v 4.7 89/01/05 14:22:05 jtkohl Exp $
#

# $Source: /mit/kerberos/src/appl/erlogin/RCS/Imakefile,v $
# $Author: steiner $
# $Header: Imakefile,v 1.3 88/12/09 15:55:12 steiner Exp $
#
# Copyright 1987, 1988 by the Massachusetts Institute of Technology.
#
# For copying and distribution information,
# please see the file <mit-copyright.h>.
#
# Imakefile for erlogin (environment passing erlogin)
#	Derived from licensed BSD code; therefore source license is required.

#
# Options:
#
# VFS is used for kernels with Sun's vfs code; it re-wrote the quota stuff
#
# set	 DBG=-DDBG to turn on debugging info (currently broken, though)
# set	-DENV to turn on DISPLAY-passing (for sites using the X window system)
DBG	=
DEFINES=-DENV ${DBG}
SRCDIR=${SRCTOP}/appl/erlogin
LIBS=${KRB_LIB} ${DES_LIB}
DEPLIBS=${KRB_LIBDEP} ${DES_LIBDEP}
SRCS=envoob.c login.c rldio.c rlogin.c rlogind.c winoob.c fifo.h
CODE=${SRCS} Imakefile

all:: erlogin

erlogin: rlogin.o clientwinoob.o clientenvoob.o ${DEPLIBS}
	$(CC) $(CFLAGS) -o $@ rlogin.o clientwinoob.o clientenvoob.o ${LIBS}

install::
	$(INSTALLSUID) erlogin ${DESTDIR}${ATHENADIR}/erlogin

clean::
	$(RM) erlogin rlogin.o clientwinoob.o clientenvoob.o

all:: erlogind

erlogind: ${DEPLIBS} rlogind.o serverwinoob.o serverenvoob.o rldio.o
	$(CC) $(CFLAGS) -o $@ rlogind.o serverwinoob.o serverenvoob.o rldio.o ${LIBS}

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

clean::
	$(RM) erlogind rlogind.o serverwinoob.o serverenvoob.o rldio.o

all:: login.erl

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

install::
	$(INSTALLPROG) login.erl ${DESTDIR}${DAEMDIR}/login.erl

clean::
	$(RM) login.erl login.o

clientwinoob.o:	winoob.o	winoob.c fifo.h
	$(HCC) $(HCFLAGS) -DCLIENT -c winoob.c
	$(MV) winoob.o clientwinoob.o

clean::
	$(RM) clientwinoob.o

clientenvoob.o:	envoob.o	envoob.c fifo.h
	$(HCC) $(HCFLAGS) -DCLIENT -c envoob.c
	$(MV) envoob.o clientenvoob.o

clean::
	$(RM) clientenvoob.o

serverwinoob.o:	winoob.o	winoob.c fifo.h
	$(HCC) $(HCFLAGS) -DSERVER -c winoob.c
	$(MV) winoob.o serverwinoob.o

clean::
	$(RM) serverwinoob.o

serverenvoob.o:	envoob.o	envoob.c fifo.h
	$(HCC) $(HCFLAGS) -DSERVER -c envoob.c
	$(MV) envoob.o serverenvoob.o

clean::
	$(RM) serverenvoob.o

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

