Return to bsd.dep.mk CVS log | Up to [local] / src / share / mk |
File: [local] / src / share / mk / bsd.dep.mk (download)
Revision 1.17, Mon Jul 3 07:54:18 2017 UTC (6 years, 11 months ago) by espie
explicitly pass -MD -MP in DFLAGS, so that even if CFLAGS are forced on the command line, things will still work |
# $OpenBSD: bsd.dep.mk,v 1.17 2017/07/03 07:54:18 espie Exp $ # $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $ .if !target(depend) depend: @: .endif # relies on DEPS defined by bsd.lib.mk and bsd.prog.mk .if defined(DEPS) && !empty(DEPS) . for o in ${DEPS} sinclude $o . endfor .endif CFLAGS += -MD -MP CXXFLAGS += -MD -MP # libraries need some special love DFLAGS = -MD -MP -MT $*.o -MT $*.po -MT $*.so -MT $*.do .if !target(tags) . if defined(SRCS) tags: ${SRCS} _SUBDIRUSE -cd ${.CURDIR}; ${CTAGS} -f /dev/stdout -d ${.ALLSRC:N*.h} | \ sed "s;\${.CURDIR}/;;" > tags . else tags: . endif .endif CLEANFILES += ${DEPS} .depend BUILDFIRST ?= BUILDAFTER ?= .if !empty(BUILDFIRST) && !empty(BUILDAFTER) ${BUILDAFTER}: ${BUILDFIRST} .endif