Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gdb/lib/libctf Generate ctf-error.h



details:   https://anonhg.NetBSD.org/src/rev/63453bec6baa
branches:  trunk
changeset: 955072:63453bec6baa
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 17 16:45:35 2020 +0000

description:
Generate ctf-error.h

diffstat:

 external/gpl3/gdb/lib/libctf/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 7bd820fcdfde -r 63453bec6baa external/gpl3/gdb/lib/libctf/Makefile
--- a/external/gpl3/gdb/lib/libctf/Makefile     Thu Sep 17 16:38:10 2020 +0000
+++ b/external/gpl3/gdb/lib/libctf/Makefile     Thu Sep 17 16:45:35 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2020/09/17 16:36:38 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2020/09/17 16:45:35 christos Exp $
 
 NOCTF=
 #HOSTPROG_CXX=   1
@@ -16,6 +16,7 @@
 SRCS=          ${G_OBJECTS:.o=.c}
 GCPPFLAGS=     ${G_INTERNAL_CFLAGS}
 CPPFLAGS+=     -I${.CURDIR} \
+               -I. \
                -I${DIST} \
                -I${DIST}/libctf \
                -I${DIST}/gnulib/import \
@@ -34,6 +35,14 @@
 
 CWARNFLAGS.clang+=     -Wno-switch
 
+CLEANDIRFILES+= ctf-error.h
+
+${G_OBJECTS}: ctf-error.h
+
+ctf-error.h: ${DIST}/libctf/mkerrors.sed ${DIST}/include/ctf-api.h
+       ${TOOL_SED} -nf ${DIST}/libctf/mkerrors.sed < ${DIST}/include/ctf-api.h > $@
+
+
 .include "../../Makefile.inc"
 .include <bsd.lib.mk>
 



Home | Main Index | Thread Index | Old Index