blob: f6f39dde98f33b7179131df7428510e4c31f6e41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $OpenBSD: bsd.dep.mk,v 1.16 2017/07/01 14:41:54 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 = -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
|