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