489adb600f
set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week
28 lines
484 B
Makefile
28 lines
484 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= rpc.statd
|
|
MAN= rpc.statd.8
|
|
SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c
|
|
|
|
CFLAGS+= -I.
|
|
WARNS?= 2
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
CLEANFILES= sm_inter_svc.c sm_inter.h
|
|
|
|
RPCSRC= ${DESTDIR}/usr/include/rpcsvc/sm_inter.x
|
|
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C
|
|
|
|
sm_inter_svc.c: ${RPCSRC}
|
|
${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>
|