Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (66 sloc) 2.598 kB
6d5ab86 Standardize header comments of top-level Makefiles.
Misha Brukman authored
1 #===-- Makefile.common - Common make rules for LLVM --------*- Makefile -*--===#
9b8f542 Removed trailing whitespace from Makefiles.
Misha Brukman authored
2 #
d8846c1 Added LLVM copyright notice.
John Criswell authored
3 # The LLVM Compiler Infrastructure
4 #
57360d1 remove attributions from the rest of the llvm makefiles.
Chris Lattner authored
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
9b8f542 Removed trailing whitespace from Makefiles.
Misha Brukman authored
7 #
6d5ab86 Standardize header comments of top-level Makefiles.
Misha Brukman authored
8 #===------------------------------------------------------------------------===#
0095054 Initial revision
Chris Lattner authored
9 #
10 # This file is included by all of the LLVM makefiles. This file defines common
36bc642 The word `dependence' and its derivatives have no `a'.
Misha Brukman authored
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.
0095054 Initial revision
Chris Lattner authored
14 #
c214e71 Simplified significantly by pulling out local configuration options
Vikram S. Adve authored
15 # The following functionality can be set by setting incoming variables.
16 # The variable $(LEVEL) *must* be set:
0095054 Initial revision
Chris Lattner authored
17 #
9b8f542 Removed trailing whitespace from Makefiles.
Misha Brukman authored
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
0095054 Initial revision
Chris Lattner authored
20 # example, ../.. for two levels deep.
21 #
22 # 2. DIRS - A list of subdirectories to be built. Fake targets are set up
a8abc22 Add support for the new PARALLEL_DIRS option
Chris Lattner authored
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
25 # built in order.
0095054 Initial revision
Chris Lattner authored
26 #
a8abc22 Add support for the new PARALLEL_DIRS option
Chris Lattner authored
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.
30 #
31 # 4. Source - If specified, this sets the source code filenames. If this
9b8f542 Removed trailing whitespace from Makefiles.
Misha Brukman authored
32 # is not set, it defaults to be all of the .cpp, .c, .y, and .l files
89e369a @ddunbar [docs] Remove unsupported references to ExtraSource variable.
ddunbar authored
33 # in the current directory.
0095054 Initial revision
Chris Lattner authored
34 #
694c5df Add facilities for building source that is outside of the current dir…
Chris Lattner authored
35 # 5. SourceDir - If specified, this specifies a directory that the source files
36 # are in, if they are not in the current directory. This should include a
37 # trailing / character.
38 #
7a73b80 Merged in autoconf branch. This provides configuration via the autoconf
John Criswell authored
39 # 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree.
584dd18 Added documentation for the project options
Dinakar Dhurjati authored
40 #
cf61b12 Update comments to reflect new variable names. Patch contributed by
Reid Spencer authored
41 # 8. PROJ_SRC_DIR - The directory which contains the current set of Makefiles
7a73b80 Merged in autoconf branch. This provides configuration via the autoconf
John Criswell authored
42 # and usually the source code too (unless SourceDir is set).
43 #
cf61b12 Update comments to reflect new variable names. Patch contributed by
Reid Spencer authored
44 # 9. PROJ_SRC_ROOT - The root directory of the source code being compiled.
7a73b80 Merged in autoconf branch. This provides configuration via the autoconf
John Criswell authored
45 #
cf61b12 Update comments to reflect new variable names. Patch contributed by
Reid Spencer authored
46 # 10. PROJ_OBJ_DIR - The directory where object code should be placed.
7a73b80 Merged in autoconf branch. This provides configuration via the autoconf
John Criswell authored
47 #
cf61b12 Update comments to reflect new variable names. Patch contributed by
Reid Spencer authored
48 # 11. PROJ_OBJ_ROOT - The root directory for where object code should be
7a73b80 Merged in autoconf branch. This provides configuration via the autoconf
John Criswell authored
49 # placed.
50 #
51 # For building,
cf61b12 Update comments to reflect new variable names. Patch contributed by
Reid Spencer authored
52 # LLVM, LLVM_SRC_ROOT = PROJ_SRC_ROOT
af06a08 Make sure to create the directory before we cram a .bc file into it
Chris Lattner authored
53 #
d60aede Add makefile-mode flag for emacs.
Vikram S. Adve authored
54 #===-----------------------------------------------------------------------====
0095054 Initial revision
Chris Lattner authored
55
2a6530f Added the OPTIONAL_DIRS variable for specifying optional directories …
John Criswell authored
56 #
c214e71 Simplified significantly by pulling out local configuration options
Vikram S. Adve authored
57 # Configuration file to set paths specific to local installation of LLVM
9b8f542 Removed trailing whitespace from Makefiles.
Misha Brukman authored
58 #
6ca9e44 Make this file capable of being used by both LLVM and its projects
Reid Spencer authored
59 ifndef LLVM_OBJ_ROOT
c214e71 Simplified significantly by pulling out local configuration options
Vikram S. Adve authored
60 include $(LEVEL)/Makefile.config
6ca9e44 Make this file capable of being used by both LLVM and its projects
Reid Spencer authored
61 else
62 include $(LLVM_OBJ_ROOT)/Makefile.config
63 endif
c214e71 Simplified significantly by pulling out local configuration options
Vikram S. Adve authored
64
4bb13b8 Factor platform specific makefile directives out into their own makefile
Chris Lattner authored
65 #
7f33695 Checkin of autoconf-style object root.
John Criswell authored
66 # Include all of the build rules used for making LLVM
8bff509 Modified Makefile.common to handle compilation of projects inside and…
John Criswell authored
67 #
7f33695 Checkin of autoconf-style object root.
John Criswell authored
68 include $(LLVM_SRC_ROOT)/Makefile.rules
1ddb6b6 Add new cleandeps target, to allow easy cleaning out of .d files
Chris Lattner authored
69
Something went wrong with that request. Please try again.