Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  14. include $(TOPDIR)/mk/package.mk
  15. TARGET_CFLAGS:= $(filter-out -fhonour-copts,$(TARGET_CFLAGS))
  16. # disable honour cflags stuff
  17. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  18. $(eval $(call PKG_template,LLVM,llvm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIG_STYLE:= manual
  20. BUILD_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. do-configure:
  23. mkdir -p $(WRKBUILD)/BuildTools
  24. (cd $(WRKBUILD)/BuildTools; env ac_cv_build_exeext="" ../configure ${CONFIGURE_TRIPLE} --prefix=/usr)
  25. do-build:
  26. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools
  27. do-install:
  28. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(STAGING_TARGET_DIR) install
  29. llvm-install:
  30. $(INSTALL_DIR) $(IDIR_LLVM)/usr/bin
  31. include ${TOPDIR}/mk/pkg-bottom.mk