Distribute CVS versions of lex files
[oota-llvm.git] / tools / llvmc / Makefile
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
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
12 CONFIG_FILES = c cpp ll
13 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
14
15 # The CompilerDriver needs to know the locations of several configured
16 # directories and paths. We define these as preprocessor symbols so they can 
17 # be hard coded into the process based on the configuration. Only those
18 # configuration values not available in llvm/include/Config/config.h need to be
19 # specified here. These values are used as the replacements for the
20 # configuration file substitution variables such as %llvmgccdir%
21 CPPFLAGS = -DLLVMGCCDIR="\"$(LLVMGCCDIR)\"" \
22            -DLLVMGCCARCH="\"$(LLVMGCCARCH)\"" \
23            -DLLVMGCC="\"$(LLVMGCC)\"" \
24            -DLLVMGXX="\"$(LLVMGXX)\"" \
25            -DLLVMCC1="\"$(LLVMCC1)\"" \
26            -DLLVMCC1PLUS="$(LLVMCC1PLUS)"
27
28 include $(LEVEL)/Makefile.common
29
30 install::
31         $(Echo) Installing additional C++ configuration clones
32         $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cc
33         $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++
34         $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx
35         $(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/C