NetBSD/usr.sbin/rpc.lockd/Makefile
cjs 5fd7ce7066 These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00

28 lines
616 B
Makefile

# $NetBSD: Makefile,v 1.3 1997/05/26 03:59:53 cjs Exp $
PROG= rpc.lockd
SRCS= nlm_prot_svc.c lockd.c lock_proc.c
MAN= rpc.lockd.8
MLINKS= rpc.lockd.8 lockd.8
CFLAGS+= -I.
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
CLEANFILES= nlm_prot_svc.c nlm_prot.x nlm_prot.h test
.include <bsd.own.mk> # for BUILDDIR
nlm_prot_svc.c: ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x
rm -f nlm_prot.x
ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x .
rm -f nlm_prot.h
ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.h .
rpcgen -m -o $@ nlm_prot.x
test: ${.CURDIR}/test.c
cc -o test ${.CURDIR}/test.c -lrpcsvc
.include <bsd.prog.mk>