add_subdirectory(include)
add_subdirectory(lib)
-add_subdirectory(Driver)
add_subdirectory(tools)
# TODO: docs.
LEVEL = ../..
-DIRS := include lib Driver docs tools
+DIRS := include lib tools docs
include $(LEVEL)/Makefile.common
$(Verb) etags `find . -type f -name \*.h | grep -v /lib/Headers | grep -v /test/` `find . -type f -name \*.cpp | grep -v /lib/Headers | grep -v /test/`
cscope.files:
- find Driver lib include -name '*.cpp' \
+ find tools lib include -name '*.cpp' \
-or -name '*.def' \
-or -name '*.td' \
-or -name '*.h' > cscope.files
+add_subdirectory(clang-cc)
add_subdirectory(driver)
##===----------------------------------------------------------------------===##
LEVEL := ../../..
-DIRS := ccc driver
+DIRS := clang-cc ccc driver
include $(LEVEL)/Makefile.common
selectiondag
)
-add_clang_executable(clang
+add_clang_executable(clang-cc
AnalysisConsumer.cpp
ASTConsumers.cpp
Backend.cpp
-LEVEL = ../../..
+##===- tools/clang-cc/Makefile -----------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+LEVEL = ../../../..
+
TOOLNAME = clang-cc
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../include -I$(PROJ_OBJ_DIR)/../include
+CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
CXXFLAGS = -fno-rtti
# Clang has no plugins, optimize startup time.
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
CXXFLAGS = -fno-rtti
+# This tool has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
+
# 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
USEDLIBS = clangDriver.a clangBasic.a
-# This tool has no plugins, optimize startup time.
-TOOL_NO_EXPORTS = 1
-
include $(LEVEL)/Makefile.common