xref: /freebsd/share/mk/local.autodep.mk (revision c8e7f78a3d28ff6e6223ed136ada8e1e2f34965e)
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