1 #===-- Makefile.common - Common make rules for LLVM --------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 # This file is included by all of the LLVM makefiles. This file defines common
11 # rules to do things like compile a .cpp file or generate dependency info.
12 # These are platform dependent, so this is the file used to specify these
13 # system dependent operations.
15 # The following functionality can be set by setting incoming variables.
16 # The variable $(LEVEL) *must* be set:
18 # 1. LEVEL - The level of the current subdirectory from the top of the
19 # source directory. This level should be expressed as a path, for
20 # example, ../.. for two levels deep.
22 # 2. DIRS - A list of subdirectories to be built. Fake targets are set up
23 # so that each of the targets "all", "install", and "clean" each build
24 # the subdirectories before the local target. DIRS are guaranteed to be
27 # 3. PARALLEL_DIRS - A list of subdirectories to be built, but that may be
28 # built in any order. All DIRS are built in order before PARALLEL_DIRS are
29 # built, which are then built in any order.
31 # 4. Source - If specified, this sets the source code filenames. If this
32 # is not set, it defaults to be all of the .cpp, .c, .y, and .l files
33 # in the current directory. Also, if you want to build files in addition
34 # to the local files, you can use the ExtraSource variable
36 # 5. SourceDir - If specified, this specifies a directory that the source files
37 # are in, if they are not in the current directory. This should include a
38 # trailing / character.
40 # 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree.
42 # 8. BUILD_SRC_DIR - The directory which contains the current set of Makefiles
43 # and usually the source code too (unless SourceDir is set).
45 # 9. BUILD_SRC_ROOT - The root directory of the source code being compiled.
47 # 10. BUILD_OBJ_DIR - The directory where object code should be placed.
49 # 11. BUILD_OBJ_ROOT - The root directory for where object code should be
53 # LLVM, LLVM_SRC_ROOT = BUILD_SRC_ROOT
55 #===-----------------------------------------------------------------------====
58 # Configuration file to set paths specific to local installation of LLVM
60 include $(LEVEL)/Makefile.config
63 # Include all of the build rules used for making LLVM
65 include $(LLVM_SRC_ROOT)/Makefile.rules