From 1546e871c7861fa69054beaef9d7f0b54d16e408 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 27 Mar 2024 21:54:43 +0000 Subject: [PATCH] Remove dependency to elfdefinitions.h, this is a mess, since it needs ${TOOL_M4} which might not be available yet. --- tools/Makefile.nbincludes | 4 +--- tools/elftoolchain/libdwarf/Makefile | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/Makefile.nbincludes b/tools/Makefile.nbincludes index a2fe8d2f108e..58866078a658 100644 --- a/tools/Makefile.nbincludes +++ b/tools/Makefile.nbincludes @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.nbincludes,v 1.7 2024/03/26 16:48:34 christos Exp $ +# $NetBSD: Makefile.nbincludes,v 1.8 2024/03/27 21:54:43 christos Exp $ .include @@ -6,7 +6,6 @@ _ARCHDIR:= ${.PARSEDIR}/../sys/arch _INCDIR:= ${.PARSEDIR}/../include _SYSDIR:= ${.PARSEDIR}/../sys/sys _UFSDIR:= ${.PARSEDIR}/../sys/ufs -_ELFTOOLCHAINDIR:= ${.PARSEDIR}/elftoolchain _SUBDIR!= cd ${_ARCHDIR} && ${MAKE} -V SUBDIR .if make(depend) || make(all) || make(dependall) || make(install) @@ -46,4 +45,3 @@ beforedepend: ${TOOL_PAX} -rw ${_UFS_INCS} ${TOOLDIR}/include/nbinclude/ufs cd ${TOOLDIR}/include/nbinclude && rm -f machine && \ ${HOST_INSTALL_SYMLINK} ${MACHINE} machine - cd ${_ELFTOOLCHAINDIR}/common && ${MAKE} includes diff --git a/tools/elftoolchain/libdwarf/Makefile b/tools/elftoolchain/libdwarf/Makefile index 370229e38647..2cab5f936243 100644 --- a/tools/elftoolchain/libdwarf/Makefile +++ b/tools/elftoolchain/libdwarf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2024/03/26 16:48:34 christos Exp $ +# $NetBSD: Makefile,v 1.5 2024/03/27 21:54:43 christos Exp $ HOSTLIB=dwarf @@ -73,7 +73,6 @@ COMPATLIB_NO_LIB= yes # only the include files, not the library LIBDWARF_OBJDIR!= cd ${.CURDIR} && ${PRINTOBJDIR} -CPPFLAGS+= -DBUILTIN_ELF_HEADERS CPPFLAGS+= -I${.CURDIR}/../../compat CPPFLAGS+= -I${.CURDIR}/../../common CPPFLAGS+= -I${LIBDWARF_OBJDIR}/../common @@ -97,5 +96,4 @@ CPPFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 HOST_CPPFLAGS:= ${CPPFLAGS} ${HOST_CPPFLAGS} CPPFLAGS:= # empty -.include "../../Makefile.nbincludes" .include