1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
27 lines
452 B
Makefile
27 lines
452 B
Makefile
# $FreeBSD$
|
|
|
|
PROG = rpc.lockd
|
|
SRCS = nlm_prot_svc.c lockd.c procs.c
|
|
MAN8 = rpc.lockd.8
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
CFLAGS+= -I.
|
|
|
|
CLEANFILES= nlm_prot_svc.c nlm_prot.h
|
|
|
|
RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/nlm_prot.x
|
|
RPCGEN= rpcgen -L -C
|
|
|
|
nlm_prot_svc.c: ${RPCSRC} nlm_prot.h
|
|
${RPCGEN} -m -o ${.TARGET} ${RPCSRC}
|
|
|
|
nlm_prot.h: ${RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
|
|
|
|
test: test.c
|
|
cc -o test test.c -lrpcsvc
|
|
|
|
.include <bsd.prog.mk>
|