Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | e692fc8 | 2007-12-29 20:07:17 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../.. |
| 10 | TOOLNAME = llvmc |
| 11 | LINK_COMPONENTS = support system core bitreader |
| 12 | CONFIG_FILES = c cpp ll st |
| 13 | EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs |
| 14 | REQUIRES_EH := 1 |
| 15 | |
| 16 | # The CompilerDriver needs to know the locations of several configured |
| 17 | # directories and paths. We define these as preprocessor symbols so they can |
| 18 | # be hard coded into the process based on the configuration. Only those |
| 19 | # configuration values not available in llvm/include/Config/config.h need to be |
| 20 | # specified here. These values are used as the replacements for the |
| 21 | # configuration file substitution variables such as %llvmgccdir% |
| 22 | CPPFLAGS = -DLLVMGCCDIR="\"$(LLVMGCCDIR)\"" \ |
| 23 | -DLLVMGCCARCH="\"$(LLVMGCCARCH)\"" \ |
| 24 | -DLLVMGCC="\"$(LLVMGCC)\"" \ |
| 25 | -DLLVMGXX="\"$(LLVMGXX)\"" \ |
| 26 | -DLLVMCC1="\"$(LLVMCC1)\"" \ |
| 27 | -DLLVMCC1PLUS="\"$(LLVMCC1PLUS)\"" |
| 28 | |
| 29 | include $(LEVEL)/Makefile.common |
| 30 | |
| 31 | install:: |
| 32 | $(Echo) Installing additional C++ configuration clones |
| 33 | $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++ |
| 34 | $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx |