blob: 962e3fd1bb1b6198bd0c76770a4f30cdb47dc0de [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001LEVEL = ../../..
Daniel Dunbard69bacc2008-10-21 23:49:24 +00002TOOLNAME = clang
Douglas Gregora393e9e2009-03-16 23:06:59 +00003CPPFLAGS += -I$(PROJ_SRC_DIR)/../include -I$(PROJ_OBJ_DIR)/../include
Reid Spencer5f016e22007-07-11 17:01:13 +00004CXXFLAGS = -fno-rtti
5
Chris Lattnerb06b0122009-02-26 17:48:04 +00006# Clang has no plugins, optimize startup time.
7TOOL_NO_EXPORTS = 1
8
Daniel Dunbard69bacc2008-10-21 23:49:24 +00009# Include this here so we can get the configuration of the targets
10# that have been configured for construction. We have to do this
11# early so we can set up LINK_COMPONENTS before including Makefile.rules
12include $(LEVEL)/Makefile.config
Reid Spencer5f016e22007-07-11 17:01:13 +000013
Daniel Dunbar6c308cc2008-10-24 06:24:13 +000014LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
Daniel Dunbard69bacc2008-10-21 23:49:24 +000015USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a \
Daniel Dunbare1bd4e62009-03-02 06:16:29 +000016 clangFrontend.a clangAST.a clangParse.a clangLex.a \
Daniel Dunbar6c308cc2008-10-24 06:24:13 +000017 clangBasic.a
Daniel Dunbard69bacc2008-10-21 23:49:24 +000018
19include $(LLVM_SRC_ROOT)/Makefile.rules