# 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 = ./rkinitd
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
###########################################################################

# This is the makefile for rkinitd.
#
# $Id: Imakefile,v 1.1 92/01/08 12:11:55 epeisach Exp Locker: epeisach $

KLIBS		= -lkrb -ldes
RKLIB		= ../lib/librkinit.a

INCLUDES	= -I../include
DEFINES		= $(DFLAGS) $(INCLUDES) -DHESIOD
LIBS		= $(RKLIB) $(KLIBS) -lcom_err -lhesiod

RKERR_H		= ../include/rkinit_err.h
RKLIBDEP	= ../lib/rk_rpc.o ../lib/rk_lib.o ../lib/rk_util.o \
		  ../lib/rk_krb.o ../lib/rkinit_err.et

SOBJS		= rkinitd.o util.o rpc.o krb.o login.o
HEADERS		= ../include/rkinit.h ../include/rkinit_private.h $(RKERR_H)

all::	rkinitd
rkinitd::	$(SOBJS)
	$(LD)  $(LDFLAGS) -o rkinitd $(SOBJS) $(LDPATH) $(LIBS) $(LDLIBS)
clean::
	$(RM) rkinitd

install::
	$(INSTALL) -s  rkinitd $(DESTDIR)$(ATHETCDIR)/rklogind

$(SOBJS): $(HEADERS)

$(RKLIB): $(RKLIBDEP)

$(RKERR_H) $(RKLIBDEP):
	cd ../lib; make

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

