#	$Id: Makefile,v 1.1.1.1 1996/02/17 15:11:28 peter Exp $

PROG =	rpc.statd
SRCS =	file.c sm_inter_svc.c statd.c procs.c
MAN8 =	rpc.statd.8

DPADD=	${LIBRPCSVC}
LDADD=	-lrpcsvc

CFLAGS+= -I.

CLEANFILES= sm_inter_svc.c sm_inter.h

RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/sm_inter.x
RPCGEN= rpcgen -L -C

sm_inter_svc.c: ${RPCSRC} sm_inter.h
	${RPCGEN} -m -o ${.TARGET} ${RPCSRC}

sm_inter.h: ${RPCSRC}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}

test: test.c
	cc -o test test.c -lrpcsvc

.include <bsd.prog.mk>

#	$Id: Makefile,v 1.2 1996/04/01 05:36:03 peter Exp $

PROG =	rpc.statd
SRCS =	file.c sm_inter_svc.c statd.c procs.c
MAN8 =	rpc.statd.8
DPSRCS+= sm_inter.h

DPADD=	${LIBRPCSVC}
LDADD=	-lrpcsvc

CFLAGS+= -I.

CLEANFILES= sm_inter_svc.c sm_inter.h

RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/sm_inter.x
RPCGEN= rpcgen -L -C

sm_inter_svc.c: ${RPCSRC} sm_inter.h
	${RPCGEN} -m -o ${.TARGET} ${RPCSRC}

sm_inter.h: ${RPCSRC}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}

test: test.c
	cc -o test test.c -lrpcsvc

.include <bsd.prog.mk>

Add sm_inter.h to DPSRCS so that make depend is not required to build this.
Add sm_inter.h to DPSRCS so that make depend is not required to build
this.
