#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
# 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: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v $
#	$Author: warlord $
#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v 1.1 91/05/18 03:09:38 warlord Exp Locker: warlord $
#

NEWTOP=../.
BUILDTOP=/usr/athena

# LINCLUDES= -I/mit/zephyr/src/include
INCLUDE= $(BLINCLUDES) -I$(BUILDTOP)/include -I. $(LINCLUDES) 
CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)
LINTFLAGS= -bhz $(LLINTFLAGS) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)

#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v $
#	$Author: warlord $
#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v 1.1 91/05/18 03:09:38 warlord Exp Locker: warlord $
#

SRCTOP=/mit/zephyr/src

IMAKE=$(BUILDTOP)/imake/imake -I$(BUILDTOP)/config

GLOBALCDEFS=

DESTDIR=

CLIENTDIR= /usr/athena
ETCATHDIR= /etc/athena
USRETCDIR= /usr/etc
LIBDIR= /usr/athena/lib
LINTLIBDIR= /usr/lib/lint
MANDIR=/usr/man
ACLDIR=/usr/athena/lib/zephyr

X_CDEFS= -DX11

X11_LIB=-lX11
XAW_LIB=-lXaw
XT_LIB=-lXt
XMU_LIB=-lXmu

X11_LINTLIB=-lX11
XAW_LINTLIB=-lXaw
XT_LINTLIB=-lXt
XMU_LINTLIB=-lXmu

X3_CDEFS=-DX11R3

KRB_CDEFS=-DKERBEROS -DZEPHYR_USES_KERBEROS
KRB_LIB=-lkrb
KRB_LINTLIB=-lkrb
DES_LIB=-ldes
DES_LINTLIB=-ldes

HES_CDEFS=-DHESIOD -DZEPHYR_USES_HESIOD
HES_LIB=-lhesiod
HES_LINTLIB=-lhesiod

GLOBAL_CDEFS = $(KRB_CDEFS) $(HES_CDEFS) $(X_CDEFS) $(X3_CDEFS) $(GLOBALCDEFS)

SS_LIB=-lss
SS_LINTLIB=-lss
COMERR_LIB=-lcom_err
COMERR_LINTLIB=-lcom_err
COMPILE_ET=compile_et
MAKE_COMMANDS=mk_cmds

DEPEND=makedepend

ARCHIVE= ar cru

RANLIB= ranlib

INSTALLFILE= install -c -m 444

INSTALLLIB= install -c -m 444

INSTALLPROG= install -c -s -m 555

INSTALLSCRIPT= install -c -m 555

INSTALLRAW= install

INSTALLSUID= install -c -m 4555 -o root

LD=ld

AS=as

LINT=lint

CC=cc

HCC=$(CC)

CPP=$(CC) -E

DBG=-g 

HCFLAGS=$(CFLAGS)

TAGGER=etags

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

#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v $
#	$Author: warlord $
#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v 1.1 91/05/18 03:09:38 warlord Exp Locker: warlord $
#

ZEPHYR_LIB=/mit/zephyr/users/warlord/bin/libzephyr.a
ZEPHYR_LINTLIB=$(BUILDTOP)/libs/llib-lzephyr.ln

#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v $
#	$Author: warlord $
#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/tba/warlord/zhm/RCS/Makefile,v 1.1 91/05/18 03:09:38 warlord Exp Locker: warlord $
#

SYSLOG_LIB=

SRCS= zhm.c zhm_server.c zhm_client.c newqueue.c servhost.c
LIBS= ${SYSLOG_LIB} ${ZEPHYR_LIB} ${COMERR_LIB} ${KRB_LIB} ${HES_LIB} ${EXTRA_LIBS}
SOLLIBS = -lsocket -lnsl -lucb -lelf -lhesiod /usr/athena/lib/libresolv.a
LINTLIBS= ${ZEPHYR_LINTLIB} ${COMERR_LINTLIB} ${KRB_LINTLIB} ${HES_LINTLIB}
LIBDIRS = -L/usr/athena/lib
OBJS= zhm.o zhm_server.o zhm_client.o newqueue.o servhost.o
HDRS= zhm.h

SRCDIR= ${SRCTOP}/zhm
CODE= ${HDRS} ${SRCS} Imakefile

.c.o:
	$(RM) $*.o
	$(CC) -c $(CFLAGS) $*.c

all:: zhm

solaris: ${OBJS}  src
	$(RM) $@
	$(CC) $(CFLAGS) -o $@ ${OBJS} ${LIBS} ${LIBDIRS} ${SOLLIBS}

zhm: ${OBJS}  src
	$(RM) $@
	$(CC) $(CFLAGS) -o $@ ${OBJS} ${LIBS} ${LIBDIRS}

saber:
	#load $(CFLAGS) $(SRCS) $(LIBS) -L/usr/athena/lib -DDEBUG -DZ_HaveHesiod

install::
	$(INSTALLPROG) zhm $(DESTDIR)${ETCATHDIR}/zhm

clean::
	$(RM) zhm ${OBJS}

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

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

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

lint::
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)

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

print:: $(CODE)
	$(LPR) $(CODE)

src:: ${CODE}
	touch src

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

install::

Makefiles::

# DO NOT DELETE THIS LINE


