26 lines
604 B
Makefile
26 lines
604 B
Makefile
# $NetBSD: Makefile,v 1.6 1997/10/25 06:58:40 lukem Exp $
|
|
|
|
PROG= rpc.statd
|
|
SRCS= sm_inter_svc.c statd.c stat_proc.c
|
|
MAN= rpc.statd.8
|
|
MLINKS= rpc.statd.8 statd.8
|
|
|
|
CPPFLAGS+= -I.
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
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>
|