Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. PKG_NAME:= llvm
  5. PKG_VERSION:= 2.9
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 793138412d2af2c7c7f54615f8943771
  8. PKG_DESCR:= collection of modular and reusable compiler and toolchain technologies
  9. PKG_SECTION:= lang
  10. PKG_URL:= http://llvm.org/
  11. PKG_SITES:= http://llvm.org/releases/2.9/
  12. PKG_CFLINE_LLVM:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
  13. PKG_HOST_DEPENDS:= !darwin
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  15. include $(TOPDIR)/mk/package.mk
  16. TARGET_CFLAGS:= $(filter-out -fhonour-copts,$(TARGET_CFLAGS))
  17. # disable honour cflags stuff
  18. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  19. $(eval $(call PKG_template,LLVM,llvm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. do-configure:
  24. mkdir -p $(WRKBUILD)/BuildTools
  25. (cd $(WRKBUILD)/BuildTools; env ac_cv_build_exeext="" ../configure ${CONFIGURE_TRIPLE} --prefix=/usr)
  26. do-build:
  27. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools
  28. do-install:
  29. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(STAGING_TARGET_DIR) install
  30. llvm-install:
  31. $(INSTALL_DIR) $(IDIR_LLVM)/usr/bin
  32. include ${TOPDIR}/mk/pkg-bottom.mk