1# $FreeBSD$ 2 3.if ${.MAKE.DEPENDFILE:M*.${MACHINE}} == "" 4# by default only MACHINE0 does updates 5UPDATE_DEPENDFILE_MACHINE?= ${MACHINE0} 6.if ${MACHINE} != ${UPDATE_DEPENDFILE_MACHINE} 7UPDATE_DEPENDFILE= no 8.endif 9.endif 10 11CFLAGS+= ${CFLAGS_LAST} 12CXXFLAGS+= ${CXXFLAGS_LAST} 13LDFLAGS+= ${LDFLAGS_LAST} 14 15CLEANFILES+= .depend 16 17.for h in ${SRCS:M*.h} 18.if target($h) 19buildfiles: $h 20.endif 21.endfor 22 23# handy for debugging 24.SUFFIXES: .S .c .cc .cpp .cpp-out 25 26 27.S.cpp-out .c.cpp-out: .NOMETA 28 @${CC} -E ${CFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$' 29 30.cc.cpp-out: .NOMETA 31 @${CXX} -E ${CXXFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$' 32