[BACK]Return to Makefile.prog CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / gpl3 / binutils.old / usr.bin / common

File: [cvs.NetBSD.org] / src / external / gpl3 / binutils.old / usr.bin / common / Makefile.prog (download)

Revision 1.7, Fri Apr 3 17:51:33 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.6: +0 -0 lines

Resolve conflicts

#	$NetBSD: Makefile.prog,v 1.7 2020/04/03 17:51:33 christos Exp $
#
# Common Makefile fragment for a binutils program.
#

BINUTILS_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
CPPFLAGS+=	-I${.CURDIR}/../common/arch/${BINUTILS_MACHINE_ARCH}

.include <bsd.init.mk>

.include "${.CURDIR}/../common/Makefile.inc"
.include "${.CURDIR}/../common/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"

# Might end in "-new" in GNU makefile
XPROG=		${PROG:c++filt=cxxfilt}
BUPROG=		${G_PROGRAMS:M${XPROG}*:S/-/_/}

SRCS=		${G_${BUPROG}_OBJECTS:.o=.c} \
		${G_${BUPROG}_DEPENDENCIES:M*.o:.o=.c}
MAN=		${G_man_MANS:M${PROG}.1}


.if !empty(G_${BUPROG}_DEPENDENCIES:M*/libopcodes*)
PROGDPLIBS+=	opcodes	${TOP}/${BFDSUBDIR}/libopcodes
.endif

.if !empty(G_${BUPROG}_DEPENDENCIES:M*/libbfd*)
PROGDPLIBS+=	bfd	${TOP}/${BFDSUBDIR}/libbfd
.endif

.if !empty(G_${BUPROG}_DEPENDENCIES:M*/libiberty*)
PROGDPLIBS+=	iberty	${TOP}/${BFDSUBDIR}/libiberty
.endif

.PATH: ${DIST}/binutils ${DIST}/binutils/doc

.include <bsd.prog.mk>

LDADD+=		-lintl -lz -lm
DPADD+=		${LIBINTL} ${LIBZ} ${LIBM}

# Override the .y.c and .y.l rules *after* <bsd.prog.mk>
.y.c .l.c: