2004-04-24 08:10:56 +08:00
|
|
|
#===-- Makefile.common - Common make rules for LLVM --------*- Makefile -*--===#
|
2003-10-21 22:33:46 +08:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2004-04-24 08:10:56 +08:00
|
|
|
#===------------------------------------------------------------------------===#
|
2001-06-07 04:29:01 +08:00
|
|
|
#
|
|
|
|
# This file is included by all of the LLVM makefiles. This file defines common
|
2003-08-22 06:02:18 +08: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-07 04:29:01 +08:00
|
|
|
#
|
2002-08-30 07:28:46 +08:00
|
|
|
# The following functionality can be set by setting incoming variables.
|
|
|
|
# The variable $(LEVEL) *must* be set:
|
2001-06-07 04:29:01 +08:00
|
|
|
#
|
|
|
|
# 1. LEVEL - The level of the current subdirectory from the top of the
|
2004-10-30 08:57:52 +08:00
|
|
|
# source directory. This level should be expressed as a path, for
|
2001-06-07 04:29:01 +08:00
|
|
|
# example, ../.. for two levels deep.
|
|
|
|
#
|
|
|
|
# 2. DIRS - A list of subdirectories to be built. Fake targets are set up
|
2002-09-18 11:22:27 +08: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-07 04:29:01 +08:00
|
|
|
#
|
2002-09-18 11:22:27 +08: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-07 04:29:01 +08:00
|
|
|
# is not set, it defaults to be all of the .cpp, .c, .y, and .l files
|
2001-10-18 09:48:09 +08: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-07 04:29:01 +08:00
|
|
|
#
|
2003-05-16 05:28:55 +08: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-07-01 05:59:07 +08:00
|
|
|
# 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree.
|
2003-05-30 05:49:00 +08:00
|
|
|
#
|
2005-02-15 00:02:19 +08:00
|
|
|
# 8. PROJ_SRC_DIR - The directory which contains the current set of Makefiles
|
2003-07-01 05:59:07 +08:00
|
|
|
# and usually the source code too (unless SourceDir is set).
|
|
|
|
#
|
2005-02-15 00:02:19 +08:00
|
|
|
# 9. PROJ_SRC_ROOT - The root directory of the source code being compiled.
|
2003-07-01 05:59:07 +08:00
|
|
|
#
|
2005-02-15 00:02:19 +08:00
|
|
|
# 10. PROJ_OBJ_DIR - The directory where object code should be placed.
|
2003-07-01 05:59:07 +08:00
|
|
|
#
|
2005-02-15 00:02:19 +08:00
|
|
|
# 11. PROJ_OBJ_ROOT - The root directory for where object code should be
|
2003-07-01 05:59:07 +08:00
|
|
|
# placed.
|
|
|
|
#
|
|
|
|
# For building,
|
2005-02-15 00:02:19 +08:00
|
|
|
# LLVM, LLVM_SRC_ROOT = PROJ_SRC_ROOT
|
2003-08-15 11:02:52 +08:00
|
|
|
#
|
2002-07-09 20:04:21 +08:00
|
|
|
#===-----------------------------------------------------------------------====
|
2001-06-07 04:29:01 +08:00
|
|
|
|
2003-06-28 00:58:44 +08:00
|
|
|
#
|
2002-08-30 07:28:46 +08:00
|
|
|
# Configuration file to set paths specific to local installation of LLVM
|
|
|
|
#
|
2005-01-16 10:20:30 +08:00
|
|
|
ifndef LLVM_OBJ_ROOT
|
2002-08-30 07:28:46 +08:00
|
|
|
include $(LEVEL)/Makefile.config
|
2005-01-16 10:20:30 +08:00
|
|
|
else
|
|
|
|
include $(LLVM_OBJ_ROOT)/Makefile.config
|
|
|
|
endif
|
2002-08-30 07:28:46 +08:00
|
|
|
|
2002-09-14 06:14:47 +08:00
|
|
|
#
|
2003-09-06 22:44:17 +08:00
|
|
|
# Include all of the build rules used for making LLVM
|
2003-06-11 21:55:44 +08:00
|
|
|
#
|
2003-09-06 22:44:17 +08:00
|
|
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
2003-08-19 01:27:40 +08:00
|
|
|
|