# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

SHELL=/bin/sh
MAKESHELL=/bin/sh

TOP = ../.
CURDIR = ./lib
CONFIGSRC = /usr/athena/config
DESTDIR=

IRULESRC = $(CONFIGSRC)

IMAKE= imake
IFLAGS= -I$(IRULESRC) -DTOPDIR=/usr/athena

ICONFIGFILE = ${IRULESRC}/Imake.tmpl ${IRULESRC}/Imake.rules \
	${IRULESRC}/site.def Imakefile
MKDIRHIER= sh $(IRULESRC)/mkdirhier.sh

ATHBASEDIR=/usr/athena

ATHLIBDIR=$(ATHBASEDIR)/lib
ATHBINDIR=$(ATHBASEDIR)/bin
ATHINCDIR=$(ATHBASEDIR)/include
ATHETCDIR=$(ATHBASEDIR)/etc
ATHCONFDIR=/etc/athena
ATHMANDIR=$(ATHBASEDIR)/man
ATHRBINDIR=/bin/athena
ATHRETCDIR=/etc/athena

ATHNEWDIR=$(ATHBINDIR)

ATHXAPPDIR=/usr/athena/lib/X11/app-defaults
ATHXBITDIR=/usr/athena/lib/X11/bitmaps
ATHXINCDIR=/usr/athena/include
ATHXLIBDIR=/usr/athena/lib

LINTCFLAG=-o
LINTFLAGS=$(DEFINES) -I/usr/athena/include

INSTALL=install -c
RANLIB=ranlib
CC=cc
LD=cc
AS=as
RM=rm -f
CDEBUG=-O

CFLAGS=$(CDEBUG) -DPOSIX $(DEFINES) -I/usr/athena/include
LDFLAGS= $(LDDEFS)
LDPATH=-L$(ATHLIBDIR)
LDLIBS=

all::
install:: install_dirs
install_dirs::

clean::
depend::

FRC::

###########################################################################
# Project inclusion
###########################################################################

###########################################################################
# start of Imakefile
###########################################################################

#
#  $Header: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/usr.athena/rkinit/lib/RCS/Imakefile,v 1.2 91/05/13 15:59:35 epeisach Exp $
#  $Source: /afs/rel-eng.athena.mit.edu/project/release/current/source/athena/usr.athena/rkinit/lib/RCS/Imakefile,v $
#  $Author: epeisach $
#
#  This is the makefile for librkinit.a.
#

INCLUDES	= -I../include
DEFINES		= $(DFLAGS) $(INCLUDES)

RKERR_H		= ../include/rkinit_err.h
RKERR_ET	= rkinit_err.et

LSRCS		= rk_lib.c rk_rpc.c rk_util.c rk_krb.c
LOBJS		= rk_lib.o rk_rpc.o rk_util.o rk_krb.o rkinit_err.o
HEADERS		= ../include/rkinit.h ../include/rkinit_private.h $(RKERR_H)

all::	librkinit.a
librkinit.a::	$(LOBJS)
	ar cru librkinit.a $(LOBJS)
	$(RANLIB) librkinit.a
all-prof::	librkinit_p.a
librkinit_p.a:	$(LOBJS)
	cd profiled; ar cru ../librkinit_p.a $(LOBJS)
	$(RANLIB) librkinit_p.a

install::
	$(RM) $(DESTDIR)$(ATHLIBDIR)/librkinit.a
	$(INSTALL) -m 0644 librkinit.a $(DESTDIR)$(ATHLIBDIR)
	$(RANLIB) $(DESTDIR)$(ATHLIBDIR)/librkinit.a
inst-prof::
	$(RM) $(DESTDIR)$(ATHLIBDIR)/librkinit_p.a
	$(INSTALL) -m 0644 librkinit_p.a $(DESTDIR)$(ATHLIBDIR)
	$(RANLIB) $(DESTDIR)$(ATHLIBDIR)/librkinit_p.a

$(LOBJS): $(HEADERS)

rkinit_err.c $(RKERR_H): $(RKERR_ET)
	compile_et rkinit_err.et
	mv rkinit_err.h ../include

depend::
	makedepend $(CFLAGS) $(LSRCS)

clean::
	rm -f core *.o *~ *.bak librkinit.a rkinit_err.h rkinit_err.c

Makefile:: $(ICONFIGFILE)
	-@if [ -f Makefile ]; then \
        	echo "  $(RM) Makefile.bak; mv Makefile Makefile.bak"; \
		$(RM) Makefile.bak; mv Makefile Makefile.bak; \
        else exit 0; fi
	$(IMAKE) $(IFLAGS) $(IPROJ) -DNEWTOP=$(TOP) -DNEWCURDIR=$(CURDIR)

clean::
	rm -f *~ *.o *.a core a.out

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

Makefiles::

###########################################################################
# dependencies generated by makedepend

# DO NOT DELETE THIS LINE -- make depend depends on it.

rk_lib.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
rk_lib.o: /usr/athena/include/strings.h /usr/include/string.h
rk_lib.o: /usr/include/memory.h /usr/include/setjmp.h
rk_lib.o: /usr/athena/include/krb.h /usr/athena/include/mit-copyright.h
rk_lib.o: /usr/athena/include/des.h ../include/rkinit.h
rk_lib.o: /usr/include/sys/param.h /usr/include/sys/types.h
rk_lib.o: /usr/include/sys/machtypes.h /usr/include/sys/select.h
rk_lib.o: /usr/include/sys/time.h /usr/include/sys/time.h
rk_lib.o: /usr/include/sys/unistd.h ../include/rkinit_private.h
rk_lib.o: /usr/include/netinet/in.h /usr/include/sys/stream.h
rk_lib.o: /usr/include/sys/vnode.h /usr/include/sys/t_lock.h
rk_lib.o: /usr/include/sys/machlock.h /usr/include/sys/dki_lkinfo.h
rk_lib.o: /usr/include/sys/dl.h /usr/include/sys/sleepq.h
rk_lib.o: /usr/include/sys/turnstile.h /usr/include/sys/pirec.h
rk_lib.o: /usr/include/sys/mutex.h /usr/include/sys/cred.h
rk_lib.o: /usr/include/sys/uio.h /usr/include/vm/seg_enum.h
rk_lib.o: /usr/include/sys/poll.h /usr/include/sys/strmdep.h
rk_lib.o: /usr/include/sys/byteorder.h ../include/rkinit_err.h
rk_rpc.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
rk_rpc.o: /usr/include/sys/types.h /usr/include/sys/machtypes.h
rk_rpc.o: /usr/include/sys/select.h /usr/include/sys/time.h
rk_rpc.o: /usr/include/sys/time.h /usr/include/sys/socket.h
rk_rpc.o: /usr/include/sys/netconfig.h /usr/include/netinet/in.h
rk_rpc.o: /usr/include/sys/stream.h /usr/include/sys/vnode.h
rk_rpc.o: /usr/include/sys/t_lock.h /usr/include/sys/machlock.h
rk_rpc.o: /usr/include/sys/dki_lkinfo.h /usr/include/sys/dl.h
rk_rpc.o: /usr/include/sys/sleepq.h /usr/include/sys/turnstile.h
rk_rpc.o: /usr/include/sys/param.h /usr/include/sys/unistd.h
rk_rpc.o: /usr/include/sys/pirec.h /usr/include/sys/mutex.h
rk_rpc.o: /usr/include/sys/cred.h /usr/include/sys/uio.h
rk_rpc.o: /usr/include/vm/seg_enum.h /usr/include/sys/poll.h
rk_rpc.o: /usr/include/sys/strmdep.h /usr/include/sys/byteorder.h
rk_rpc.o: /usr/include/netdb.h /usr/include/errno.h /usr/include/sys/errno.h
rk_rpc.o: ../include/rkinit.h /usr/athena/include/krb.h
rk_rpc.o: /usr/athena/include/mit-copyright.h /usr/athena/include/des.h
rk_rpc.o: ../include/rkinit_err.h ../include/rkinit_private.h
rk_util.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
rk_util.o: /usr/include/sys/types.h /usr/include/sys/machtypes.h
rk_util.o: /usr/include/sys/select.h /usr/include/sys/time.h
rk_util.o: /usr/include/sys/time.h /usr/include/setjmp.h
rk_util.o: /usr/include/signal.h /usr/include/sys/signal.h
rk_util.o: /usr/include/sys/unistd.h /usr/include/sys/siginfo.h
rk_util.o: /usr/include/sys/machsig.h ../include/rkinit.h
rk_util.o: /usr/athena/include/krb.h /usr/athena/include/mit-copyright.h
rk_util.o: /usr/athena/include/des.h /usr/include/sys/param.h
rk_util.o: ../include/rkinit_private.h /usr/include/netinet/in.h
rk_util.o: /usr/include/sys/stream.h /usr/include/sys/vnode.h
rk_util.o: /usr/include/sys/t_lock.h /usr/include/sys/machlock.h
rk_util.o: /usr/include/sys/dki_lkinfo.h /usr/include/sys/dl.h
rk_util.o: /usr/include/sys/sleepq.h /usr/include/sys/turnstile.h
rk_util.o: /usr/include/sys/pirec.h /usr/include/sys/mutex.h
rk_util.o: /usr/include/sys/cred.h /usr/include/sys/uio.h
rk_util.o: /usr/include/vm/seg_enum.h /usr/include/sys/poll.h
rk_util.o: /usr/include/sys/strmdep.h /usr/include/sys/byteorder.h
rk_util.o: ../include/rkinit_err.h
rk_krb.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
rk_krb.o: /usr/include/sys/types.h /usr/include/sys/machtypes.h
rk_krb.o: /usr/include/sys/select.h /usr/include/sys/time.h
rk_krb.o: /usr/include/sys/time.h /usr/include/sys/ioctl.h
rk_krb.o: /usr/include/netinet/in.h /usr/include/sys/stream.h
rk_krb.o: /usr/include/sys/vnode.h /usr/include/sys/t_lock.h
rk_krb.o: /usr/include/sys/machlock.h /usr/include/sys/dki_lkinfo.h
rk_krb.o: /usr/include/sys/dl.h /usr/include/sys/sleepq.h
rk_krb.o: /usr/include/sys/turnstile.h /usr/include/sys/param.h
rk_krb.o: /usr/include/sys/unistd.h /usr/include/sys/pirec.h
rk_krb.o: /usr/include/sys/mutex.h /usr/include/sys/cred.h
rk_krb.o: /usr/include/sys/uio.h /usr/include/vm/seg_enum.h
rk_krb.o: /usr/include/sys/poll.h /usr/include/sys/strmdep.h
rk_krb.o: /usr/include/sys/byteorder.h /usr/athena/include/krb.h
rk_krb.o: /usr/athena/include/mit-copyright.h /usr/athena/include/des.h
rk_krb.o: /usr/include/signal.h /usr/include/sys/signal.h
rk_krb.o: /usr/include/sys/siginfo.h /usr/include/sys/machsig.h
rk_krb.o: /usr/include/setjmp.h /usr/athena/include/strings.h
rk_krb.o: /usr/include/string.h /usr/include/memory.h /usr/include/termios.h
rk_krb.o: /usr/include/sys/termios.h /usr/include/sys/ttydev.h
rk_krb.o: ../include/rkinit.h ../include/rkinit_err.h
rk_krb.o: ../include/rkinit_private.h
