Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 1 | ##===- 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 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../../../.. |
| 10 | |
Daniel Dunbar | 7ec3daf | 2009-03-24 03:07:05 +0000 | [diff] [blame] | 11 | TOOLNAME = clang |
Daniel Dunbar | f4961da | 2009-11-19 00:21:33 +0000 | [diff] [blame] | 12 | TOOLALIAS = clang++ |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 13 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 14 | CXXFLAGS = -fno-rtti |
| 15 | |
Daniel Dunbar | 073777f | 2009-03-24 03:00:12 +0000 | [diff] [blame] | 16 | # This tool has no plugins, optimize startup time. |
| 17 | TOOL_NO_EXPORTS = 1 |
| 18 | |
Daniel Dunbar | 4ad4b3e | 2009-03-12 08:55:43 +0000 | [diff] [blame] | 19 | # FIXME: It is unfortunate we need to pull in the bitcode reader and |
| 20 | # writer just to get the serializer stuff used by clangBasic. |
| 21 | LINK_COMPONENTS := system support bitreader bitwriter |
Daniel Dunbar | c88aa79 | 2009-11-30 07:18:13 +0000 | [diff] [blame] | 22 | USEDLIBS = clangDriver.a clangBasic.a |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 23 | |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 24 | include $(LEVEL)/Makefile.common |
Daniel Dunbar | f44c585 | 2009-09-22 22:31:13 +0000 | [diff] [blame] | 25 | |
| 26 | # Translate make variable to define when building a "production" clang. |
| 27 | ifdef CLANG_IS_PRODUCTION |
| 28 | CPP.Defines += -DCLANG_IS_PRODUCTION |
| 29 | endif |
| 30 | |