xref: /freebsd/share/mk/local.autodep.mk (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
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
10CLEANFILES+= .depend
11
12# handy for debugging
13.SUFFIXES:  .S .c .cc .cpp .cpp-out
14
15
16.S.cpp-out .c.cpp-out: .NOMETA
17	@${CC} -E ${CFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
18
19.cc.cpp-out: .NOMETA
20	@${CXX} -E ${CXXFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
21
22.-include <site.autodep.mk>
23
24.ifdef _RECURSING_CRUNCH
25# crunchgen does not want to see our stats
26_reldir_finish: .NOTMAIN
27.endif
28