aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc/Makefile
blob: b9513646c77189e38f26c6d3f9b2f29d1846ada1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===##
# 
#                     The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
# 
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvmc
LINK_COMPONENTS = support system core bitreader
CONFIG_FILES = c cpp ll st
EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
REQUIRES_EH := 1

# 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)\"" \
	   -DLLVMCC1PLUS="\"$(LLVMCC1PLUS)\""

include $(LEVEL)/Makefile.common

install::
	$(Echo) Installing additional C++ configuration clones
	$(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/c++
	$(Verb)$(DataInstall) $(PROJ_SRC_DIR)/cpp $(PROJ_etcdir)/cxx