Makefile 989 B

1234567891011121314151617181920212223242526272829
  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/mpfr/Makefile.inc
  5. PKG_DESCR:= multi precision library
  6. PKG_SECTION:= libs
  7. PKG_URL:= http://www.mpfr.org/
  8. PKG_SUBPKGS:= MPFR MPFR_DEV
  9. PKGSC_MPFR_DEV:= devel
  10. PKGSD_MPFR_DEV:= mpfr headers
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,MPFR,mpfr,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. $(eval $(call PKG_template,MPFR_DEV,mpfr-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MPFR_DEV},${PKGSC_MPFR_DEV}))
  14. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  15. mpfr-install:
  16. ${INSTALL_DIR} ${IDIR_MPFR}/usr/lib
  17. ${CP} ${WRKINST}/usr/lib/libmpfr.so* ${IDIR_MPFR}/usr/lib
  18. mpfr-dev-install:
  19. ${INSTALL_DIR} ${IDIR_MPFR_DEV}/usr/include
  20. $(CP) $(WRKINST)/usr/include/* ${IDIR_MPFR_DEV}/usr/include
  21. include ${TOPDIR}/mk/pkg-bottom.mk