python3: update to 3.11.10
[openadk.git] / package / binutils / Makefile
blob27748b0d1de6a7adcc7c2a0ba4c4ede283d4fcdb
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
5 include ${ADK_TOPDIR}/toolchain/binutils/Makefile.inc
7 PKG_NAME:= binutils
8 PKG_DESCR:= binary utilities (nm, objdump, as, ..)
9 PKG_SECTION:= dev/tools
10 PKG_DEPENDS:= libbfd
11 PKG_LIBNAME:= libbfd
12 PKG_OPTS:= dev
14 PKG_SUBPKGS:= BINUTILS LIBBFD
15 PKGSD_LIBBFD:= binary file descriptor library
16 PKGSC_LIBBFD:= libs/misc
18 PKG_HOST_DEPENDS:= !cygwin
20 include ${ADK_TOPDIR}/mk/package.mk
22 $(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 $(eval $(call PKG_template,LIBBFD,libbfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBFD},${PKGSD_LIBBFD},${PKGSC_LIBBFD},${PKG_OPTS}))
25 ifeq ($(ADK_TARGET_ARCH_BFIN),y)
26 TARGET_CFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS))
27 TARGET_CXXFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS))
28 endif
30 TARGET_CFLAGS+= -fPIC
31 CONFIGURE_ENV+= ac_cv_prog_MAKEINFO=missing
33 ifeq ($(ADK_TARGET_ARCH_SH)$(ADK_TARGET_ARCH_X86_64),)
34 CONFIGURE_ARGS+= --disable-multilib
35 else
36 CONFIGURE_ARGS+= --enable-multilib
37 endif
38 CONFIGURE_ARGS+= --disable-werror \
39 --disable-gprofng \
40 --disable-gdb \
41 --disable-sim \
42 --disable-install-libiberty \
43 --host=$(GNU_TARGET_NAME) \
44 --target=$(GNU_TARGET_NAME)
46 libbfd-install:
47 ${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
48 $(CP) ${WRKINST}/usr/lib/*.so* ${IDIR_LIBBFD}/usr/lib
49 # for oprofile
50 ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/lib/binutils
51 $(CP) ${WRKBUILD}/libiberty/libiberty.a \
52 ${STAGING_TARGET_DIR}/usr/lib/binutils
54 binutils-install:
55 ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
56 ${INSTALL_BIN} ${WRKINST}/usr/bin/{ar,as,ld,strip,strings,size,nm} \
57 ${IDIR_BINUTILS}/usr/bin/
58 ${INSTALL_BIN} ${WRKINST}/usr/bin/{objcopy,ranlib,readelf,objdump} \
59 ${IDIR_BINUTILS}/usr/bin/
61 include ${ADK_TOPDIR}/mk/pkg-bottom.mk