blob: f250651ed7e258fb5a927fcef4299c185385a5de [file] [log] [blame]
Daniel Dunbar3ede8d02009-03-02 19:59:07 +00001##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9LEVEL = ../../../..
10
Daniel Dunbar7ec3daf2009-03-24 03:07:05 +000011TOOLNAME = clang
Daniel Dunbarf4961da2009-11-19 00:21:33 +000012TOOLALIAS = clang++
Douglas Gregora393e9e2009-03-16 23:06:59 +000013CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000014CXXFLAGS = -fno-rtti
15
Daniel Dunbar073777f2009-03-24 03:00:12 +000016# This tool has no plugins, optimize startup time.
17TOOL_NO_EXPORTS = 1
18
Daniel Dunbar4ad4b3e2009-03-12 08:55:43 +000019# FIXME: It is unfortunate we need to pull in the bitcode reader and
20# writer just to get the serializer stuff used by clangBasic.
21LINK_COMPONENTS := system support bitreader bitwriter
Daniel Dunbarc88aa792009-11-30 07:18:13 +000022USEDLIBS = clangDriver.a clangBasic.a
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000023
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000024include $(LEVEL)/Makefile.common
Daniel Dunbarf44c5852009-09-22 22:31:13 +000025
26# Translate make variable to define when building a "production" clang.
27ifdef CLANG_IS_PRODUCTION
28CPP.Defines += -DCLANG_IS_PRODUCTION
29endif
30