2009-03-02 22:59:07 +03:00
|
|
|
##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL = ../../../..
|
|
|
|
|
2009-03-24 06:07:05 +03:00
|
|
|
TOOLNAME = clang
|
2009-03-17 02:06:59 +03:00
|
|
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
2009-03-02 22:59:07 +03:00
|
|
|
CXXFLAGS = -fno-rtti
|
|
|
|
|
2009-03-24 06:00:12 +03:00
|
|
|
# This tool has no plugins, optimize startup time.
|
|
|
|
TOOL_NO_EXPORTS = 1
|
|
|
|
|
2009-03-12 11:55:43 +03:00
|
|
|
# FIXME: It is unfortunate we need to pull in the bitcode reader and
|
|
|
|
# writer just to get the serializer stuff used by clangBasic.
|
|
|
|
LINK_COMPONENTS := system support bitreader bitwriter
|
2009-03-18 05:11:26 +03:00
|
|
|
USEDLIBS = clangDriver.a clangBasic.a
|
2009-03-02 22:59:07 +03:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
2009-09-23 02:31:13 +04:00
|
|
|
|
|
|
|
# Translate make variable to define when building a "production" clang.
|
|
|
|
ifdef CLANG_IS_PRODUCTION
|
|
|
|
CPP.Defines += -DCLANG_IS_PRODUCTION
|
|
|
|
endif
|
|
|
|
|