Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_DESCR:= binary utilities (nm, objdump, as, ..)
  6. PKG_SECTION:= lang
  7. PKG_DEPENDS:= libbfd
  8. # subpackage
  9. PKG_NAME_LIBBFD:= libbfd
  10. PKG_DESCR_LIBBFD:= bfd library
  11. PKG_SECTION_LIBBFD:= libs
  12. PKG_HOST_DEPENDS:= !cygwin
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. $(eval $(call PKG_template,LIBBFD,${PKG_NAME_LIBBFD},${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_LIBBFD},${PKG_SECTION_LIBBFD}))
  16. TCFLAGS+= -fPIC
  17. CONFIGURE_ARGS+= --disable-werror \
  18. --host=$(REAL_GNU_TARGET_NAME) \
  19. --target=$(REAL_GNU_TARGET_NAME)
  20. post-install:
  21. ${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
  22. $(CP) ${WRKINST}/usr/lib/*.so ${IDIR_LIBBFD}/usr/lib
  23. ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
  24. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ar,as,ld,strip,size,nm} \
  25. ${IDIR_BINUTILS}/usr/bin/
  26. ${INSTALL_BIN} ${WRKINST}/usr/bin/{objcopy,ranlib,readelf,objdump} \
  27. ${IDIR_BINUTILS}/usr/bin/
  28. include ${TOPDIR}/mk/pkg-bottom.mk