Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Tweak makefile for USE_FILEMON=dev, from sjg.



details:   https://anonhg.NetBSD.org/src/rev/c22faedc6b09
branches:  trunk
changeset: 848178:c22faedc6b09
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jan 19 19:50:54 2020 +0000

description:
Tweak makefile for USE_FILEMON=dev, from sjg.

diffstat:

 usr.bin/make/Makefile |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 3e47b605bb91 -r c22faedc6b09 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Sun Jan 19 19:49:36 2020 +0000
+++ b/usr.bin/make/Makefile     Sun Jan 19 19:50:54 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.67 2020/01/19 19:49:36 riastradh Exp $
+#      $NetBSD: Makefile,v 1.68 2020/01/19 19:50:54 riastradh Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -15,15 +15,27 @@
 
 USE_META ?= yes
 .if ${USE_META:tl} != "no"
+
 SRCS+= meta.c
 CPPFLAGS+= -DUSE_META
+
 USE_FILEMON ?= ktrace
 .if ${USE_FILEMON:tl} != "no"
+
 .PATH: ${.CURDIR}/filemon
 SRCS+= filemon_${USE_FILEMON}.c
 CPPFLAGS+= -DUSE_FILEMON
+
+.if ${USE_FILEMON} == "dev"
+FILEMON_H ?= /usr/include/dev/filemon/filemon.h
+.if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
+COPTS.filemon_dev.c += -DHAVE_FILEMON_H -I${FILEMON_H:H}
 .endif
-.endif
+.endif                         # USE_FILEMON == dev
+
+.endif                         # USE_FILEMON
+
+.endif                         # USE_META
 
 .PATH: ${.CURDIR}/lst.lib
 SUBDIR.roff+=  PSD.doc



Home | Main Index | Thread Index | Old Index