2002-09-18 17:31:52 +04:00
|
|
|
# $NetBSD: Makefile.clnt,v 1.10 2002/09/18 13:31:56 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:
|
|
|
|
@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
|
|
|
|
|
|
|
|
pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
|
2000-07-25 10:29:44 +04:00
|
|
|
${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}
|
2000-07-25 10:29:44 +04:00
|
|
|
${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}
|
2000-07-25 10:29:44 +04:00
|
|
|
${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
|
1995-07-24 08:02:44 +04:00
|
|
|
|
|
|
|
CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1995-07-24 23:12:18 +04:00
|
|
|
|
|
|
|
.depend ${OBJS}: pcnfsd.h
|