From 917fdbc2fcff5d8bef8ac885326f872d7c7582d8 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Sun, 1 May 2022 17:25:19 +0000 Subject: Make the generated file visible when compiling libdwarf. --- tools/elftoolchain/libdwarf/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/elftoolchain/libdwarf/Makefile b/tools/elftoolchain/libdwarf/Makefile index 87a5ac5fec0..0f859cdb500 100644 --- a/tools/elftoolchain/libdwarf/Makefile +++ b/tools/elftoolchain/libdwarf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2022/04/18 14:11:43 jkoshy Exp $ +# $NetBSD: Makefile,v 1.2 2022/05/01 17:25:19 jkoshy Exp $ HOSTLIB=dwarf @@ -71,8 +71,11 @@ COMPATLIB_NO_LIB= yes # only the include files, not the library .-include "${TOOLDIR}/share/compat/defs.mk" .endif +LIBDWARF_OBJDIR!= cd ${.CURDIR} && ${PRINTOBJDIR} + CPPFLAGS+= -I${.CURDIR}/../../compat CPPFLAGS+= -I${.CURDIR}/../../common +CPPFLAGS+= -I${LIBDWARF_OBJDIR}/../common CPPFLAGS+= -I${LIBDWARF_DIR} -I${LIBELF_DIR} -I${COMMON_DIR} CPPFLAGS+= -I${TOOLDIR}/include -I${TOOLDIR}/include/nbinclude -- cgit