NetBSD/usr.sbin/rpc.statd/Makefile

26 lines
624 B
Makefile
Raw Normal View History

1999-06-06 06:52:16 +04:00
# $NetBSD: Makefile,v 1.7 1999/06/06 02:52:16 thorpej Exp $
PROG= rpc.statd
SRCS= sm_inter_svc.c statd.c stat_proc.c
MAN= rpc.statd.8
MLINKS= rpc.statd.8 statd.8
1997-10-25 10:57:53 +04:00
CPPFLAGS+= -I.
1999-06-06 06:52:16 +04:00
DPADD= ${LIBRPCSVC} ${LIBUTIL}
LDADD= -lrpcsvc -lutil
CLEANFILES+= sm_inter_svc.c sm_inter.x sm_inter.h test
sm_inter_svc.c: ${RPCSRC} ${DESTDIR}/usr/include/rpcsvc/sm_inter.x
rm -f sm_inter.x
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.x .
rm -f sm_inter.h
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.h .
rpcgen -C -L -m -o ${.TARGET} sm_inter.x
test: ${.CURDIR}/test.c
cc -o test ${.CURDIR}/test.c -lrpcsvc
.include <bsd.prog.mk>