2 # Configure the location of the LLVM object root. We know it is two
3 # directories up. The source tree location we do not know; let the LLVM
4 # Makefiles find it for us.
6 LLVM_OBJ_ROOT=$(LEVEL)/../..
9 # Grab the LLVM configuration file.
11 include $(LEVEL)/../../Makefile.config
14 # Reconfigure the source directories
16 BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker
17 BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
20 # Include LLVM's build rules.
22 include $(LLVM_SRC_ROOT)/Makefile.rules