X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=Makefile.common;h=ca8f33673ffbd33b7614ce4d2876ba72f8cc4d39;hp=ddbaf48c3cf25d1f49f31d3cb8631ab09e6db32b;hb=f70414f3d06cacd8a681bd756248ca71e50d1817;hpb=7f33695eac684bac5e925cf2039c8f9b001ceb7f diff --git a/Makefile.common b/Makefile.common index ddbaf48c3cf..ca8f33673ff 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,4 +1,11 @@ -#===-- Makefile.common - Common make rules for LLVM -------*- makefile -*--==== +#===-- Makefile.common - Common make rules for LLVM --------*- Makefile -*--===# +# +# The LLVM Compiler Infrastructure +# +# This file was developed by the LLVM research group and is distributed under +# the University of Illinois Open Source License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# # # This file is included by all of the LLVM makefiles. This file defines common # rules to do things like compile a .cpp file or generate dependency info. @@ -9,7 +16,7 @@ # The variable $(LEVEL) *must* be set: # # 1. LEVEL - The level of the current subdirectory from the top of the -# MagicStats view. This level should be expressed as a path, for +# source directory. This level should be expressed as a path, for # example, ../.. for two levels deep. # # 2. DIRS - A list of subdirectories to be built. Fake targets are set up @@ -32,25 +39,29 @@ # # 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree. # -# 8. BUILD_SRC_DIR - The directory which contains the current set of Makefiles +# 8. PROJ_SRC_DIR - The directory which contains the current set of Makefiles # and usually the source code too (unless SourceDir is set). # -# 9. BUILD_SRC_ROOT - The root directory of the source code being compiled. +# 9. PROJ_SRC_ROOT - The root directory of the source code being compiled. # -# 10. BUILD_OBJ_DIR - The directory where object code should be placed. +# 10. PROJ_OBJ_DIR - The directory where object code should be placed. # -# 11. BUILD_OBJ_ROOT - The root directory for where object code should be +# 11. PROJ_OBJ_ROOT - The root directory for where object code should be # placed. # # For building, -# LLVM, LLVM_SRC_ROOT = BUILD_SRC_ROOT +# LLVM, LLVM_SRC_ROOT = PROJ_SRC_ROOT # #===-----------------------------------------------------------------------==== # # Configuration file to set paths specific to local installation of LLVM # +ifndef LLVM_OBJ_ROOT include $(LEVEL)/Makefile.config +else +include $(LLVM_OBJ_ROOT)/Makefile.config +endif # # Include all of the build rules used for making LLVM