opnsense-src/tools/driver/Makefile

37 lines
1.2 KiB
Makefile
Raw Normal View History

2009-06-02 13:58:47 -04:00
##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
2009-12-15 13:49:47 -05:00
#
2009-06-02 13:58:47 -04:00
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
2009-12-15 13:49:47 -05:00
#
2009-06-02 13:58:47 -04:00
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
TOOLNAME = clang
2010-01-23 06:10:26 -05:00
ifndef CLANG_IS_PRODUCTION
2009-11-19 04:00:00 -05:00
TOOLALIAS = clang++
2010-01-23 06:10:26 -05:00
endif
2009-06-02 13:58:47 -04:00
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
2009-12-15 13:49:47 -05:00
# Clang tool has no plugins, optimize startup time.
2009-06-02 13:58:47 -04:00
TOOL_NO_EXPORTS = 1
2009-12-15 13:49:47 -05:00
# Include this here so we can get the configuration of the targets that have
# been configured for construction. We have to do this early so we can set up
# LINK_COMPONENTS before including Makefile.rules
include $(LEVEL)/Makefile.config
LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
2010-02-16 04:31:36 -05:00
USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangSema.a \
clangChecker.a clangAnalysis.a clangRewrite.a clangAST.a \
clangParse.a clangLex.a clangBasic.a
2009-06-02 13:58:47 -04:00
2009-12-15 13:49:47 -05:00
include $(LLVM_SRC_ROOT)/Makefile.rules
2009-10-14 14:03:49 -04:00
# Translate make variable to define when building a "production" clang.
ifdef CLANG_IS_PRODUCTION
CPP.Defines += -DCLANG_IS_PRODUCTION
endif