a93ea220fc
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution".
43 lines
877 B
Makefile
43 lines
877 B
Makefile
# $NetBSD: Makefile.clnt,v 1.13 2003/08/01 17:04:07 lukem Exp $
|
|
|
|
# This Makefile builds a client used for testing.
|
|
|
|
NOMAN= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= clnt.pcnfsd
|
|
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
|
|
|
|
CPPFLAGS+= -DUSER_CACHE -DWTMP -I.
|
|
|
|
.if (${USE_YP} != "no")
|
|
CPPFLAGS+=-DUSE_YP
|
|
.endif
|
|
|
|
DPADD= ${LIBRPCSVC}
|
|
LDADD= -lrpcsvc
|
|
|
|
# Special rules for the generated C code...
|
|
|
|
.ifnmake getrpcgen
|
|
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
|
|
.endif
|
|
|
|
getrpcgen:
|
|
@set -- X `type ${TOOL_RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
|
|
|
|
pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
|
|
${TOOL_RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
|
|
|
|
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
|
|
${TOOL_RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
|
|
|
|
pcnfsd.h: pcnfsd.x ${XRPCGEN}
|
|
${TOOL_RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
|
|
|
|
DPSRCS+= pcnfsd.h
|
|
CLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
|
|
|
|
.include <bsd.prog.mk>
|