Module Name: src
Committed By: christos
Date: Thu Sep 17 16:45:35 UTC 2020
Modified Files:
src/external/gpl3/gdb/lib/libctf: Makefile
Log Message:
Generate ctf-error.h
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libctf/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/lib/libctf/Makefile
diff -u src/external/gpl3/gdb/lib/libctf/Makefile:1.1 src/external/gpl3/gdb/lib/libctf/Makefile:1.2
--- src/external/gpl3/gdb/lib/libctf/Makefile:1.1 Thu Sep 17 12:36:38 2020
+++ src/external/gpl3/gdb/lib/libctf/Makefile Thu Sep 17 12:45:35 2020
@@ -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 @@ GDBARCHDIR= ${.CURDIR}/arch/${GDB_MACHIN
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 @@ CPPFLAGS+= -I${.CURDIR} \
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>