Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. include ${TOPDIR}/toolchain/binutils/Makefile.inc
  5. PKG_NAME:= binutils
  6. PKG_DESCR:= binary utilities (nm, objdump, as, ..)
  7. PKG_SECTION:= dev/tools
  8. PKG_DEPENDS:= libbfd
  9. PKG_LIBNAME:= libbfd
  10. PKG_OPTS:= dev
  11. PKG_SUBPKGS:= BINUTILS LIBBFD
  12. PKGSD_LIBBFD:= binary file descriptor library
  13. PKGSC_LIBBFD:= libs/misc
  14. PKG_HOST_DEPENDS:= !cygwin
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBBFD,libbfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBFD},${PKGSD_LIBBFD},${PKGSC_LIBBFD},${PKG_OPTS}))
  18. ifeq ($(ADK_LINUX_SH)$(ADK_LINUX_X86_64),)
  19. CONFIGURE_ARGS+= --disable-multilib
  20. else
  21. CONFIGURE_ARGS+= --enable-multilib
  22. endif
  23. TARGET_CFLAGS+= -fPIC
  24. CONFIGURE_ARGS+= --disable-werror \
  25. --disable-install-libiberty \
  26. --host=$(GNU_TARGET_NAME) \
  27. --target=$(GNU_TARGET_NAME)
  28. # disable honour cflags stuff
  29. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  30. libbfd-install:
  31. ${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
  32. $(CP) ${WRKINST}/usr/lib/*.so* ${IDIR_LIBBFD}/usr/lib
  33. binutils-install:
  34. ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
  35. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ar,as,ld,strip,strings,size,nm} \
  36. ${IDIR_BINUTILS}/usr/bin/
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/{objcopy,ranlib,readelf,objdump} \
  38. ${IDIR_BINUTILS}/usr/bin/
  39. include ${TOPDIR}/mk/pkg-bottom.mk