b90ad9f92649bc5853b469846250fd64c6ad4637
[oota-llvm.git] / examples / ModuleMaker / Makefile.common
1 #
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.
5 #
6 LLVM_OBJ_ROOT=$(LEVEL)/../..
7
8 #
9 # Grab the LLVM configuration file.
10 #
11 include $(LEVEL)/../../Makefile.config
12
13 #
14 # Reconfigure the source directories
15 #
16 BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker
17 BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
18
19 #
20 # Include LLVM's build rules.
21 #
22 include $(LLVM_SRC_ROOT)/Makefile.rules
23