2004-08-11 00:27:08 +08:00
|
|
|
##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-30 04:07:17 +08:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2004-08-11 00:27:08 +08:00
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL = ../..
|
|
|
|
TOOLNAME = llvmc
|
2007-05-06 17:29:57 +08:00
|
|
|
LINK_COMPONENTS = support system core bitreader
|
2006-12-13 16:09:48 +08:00
|
|
|
CONFIG_FILES = c cpp ll st
|
2006-04-13 04:56:12 +08:00
|
|
|
EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
|
2006-07-07 08:46:19 +08:00
|
|
|
REQUIRES_EH := 1
|
2005-05-19 08:52:28 +08:00
|
|
|
|
|
|
|
# The CompilerDriver needs to know the locations of several configured
|
|
|
|
# directories and paths. We define these as preprocessor symbols so they can
|
|
|
|
# be hard coded into the process based on the configuration. Only those
|
|
|
|
# configuration values not available in llvm/include/Config/config.h need to be
|
|
|
|
# specified here. These values are used as the replacements for the
|
|
|
|
# configuration file substitution variables such as %llvmgccdir%
|
|
|
|
CPPFLAGS = -DLLVMGCCDIR="\"$(LLVMGCCDIR)\"" \
|
|
|
|
-DLLVMGCCARCH="\"$(LLVMGCCARCH)\"" \
|
|
|
|
-DLLVMGCC="\"$(LLVMGCC)\"" \
|
|
|
|
-DLLVMGXX="\"$(LLVMGXX)\"" \
|
|
|
|
-DLLVMCC1="\"$(LLVMCC1)\"" \
|
2006-08-17 04:31:44 +08:00
|
|
|
-DLLVMCC1PLUS="\"$(LLVMCC1PLUS)\""
|
2004-08-11 00:27:08 +08:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
2004-11-24 08:01:57 +08:00
|
|
|
|
|
|
|
install::
|
2005-01-16 10:21:29 +08:00
|
|
|
$(Echo) Installing additional C++ configuration clones
|
2005-05-19 08:52:28 +08:00
|
|
|
$(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++
|
|
|
|
$(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx
|