xref: /freebsd/share/mk/local.autodep.mk (revision a6bd50f712bb6e99dae3c2dda2f4c3742d7cf8e2)
1ccfb9654SSimon J. Gerraty# $FreeBSD$
27750ad47SMarcel Moolenaar
37750ad47SMarcel Moolenaar.if ${.MAKE.DEPENDFILE:M*.${MACHINE}} == ""
47750ad47SMarcel Moolenaar# by default only MACHINE0 does updates
5a6589ab7SSimon J. GerratyUPDATE_DEPENDFILE_MACHINE?= ${MACHINE0:U${MACHINE}}
67750ad47SMarcel Moolenaar.if ${MACHINE} != ${UPDATE_DEPENDFILE_MACHINE}
77750ad47SMarcel MoolenaarUPDATE_DEPENDFILE= no
87750ad47SMarcel Moolenaar.endif
97750ad47SMarcel Moolenaar.endif
107750ad47SMarcel Moolenaar
11960b77beSSimon J. GerratyNOSSPPICO?= .nossppico
122d781301SAlex RichardsonPIEO?= .pieo
132d781301SAlex RichardsonOBJ_EXTENSIONS+= ${NOSSPPICO} ${PIEO}
14960b77beSSimon J. Gerraty
157750ad47SMarcel MoolenaarCFLAGS+= ${CFLAGS_LAST}
166f385941SSimon J. GerratyCXXFLAGS+= ${CXXFLAGS_LAST}
176f385941SSimon J. GerratyLDFLAGS+= ${LDFLAGS_LAST}
186f385941SSimon J. Gerraty
197750ad47SMarcel MoolenaarCLEANFILES+= .depend
207750ad47SMarcel Moolenaar
217750ad47SMarcel Moolenaar# handy for debugging
227750ad47SMarcel Moolenaar.SUFFIXES:  .S .c .cc .cpp .cpp-out
237750ad47SMarcel Moolenaar
247750ad47SMarcel Moolenaar
257750ad47SMarcel Moolenaar.S.cpp-out .c.cpp-out: .NOMETA
267750ad47SMarcel Moolenaar	@${CC} -E ${CFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
277750ad47SMarcel Moolenaar
287750ad47SMarcel Moolenaar.cc.cpp-out: .NOMETA
297750ad47SMarcel Moolenaar	@${CXX} -E ${CXXFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
30e300f328SSimon J. Gerraty
31e300f328SSimon J. Gerraty.-include <site.autodep.mk>
32*a6bd50f7SSimon J. Gerraty
33*a6bd50f7SSimon J. Gerraty.ifdef _RECURSING_CRUNCH
34*a6bd50f7SSimon J. Gerraty# crunchgen does not want to see our stats
35*a6bd50f7SSimon J. Gerraty_reldir_finish: .NOTMAIN
36*a6bd50f7SSimon J. Gerraty.endif
37