summaryrefslogtreecommitdiff
path: root/cross/binutils/Makefile
diff options
context:
space:
mode:
authortv <tv>1999-01-04 22:37:29 +0000
committertv <tv>1999-01-04 22:37:29 +0000
commit1ac8c0ae893cce269b1164bb0d5d075a4e36279b (patch)
treef6d6b811a4c9cc20cd3b49a70a233e6958d1095b /cross/binutils/Makefile
parent531eb73376adf514ac2b79ec993c9774230ed45b (diff)
downloadpkgsrc-1ac8c0ae893cce269b1164bb0d5d075a4e36279b.tar.gz
Major `cross' category overhaul. Clean up the shared Makefiles; move all
binutils stuff (except gas) to a shared, multiple-target binutils build; reduce extract and compile times by being more specific with files and targets; update to egcs 1.1.1 with a diffball from NetBSD's src/gnu/dist tree; add 4.4BSD a.out archive support to binutils.
Diffstat (limited to 'cross/binutils/Makefile')
-rw-r--r--cross/binutils/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/cross/binutils/Makefile b/cross/binutils/Makefile
new file mode 100644
index 00000000000..60c2648dd26
--- /dev/null
+++ b/cross/binutils/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1 1999/01/04 22:37:31 tv Exp $
+#
+# GNU binutils configured to hold `as many targets as the cross system is
+# capable of using'. Configures and builds everything except gas, which
+# gets built at cross-pkg build time (it's target specific).
+
+DISTNAME= binutils-2.9.1
+PKGNAME= cross-binutils-2.9.1.0
+CATEGORIES= cross lang
+MASTER_SITES= ${MASTER_SITE_GNU}
+
+MAINTAINER= tv@netbsd.org
+HOMEPAGE= http://www.gnu.org/
+
+USE_CROSSBASE= yes
+USE_LIBTOOL= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-64-bit-bfd \
+ --enable-targets=${ENABLE_TARGETS_LIST}
+MAKE_ARGS+= CFLAGS="${CFLAGS}"
+ALL_TARGET= all-binutils all-gprof all-ld
+
+BINDIR= ${PREFIX}/libexec/binutils
+
+ENABLE_TARGETS= alpha-netbsd \
+ i386-cygwin32 i386-elf i386-go32 i386-linux \
+ i386-netbsd i386-netware \
+ m68k-elf m68k-netbsd m68k-sunos4 \
+ mips-dec-netbsd \
+ powerpc-eabi powerpcle-eabi \
+ sparc-netbsd sparc-solaris2 sparc-sunos4 \
+ sparc64-elf
+
+post-extract:
+ @${RM} -rf ${WRKSRC}/gas
+
+# we use MKDIR, not INSTALL_PROGRAM_DIR, deliberately.
+do-install:
+ ${MKDIR} ${BINDIR} ${PREFIX}/lib/ldscripts
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/addr2line ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ar ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/dlltool ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/gprof/gprof ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/ld/ld-new ${BINDIR}/ld
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/nlmconv ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/nm-new ${BINDIR}/nm
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objcopy ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/objdump ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/ranlib ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/size ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strings ${BINDIR}
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/strip-new ${BINDIR}/strip
+ @${LIBTOOL} ${INSTALL_PROGRAM} ${WRKSRC}/binutils/windres ${BINDIR}
+ @${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/bfd/libbfd.la ${PREFIX}/lib
+ @${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/opcodes/libopcodes.la ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/ld/ldscripts/* ${PREFIX}/lib/ldscripts
+
+.include "../../mk/bsd.pkg.mk"
+
+ENABLE_TARGETS_LIST!= ${ECHO} "${ENABLE_TARGETS}" | ${SED} "s/[ ][ ]*/,/g;s/^,*//"
+EXTRACT_BEFORE_ARGS:= -X ${FILESDIR}/exclude ${EXTRACT_BEFORE_ARGS}