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