blob: b90ad9f92649bc5853b469846250fd64c6ad4637 [file] [log] [blame]
Chris Lattner8ca0eeb2003-08-21 22:29:52 +00001#
John Criswella37fefd2003-09-06 15:03:24 +00002# 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.
Chris Lattner8ca0eeb2003-08-21 22:29:52 +00005#
John Criswella37fefd2003-09-06 15:03:24 +00006LLVM_OBJ_ROOT=$(LEVEL)/../..
Chris Lattner8ca0eeb2003-08-21 22:29:52 +00007
8#
John Criswella37fefd2003-09-06 15:03:24 +00009# Grab the LLVM configuration file.
Chris Lattner8ca0eeb2003-08-21 22:29:52 +000010#
John Criswella37fefd2003-09-06 15:03:24 +000011include $(LEVEL)/../../Makefile.config
12
13#
14# Reconfigure the source directories
15#
16BUILD_SRC_ROOT:=$(LLVM_SRC_ROOT)/projects/ModuleMaker
17BUILD_SRC_DIR := $(subst //,/,$(BUILD_SRC_ROOT)/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
18
19#
20# Include LLVM's build rules.
21#
22include $(LLVM_SRC_ROOT)/Makefile.rules
Chris Lattner8ca0eeb2003-08-21 22:29:52 +000023