[cfe-commits] r98399 - in /cfe/trunk: lib/AST/Makefile lib/Analysis/Makefile lib/Checker/Makefile lib/CodeGen/Makefile lib/Frontend/Makefile lib/Index/Makefile lib/Lex/Makefile lib/Parse/Makefile lib/Rewrite/Makefile lib/Sema/Makefile tools/CIndex/Makefile tools/driver/Makefile
Jeffrey Yasskin
jyasskin at google.com
Fri Mar 12 14:55:16 PST 2010
Author: jyasskin
Date: Fri Mar 12 16:55:16 2010
New Revision: 98399
URL: http://llvm.org/viewvc/llvm-project?rev=98399&view=rev
Log:
Allow users to set CPPFLAGS and CXXFLAGS on the make command line.
Tested: make CPPFLAGS=-m64 CXXFLAGS=-m64 -j8 && (cd tools/clang;make test)
Modified:
cfe/trunk/lib/AST/Makefile
cfe/trunk/lib/Analysis/Makefile
cfe/trunk/lib/Checker/Makefile
cfe/trunk/lib/CodeGen/Makefile
cfe/trunk/lib/Frontend/Makefile
cfe/trunk/lib/Index/Makefile
cfe/trunk/lib/Lex/Makefile
cfe/trunk/lib/Parse/Makefile
cfe/trunk/lib/Rewrite/Makefile
cfe/trunk/lib/Sema/Makefile
cfe/trunk/tools/CIndex/Makefile
cfe/trunk/tools/driver/Makefile
Modified: cfe/trunk/lib/AST/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Makefile (original)
+++ cfe/trunk/lib/AST/Makefile Fri Mar 12 16:55:16 2010
@@ -15,7 +15,7 @@
LIBRARYNAME := clangAST
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Analysis/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/Makefile (original)
+++ cfe/trunk/lib/Analysis/Makefile Fri Mar 12 16:55:16 2010
@@ -15,7 +15,7 @@
LIBRARYNAME := clangAnalysis
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Checker/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/Makefile (original)
+++ cfe/trunk/lib/Checker/Makefile Fri Mar 12 16:55:16 2010
@@ -15,7 +15,7 @@
LIBRARYNAME := clangChecker
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/CodeGen/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Makefile (original)
+++ cfe/trunk/lib/CodeGen/Makefile Fri Mar 12 16:55:16 2010
@@ -16,9 +16,9 @@
LIBRARYNAME := clangCodeGen
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
ifdef CLANG_VENDOR
-CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
+CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
endif
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Frontend/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/Makefile (original)
+++ cfe/trunk/lib/Frontend/Makefile Fri Mar 12 16:55:16 2010
@@ -11,7 +11,7 @@
LIBRARYNAME := clangFrontend
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Index/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Index/Makefile (original)
+++ cfe/trunk/lib/Index/Makefile Fri Mar 12 16:55:16 2010
@@ -18,10 +18,10 @@
BUILD_ARCHIVE = 1
ifeq ($(ARCH),PowerPC)
-CXXFLAGS += -maltivec
+CXX.Flags += -maltivec
endif
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Lex/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Makefile (original)
+++ cfe/trunk/lib/Lex/Makefile Fri Mar 12 16:55:16 2010
@@ -18,10 +18,10 @@
BUILD_ARCHIVE = 1
ifeq ($(ARCH),PowerPC)
-CXXFLAGS += -maltivec
+CXX.Flags += -maltivec
endif
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Parse/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Makefile (original)
+++ cfe/trunk/lib/Parse/Makefile Fri Mar 12 16:55:16 2010
@@ -15,7 +15,7 @@
LIBRARYNAME := clangParse
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Rewrite/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/Makefile (original)
+++ cfe/trunk/lib/Rewrite/Makefile Fri Mar 12 16:55:16 2010
@@ -15,7 +15,7 @@
LIBRARYNAME := clangRewrite
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/lib/Sema/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Makefile (original)
+++ cfe/trunk/lib/Sema/Makefile Fri Mar 12 16:55:16 2010
@@ -16,7 +16,7 @@
LIBRARYNAME := clangSema
BUILD_ARCHIVE = 1
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
include $(LEVEL)/Makefile.common
Modified: cfe/trunk/tools/CIndex/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/Makefile (original)
+++ cfe/trunk/tools/CIndex/Makefile Fri Mar 12 16:55:16 2010
@@ -10,7 +10,7 @@
LEVEL = ../../../..
LIBRARYNAME = CIndex
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
# Include this here so we can get the configuration of the targets
# that have been configured for construction. We have to do this
Modified: cfe/trunk/tools/driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/Makefile?rev=98399&r1=98398&r2=98399&view=diff
==============================================================================
--- cfe/trunk/tools/driver/Makefile (original)
+++ cfe/trunk/tools/driver/Makefile Fri Mar 12 16:55:16 2010
@@ -12,7 +12,7 @@
ifndef CLANG_IS_PRODUCTION
TOOLALIAS = clang++
endif
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
# Clang tool has no plugins, optimize startup time.
TOOL_NO_EXPORTS = 1
More information about the cfe-commits
mailing list