#	$NetBSD: Makefile.inc,v 1.12 2000/01/22 20:35:58 mycroft Exp $

.include <bsd.own.mk>

BINDIR?=	/usr/sbin
MK_CMDS?= mk_cmds
COMPILE_ET?= compile_et

MAN?= ${PROG}.8

.SUFFIXES: .c .ct
.ct.c:
	${MK_CMDS} ${.IMPSRC}

.SUFFIXES: .c .et
.SUFFIXES: .h .et
.et.c .et.h:
	${COMPILE_ET} ${.IMPSRC}

# delete generated .c and .h files
DPSRCS += $(SRCS:M*.ct:.ct=.c) $(SRCS:M*.et:.et=.c) $(SRCS:M*.et:.et=.h)

.ifdef KERBEROS5
CPPFLAGS+= -I${DESTDIR}/usr/include/krb5 \
	-DKRB5_KRB4_COMPAT
.endif
