Makefile 1.4 KB

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