# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

prefix=/usr/athena
exec_prefix=${prefix}
datadir=${prefix}/share
confdir=/etc/athena/zephyr
sbindir=${exec_prefix}/sbin
lsbindir=/etc/athena

includedir=$(prefix)/include
mandir=$(prefix)/man
libdir=$(exec_prefix)/lib

srcdir=.
top_srcdir=..
BUILDTOP=..
CC=gcc
INSTALL=/usr/bin/install -c

DEBUG=-O
CFLAGS=	$(DEBUG) -DCONFDIR=\"$(confdir)\" -I$(top_srcdir)/h -I$(BUILDTOP)/h \
	 -I/usr/athena/include
LDFLAGS=$(DEBUG) -L$(BUILDTOP)/lib/zephyr   -L/usr/athena/lib
LIBS=-lzephyr -lkrb -ldes -lkrb -lhesiod -lhesiod -ldl  -lcom_err

OBJS=	queue.o zhm.o zhm_client.o zhm_server.o

all: zhm

zhm: $(OBJS) $(BUILDTOP)/lib/zephyr/libzephyr.a 
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

check:

install: zhm
	$(INSTALL) -m 755 -s zhm $(lsbindir)
	$(INSTALL) -m 644 $(srcdir)/zhm.8 $(mandir)/man8

clean:
	rm -f $(OBJS) zhm

$(OBJS): zhm.h $(top_srcdir)/h/internal.h $(top_srcdir)/h/sysdep.h
$(OBJS): $(BUILDTOP)/h/config.h $(BUILDTOP)/h/zephyr/zephyr.h
$(OBJS): $(BUILDTOP)/h/zephyr/zephyr_err.h

.PHONY: all check install clean

