xref: /freebsd/share/mk/local.autodep.mk (revision 61ba55bcf70f2340f9c943c9571113b3fd8eda69)
1
2.if ${.MAKE.DEPENDFILE:M*.${MACHINE}} == ""
3# by default only MACHINE0 does updates
4UPDATE_DEPENDFILE_MACHINE?= ${MACHINE0:U${MACHINE}}
5.if ${MACHINE} != ${UPDATE_DEPENDFILE_MACHINE}
6UPDATE_DEPENDFILE= no
7.endif
8.endif
9
10NOSSPPICO?= .nossppico
11PIEO?= .pieo
12OBJ_EXTENSIONS+= ${NOSSPPICO} ${PIEO}
13
14CLEANFILES+= .depend
15
16# handy for debugging
17.SUFFIXES:  .S .c .cc .cpp .cpp-out
18
19
20.S.cpp-out .c.cpp-out: .NOMETA
21	@${CC} -E ${CFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
22
23.cc.cpp-out: .NOMETA
24	@${CXX} -E ${CXXFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
25
26.-include <site.autodep.mk>
27
28.ifdef _RECURSING_CRUNCH
29# crunchgen does not want to see our stats
30_reldir_finish: .NOTMAIN
31.endif
32