mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 13:18:54 +01:00
19 lines
506 B
Makefile
19 lines
506 B
Makefile
# This is just a rough approximation of LLVM deps
|
|
LLVM_DEPS:=$(wildcard $(addprefix $(CFG_LLVM_SRC_DIR)/, \
|
|
* */*h */*/*h */*/*/*h */*cpp */*/*cpp */*/*/*cpp))
|
|
|
|
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)
|
|
$$(Q)make -C $$(CFG_LLVM_BUILD_DIR_$(1))
|
|
|
|
endif
|
|
|
|
endef
|
|
|
|
$(foreach target,$(CFG_TARGET_TRIPLES), \
|
|
$(eval $(call DEF_LLVM_RULES,$(target)))) |