head 1.5; access; symbols netbsd-11-0-RC4:1.5 netbsd-11-0-RC3:1.5 netbsd-11-0-RC2:1.5 netbsd-11-0-RC1:1.5 perseant-exfatfs-base-20250801:1.5 netbsd-11:1.5.0.4 netbsd-11-base:1.5 netbsd-10-1-RELEASE:1.1 perseant-exfatfs-base-20240630:1.5 perseant-exfatfs:1.5.0.2 perseant-exfatfs-base:1.5 netbsd-10-0-RELEASE:1.1 netbsd-10-0-RC6:1.1 netbsd-10-0-RC5:1.1 netbsd-10-0-RC4:1.1 netbsd-10-0-RC3:1.1 netbsd-10-0-RC2:1.1 netbsd-10-0-RC1:1.1 netbsd-10:1.1.0.2 netbsd-10-base:1.1; locks; strict; comment @# @; 1.5 date 2024.04.01.02.18.30; author christos; state Exp; branches; next 1.4; commitid HKIyzv21crU4Sn4F; 1.4 date 2024.03.31.03.20.38; author christos; state Exp; branches; next 1.3; commitid y2aZX8tO5caEeg4F; 1.3 date 2024.03.27.21.55.08; author christos; state Exp; branches; next 1.2; commitid 8H4kkvt7sTQJxQ3F; 1.2 date 2024.03.26.16.52.03; author christos; state Exp; branches; next 1.1; commitid Pbb0JHrTjOtNTG3F; 1.1 date 2022.04.13.17.52.56; author jkoshy; state Exp; branches; next ; commitid cPvz9vSwjluM84AD; desc @@ 1.5 log @revert previous, riastradh fixed it correctly and this is not needed. @ text @# $NetBSD: Makefile,v 1.4 2024/03/31 03:20:38 christos Exp $ .include SRCDIR= ${.CURDIR}/../../../../external/bsd/elftoolchain/dist/common/sys .PATH: ${SRCDIR} INCS= elfdefinitions.h HOST_INCSDIR= ${TOOLDIR}/include/sys # Too early for ${TOOL_M4} elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 ${_MKTARGET_CREATE} ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ elfdefinitions.m4 > ${.TARGET} .PHONY: all clean clobber depend install: .PHONY ${HOST_INCSDIR} .WAIT includes ${HOST_INCSDIR}: ${_MKTARGET_INSTALL} ${HOST_INSTALL_DIR} ${HOST_INCSDIR} .for _f in ${INCS} HOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f} ${HOST_INCSDIR}/${_f}: ${_f} ${_MKTARGET_INSTALL} ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} .endfor includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES} all dependall depend: ${INCS} clean clobber: rm -f ${INCS} cleandepend: rm -f ${.OBJDIR}/.depend .include @ 1.4 log @Restore the minimum build to install elfdefinitions.h. Provide a pre-built copy, since we don't have m4 available. Use pax to install it because using the Makefile needs more stuff available (nbsed) which we have not built yet. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2024/03/27 21:55:08 christos Exp $ d13 4 a16 4 #elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 # ${_MKTARGET_CREATE} # ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ # elfdefinitions.m4 > ${.TARGET} d38 1 a38 1 # rm -f ${INCS} @ 1.3 log @Add ${_MKTARGET_CREATE} @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2024/03/26 16:52:03 christos Exp $ d12 5 a16 4 elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 ${_MKTARGET_CREATE} ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ elfdefinitions.m4 > ${.TARGET} d38 1 a38 1 rm -f ${INCS} @ 1.2 log @don't install headers as executable. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2022/04/13 17:52:56 jkoshy Exp $ d13 1 @ 1.1 log @When building tools use a dedicated subdirectory for compiling Elftoolchain code. Build and install in ${TOOLDIR}/include. This change prepares the ground for upgrading libelf and libdwarf to their current Elftoolchain versions. @ text @d1 1 a1 1 # $NetBSD$ d28 1 a28 1 ${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET} @