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