Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= llvm
  5. PKG_VERSION:= 3.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 46ed668a1ce38985120dbf6344cf6116
  8. PKG_DESCR:= collection of modular and reusable compiler and toolchain technologies
  9. PKG_SECTION:= dev/lang
  10. PKG_URL:= http://llvm.org/
  11. PKG_SITES:= http://llvm.org/releases/3.4/
  12. PKG_LIBC_DEPENDS:= glibc musl
  13. PKG_HOST_DEPENDS:= !darwin
  14. PKG_ARCH_DEPENDS:= mips x86 x86_64 arm
  15. PKG_CFLINE_LLVM:= depends on ADK_BROKEN
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.src.tar.gz
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. TARGET_CFLAGS:= $(filter-out -fhonour-copts,$(TARGET_CFLAGS))
  19. # disable honour cflags stuff
  20. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  21. $(eval $(call PKG_template,LLVM,llvm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIG_STYLE:= manual
  23. BUILD_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. XAKE_FLAGS+= VERBOSE=1
  26. do-configure:
  27. mkdir -p $(WRKBUILD)/BuildTools
  28. (cd $(WRKBUILD)/BuildTools; env ac_cv_build_exeext="" ../configure ${CONFIGURE_TRIPLE} --prefix=/usr --disable-docs)
  29. do-build:
  30. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools
  31. do-install:
  32. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(STAGING_TARGET_DIR) install
  33. env GCC_HONOUR_COPTS=s ${MAKE} -C ${WRKBUILD}/BuildTools DESTDIR=$(WRKINST) install
  34. cp ${WRKBUILD}/BuildTools/BuildTools/Release+Asserts/bin/llvm-config \
  35. $(STAGING_TARGET_DIR)/usr/bin
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk