2002-07-09 12:04:21 +00:00
|
|
|
#===-- Makefile.common - Common make rules for LLVM -------*- makefile -*--====
|
2001-06-06 20:29:01 +00:00
|
|
|
#
|
|
|
|
# This file is included by all of the LLVM makefiles. This file defines common
|
2003-08-21 22:02:18 +00:00
|
|
|
# rules to do things like compile a .cpp file or generate dependency info.
|
|
|
|
# These are platform dependent, so this is the file used to specify these
|
|
|
|
# system dependent operations.
|
2001-06-06 20:29:01 +00:00
|
|
|
#
|
2002-08-29 23:28:46 +00:00
|
|
|
# The following functionality can be set by setting incoming variables.
|
|
|
|
# The variable $(LEVEL) *must* be set:
|
2001-06-06 20:29:01 +00:00
|
|
|
#
|
|
|
|
# 1. LEVEL - The level of the current subdirectory from the top of the
|
|
|
|
# MagicStats view. 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
|
2002-09-18 03:22:27 +00:00
|
|
|
# so that each of the targets "all", "install", and "clean" each build
|
|
|
|
# the subdirectories before the local target. DIRS are guaranteed to be
|
|
|
|
# built in order.
|
2001-06-06 20:29:01 +00:00
|
|
|
#
|
2002-09-18 03:22:27 +00:00
|
|
|
# 3. PARALLEL_DIRS - A list of subdirectories to be built, but that may be
|
|
|
|
# built in any order. All DIRS are built in order before PARALLEL_DIRS are
|
|
|
|
# built, which are then built in any order.
|
|
|
|
#
|
|
|
|
# 4. Source - If specified, this sets the source code filenames. If this
|
2001-06-06 20:29:01 +00:00
|
|
|
# is not set, it defaults to be all of the .cpp, .c, .y, and .l files
|
2001-10-18 01:48:09 +00:00
|
|
|
# in the current directory. Also, if you want to build files in addition
|
|
|
|
# to the local files, you can use the ExtraSource variable
|
2001-06-06 20:29:01 +00:00
|
|
|
#
|
2003-05-15 21:28:55 +00:00
|
|
|
# 5. SourceDir - If specified, this specifies a directory that the source files
|
|
|
|
# are in, if they are not in the current directory. This should include a
|
|
|
|
# trailing / character.
|
|
|
|
#
|
2003-06-30 21:59:07 +00:00
|
|
|
# 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree.
|
2003-05-29 21:49:00 +00:00
|
|
|
#
|
2003-06-30 21:59:07 +00:00
|
|
|
# 8. BUILD_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.
|
|
|
|
#
|
|
|
|
# 10. BUILD_OBJ_DIR - The directory where object code should be placed.
|
|
|
|
#
|
|
|
|
# 11. BUILD_OBJ_ROOT - The root directory for where object code should be
|
|
|
|
# placed.
|
|
|
|
#
|
|
|
|
# For building,
|
2003-08-21 22:23:49 +00:00
|
|
|
# LLVM, LLVM_SRC_ROOT = BUILD_SRC_ROOT
|
2003-08-15 03:02:52 +00:00
|
|
|
#
|
2002-07-09 12:04:21 +00:00
|
|
|
#===-----------------------------------------------------------------------====
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2003-06-27 16:58:44 +00:00
|
|
|
#
|
2002-08-29 23:28:46 +00:00
|
|
|
# Configuration file to set paths specific to local installation of LLVM
|
|
|
|
#
|
|
|
|
include $(LEVEL)/Makefile.config
|
|
|
|
|
2002-09-13 22:14:47 +00:00
|
|
|
#
|
2003-09-06 14:44:17 +00:00
|
|
|
# Include all of the build rules used for making LLVM
|
2003-06-11 13:55:44 +00:00
|
|
|
#
|
2003-09-06 14:44:17 +00:00
|
|
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
2003-08-18 17:27:40 +00:00
|
|
|
|