Reid Spencer | 8fd3bca | 2004-08-10 16:27:08 +0000 | [diff] [blame] | 1 | ##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===## |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file was developed by the LLVM research group and is distributed under |
| 6 | # the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../.. |
| 10 | TOOLNAME = llvmc |
Chris Lattner | f8625d9 | 2006-06-21 17:26:13 +0000 | [diff] [blame] | 11 | USEDLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a |
Reid Spencer | cc97cfc | 2005-05-19 00:52:28 +0000 | [diff] [blame] | 12 | CONFIG_FILES = c cpp ll |
Reid Spencer | 59524a5 | 2006-04-12 20:56:12 +0000 | [diff] [blame] | 13 | EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs |
Chris Lattner | 0465fa9 | 2006-07-07 00:46:19 +0000 | [diff] [blame] | 14 | REQUIRES_EH := 1 |
Reid Spencer | cc97cfc | 2005-05-19 00:52:28 +0000 | [diff] [blame] | 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)" |
Reid Spencer | 8fd3bca | 2004-08-10 16:27:08 +0000 | [diff] [blame] | 28 | |
| 29 | include $(LEVEL)/Makefile.common |
Reid Spencer | c9b37ee | 2004-11-24 00:01:57 +0000 | [diff] [blame] | 30 | |
| 31 | install:: |
Reid Spencer | bdf6a39 | 2005-01-16 02:21:29 +0000 | [diff] [blame] | 32 | $(Echo) Installing additional C++ configuration clones |
Reid Spencer | cc97cfc | 2005-05-19 00:52:28 +0000 | [diff] [blame] | 33 | $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++ |
| 34 | $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx |