2003-08-01 21:03:41 +04:00
|
|
|
# $NetBSD: Makefile.clnt,v 1.13 2003/08/01 17:04:07 lukem Exp $
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
# This Makefile builds a client used for testing.
|
|
|
|
|
2002-09-18 17:31:52 +04:00
|
|
|
NOMAN= # defined
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.include <bsd.own.mk>
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
PROG= clnt.pcnfsd
|
1995-07-24 23:12:18 +04:00
|
|
|
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
|
1995-07-24 08:02:44 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
CPPFLAGS+= -DUSER_CACHE -DWTMP -I.
|
|
|
|
|
|
|
|
.if (${USE_YP} != "no")
|
|
|
|
CPPFLAGS+=-DUSE_YP
|
|
|
|
.endif
|
|
|
|
|
1995-07-24 08:02:44 +04:00
|
|
|
DPADD= ${LIBRPCSVC}
|
|
|
|
LDADD= -lrpcsvc
|
|
|
|
|
|
|
|
# Special rules for the generated C code...
|
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
.ifnmake getrpcgen
|
|
|
|
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
getrpcgen:
|
2003-07-10 14:33:58 +04:00
|
|
|
@set -- X `type ${TOOL_RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
|
2000-09-11 03:21:49 +04:00
|
|
|
|
|
|
|
pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
|
2003-07-10 14:33:58 +04:00
|
|
|
${TOOL_RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
|
2003-07-10 14:33:58 +04:00
|
|
|
${TOOL_RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
2000-09-11 03:21:49 +04:00
|
|
|
pcnfsd.h: pcnfsd.x ${XRPCGEN}
|
2003-07-10 14:33:58 +04:00
|
|
|
${TOOL_RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
2003-08-01 21:03:41 +04:00
|
|
|
DPSRCS+= pcnfsd.h
|
|
|
|
CLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|