0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-29 18:06:44 +01:00
rust/mk/llvm.mk

19 lines
510 B
Makefile
Raw Normal View History

2011-11-02 01:09:44 +01:00
# This is just a rough approximation of LLVM deps
LLVM_DEPS:=$(wildcard $(addprefix $(CFG_LLVM_SRC_DIR)/, \
* */*h */*/*h */*/*/*h */*cpp */*/*cpp */*/*/*cpp))
2011-11-01 23:48:30 +01:00
define DEF_LLVM_RULES
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
ifeq ($(CFG_LLVM_ROOT),)
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS_$(1))
@$$(call E, make: llvm)
2011-11-03 20:17:37 +01:00
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1))
endif
endef
$(foreach target,$(CFG_TARGET_TRIPLES), \
$(eval $(call DEF_LLVM_RULES,$(target))))