freebsd-nq/share/mk/local.autodep.mk
Simon J. Gerraty 960b77be8f Update dirdeps.mk et al to latest
Move some local tweaks to local.*.mk

Reviewed by:	bdrewery
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D27300
2020-11-24 21:45:38 +00:00

29 lines
624 B
Makefile

# $FreeBSD$
.if ${.MAKE.DEPENDFILE:M*.${MACHINE}} == ""
# by default only MACHINE0 does updates
UPDATE_DEPENDFILE_MACHINE?= ${MACHINE0:U${MACHINE}}
.if ${MACHINE} != ${UPDATE_DEPENDFILE_MACHINE}
UPDATE_DEPENDFILE= no
.endif
.endif
NOSSPPICO?= .nossppico
OBJ_EXTENSIONS+= ${NOSSPPICO}
CFLAGS+= ${CFLAGS_LAST}
CXXFLAGS+= ${CXXFLAGS_LAST}
LDFLAGS+= ${LDFLAGS_LAST}
CLEANFILES+= .depend
# 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:]]*$$'