/**/#	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/src/server/RCS/Imakefile,v $
/**/#	$Author: jtkohl $
/**/#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/src/server/RCS/Imakefile,v 1.9 89/12/18 13:25:04 jtkohl Exp $
/**/#

#if defined(DO_SYSLOG) && defined(SYSLOG_COMPAT42)
SYSLOG_LIB= ../clients/syslogd/syslog.o
#else
SYSLOG_LIB=
#endif
LIBS= ${SYSLOG_LIB} ${ZEPHYR_LIB} ${COMERR_LIB} ${HES_LIB} ${KRB_LIB} \
	${DES_LIB}
LINTLIBS= ${ZEPHYR_LINTLIB} ${COMERR_LINTLIB} ${HES_LINTLIB} \
	${KRB_LINTLIB} ${DES_LINTLIB}

HDRS=	zserver.h \
	zsrv_conf.h \
	timer.h

SRCS=	access.c \
	bdump.c \
	class.c \
	client.c \
	common.c \
	dispatch.c \
	hostm.c \
	main.c \
	server.c \
	subscr.c \
	timer.c \
	uloc.c \
	kstuff.c \
	version.c

OBJS= 	zsrv_err.o \
	access.o \
	bdump.o \
	class.o \
	client.o \
	common.o \
	dispatch.o \
	hostm.o \
	main.o \
	server.o \
	subscr.o \
	timer.o \
	uloc.o \
	kstuff.o \
	version.o

OTHERSRCS= zsrv_err.et
CONFIG_FILES= default.subscriptions
SRCDIR= ${SRCTOP}/server
CODE= ${SRCS} ${HDRS} ${OTHERSRCS} ${CONFIG_FILES} Imakefile

DEFINES=-DOLD_COMPAT -DNEW_COMPAT
normal_obj_rule()

program(zephyrd,${OBJS},,${LIBS},${USRETCDIR})

error_table_noprof(zsrv_err)

src:: zsrv_err.h

depend:: zsrv_err.h

install::
	-mkdir ${DESTDIR}${ACLDIR}
	-rm -f ${DESTDIR}${ACLDIR}/?*.acl
	cp acldir/?* ${DESTDIR}${ACLDIR}
	${INSTALLFILE} default.subscriptions ${DESTDIR}${ACLDIR}/default.subscriptions

