2015-06-13 19:20:56 +00:00
|
|
|
# $FreeBSD$
|
2012-08-22 19:25:57 +00:00
|
|
|
|
|
|
|
.if ${.MAKE.DEPENDFILE:M*.${MACHINE}} == ""
|
|
|
|
# by default only MACHINE0 does updates
|
|
|
|
UPDATE_DEPENDFILE_MACHINE?= ${MACHINE0}
|
|
|
|
.if ${MACHINE} != ${UPDATE_DEPENDFILE_MACHINE}
|
|
|
|
UPDATE_DEPENDFILE= no
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= ${CFLAGS_LAST}
|
2012-11-08 21:35:20 +00:00
|
|
|
CXXFLAGS+= ${CXXFLAGS_LAST}
|
|
|
|
LDFLAGS+= ${LDFLAGS_LAST}
|
|
|
|
|
2012-08-22 19:25:57 +00:00
|
|
|
CLEANFILES+= .depend
|
|
|
|
|
2015-10-07 00:32:33 +00:00
|
|
|
.for h in ${SRCS:M*.h}
|
|
|
|
.if target($h)
|
|
|
|
buildfiles: $h
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2012-08-22 19:25:57 +00:00
|
|
|
# handy for debugging
|
|
|
|
.SUFFIXES: .S .c .cc .cpp .cpp-out
|
|
|
|
|
|
|
|
|
|
|
|
.S.cpp-out .c.cpp-out: .NOMETA
|
|
|
|
@${CC} -E ${CFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
|
|
|
|
|
|
|
|
.cc.cpp-out: .NOMETA
|
|
|
|
@${CXX} -E ${CXXFLAGS} ${.IMPSRC} | grep -v '^[[:space:]]*$$'
|