2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE_VERSION
:=5687d8a26c08d089c60df2c92d048ab85bcdb2b9
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=git
://repo.or.cz
/llvm.git
15 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
16 BUILD_DIR_TOOLCHAIN
:=$(BUILD_DIR_HOST
)
18 include $(INCLUDE_DIR
)/toolchain-build.mk
20 ifeq ($(HOST_OS
),Darwin
)
21 DARWIN_VERSION
=$(shell sw_vers
-productVersion
)
22 DARWIN_MAJVERS
=$(firstword $(subst .
, ,$(DARWIN_VERSION
)))
25 DARWIN_VERSION
=$(DARWIN_VERSION
) \
26 DARWIN_MAJVERS
=$(DARWIN_MAJVERS
)
30 HOST_CONFIGURE_ARGS
+= \
31 --enable-optimized
--enable-assertions
34 @
-$(MAKE
) -C
$(HOST_BUILD_DIR
) $(HOST_MAKE_FLAGS
) uninstall
35 $(MAKE
) -C
$(HOST_BUILD_DIR
) $(HOST_MAKE_FLAGS
)
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
44 $(eval
$(call HostBuild
))