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