bcm63xx: add missing bits from extirq support
[openwrt.git] / toolchain / llvm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=llvm
10 PKG_VERSION:=r83568
11 PKG_SOURCE_VERSION:=5687d8a26c08d089c60df2c92d048ab85bcdb2b9
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=git://repo.or.cz/llvm.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 BUILD_DIR_TOOLCHAIN:=$(BUILD_DIR_HOST)
17
18 include $(INCLUDE_DIR)/toolchain-build.mk
19
20 ifeq ($(HOST_OS),Darwin)
21 DARWIN_VERSION=$(shell sw_vers -productVersion)
22 DARWIN_MAJVERS=$(firstword $(subst ., ,$(DARWIN_VERSION)))
23
24 HOST_MAKE_FLAGS += \
25 DARWIN_VERSION=$(DARWIN_VERSION) \
26 DARWIN_MAJVERS=$(DARWIN_MAJVERS)
27
28 endif
29
30 HOST_CONFIGURE_ARGS += \
31 --enable-optimized --enable-assertions
32
33 define Host/Compile
34 @-$(MAKE) -C $(HOST_BUILD_DIR) $(HOST_MAKE_FLAGS) uninstall
35 $(MAKE) -C $(HOST_BUILD_DIR) $(HOST_MAKE_FLAGS)
36 endef
37
38 define Host/Install
39 rm -f $(BUILD_DIR_HOST)/llvm
40 ln -s llvm-$(PKG_VERSION) $(BUILD_DIR_HOST)/llvm
41 $(MAKE) -C $(HOST_BUILD_DIR) $(HOST_MAKE_FLAGS) install
42 endef
43
44 $(eval $(call HostBuild))
This page took 0.043356 seconds and 5 git commands to generate.