Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. include ${TOPDIR}/mk/package.mk
  8. $(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  9. TCFLAGS+= -fPIC
  10. CONFIGURE_STYLE= gnu
  11. CONFIGURE_ARGS+= --disable-werror
  12. BUILD_STYLE= auto
  13. INSTALL_STYLE= auto
  14. post-patch:
  15. ${PREVENT_PATCH} ${PATCH} ${WRKDIST} \
  16. ${TOPDIR}/toolchain/binutils/patches \*.patch
  17. post-install:
  18. ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/lib
  19. $(CP) ${WRKINST}/usr/lib/*.so ${IDIR_BINUTILS}/usr/lib
  20. ${INSTALL_DIR} ${IDIR_BINUTILS}/usr/bin
  21. ${INSTALL_BIN} ${WRKINST}/usr/bin/nm ${IDIR_BINUTILS}/usr/bin/
  22. ${INSTALL_BIN} ${WRKINST}/usr/bin/size ${IDIR_BINUTILS}/usr/bin/
  23. ${INSTALL_BIN} ${WRKINST}/usr/bin/ar ${IDIR_BINUTILS}/usr/bin/
  24. ${INSTALL_BIN} ${WRKINST}/usr/bin/as ${IDIR_BINUTILS}/usr/bin/
  25. ${INSTALL_BIN} ${WRKINST}/usr/bin/ld ${IDIR_BINUTILS}/usr/bin/
  26. ${INSTALL_BIN} ${WRKINST}/usr/bin/strip ${IDIR_BINUTILS}/usr/bin/
  27. ${INSTALL_BIN} ${WRKINST}/usr/bin/objdump ${IDIR_BINUTILS}/usr/bin/
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/objcopy ${IDIR_BINUTILS}/usr/bin/
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/ranlib ${IDIR_BINUTILS}/usr/bin/
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/readelf ${IDIR_BINUTILS}/usr/bin/
  31. include ${TOPDIR}/mk/pkg-bottom.mk