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".
21 lines
424 B
Makefile
21 lines
424 B
Makefile
# $NetBSD: Makefile,v 1.18 2003/08/01 17:04:06 lukem Exp $
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
PROG= fsinfo
|
|
|
|
DIST= ${IDIST}/fsinfo
|
|
.PATH: ${DIST}
|
|
|
|
SRCS= fsi_analyze.c fsi_dict.c fsi_gram.y fsi_lex.l fsi_util.c fsinfo.c \
|
|
wr_atab.c wr_bparam.c wr_dumpset.c wr_exportfs.c wr_fstab.c
|
|
MAN+= fsinfo.8
|
|
|
|
|
|
FSINFOOBJDIR!=cd ${.CURDIR} && ${PRINTOBJDIR}
|
|
|
|
CPPFLAGS+= -I${DIST} -I${FSINFOOBJDIR}
|
|
YHEADER= 1
|
|
|
|
.include <bsd.prog.mk>
|