mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 13:34:00 +01:00
ce81d24b05
- Use rpcgen to generate the unmodified boilerplate code rather than having it in the repository. - Eliminate the conflicting function names by changing them to their "natural" rpcgen generated names
27 lines
498 B
Makefile
27 lines
498 B
Makefile
# $Id: Makefile,v 1.1.1.1 1996/02/17 15:11:28 peter Exp $
|
|
|
|
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>
|