| OLD | NEW | 
|   1 # The following variables will likely need to be modified, depending on where |   1 # The following variables will likely need to be modified, depending on where | 
|   2 # and how you built LLVM & Clang. They can be overridden in a command-line |   2 # and how you built LLVM & Clang. They can be overridden in a command-line | 
|   3 # invocation of make, like: |   3 # invocation of make, like: | 
|   4 # |   4 # | 
|   5 #   make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> ... |   5 #   make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> ... | 
|   6 # |   6 # | 
|   7  |   7  | 
|   8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This |   8 # LLVM_SRC_PATH is the path to the root of the checked out source code. This | 
|   9 # directory should contain the configure script, the include/ and lib/ |   9 # directory should contain the configure script, the include/ and lib/ | 
|  10 # directories of LLVM, Clang in tools/clang/, etc. |  10 # directories of LLVM, Clang in tools/clang/, etc. | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  23 $(info Using LLVM_BIN_PATH = $(LLVM_BIN_PATH)) |  23 $(info Using LLVM_BIN_PATH = $(LLVM_BIN_PATH)) | 
|  24 $(info -----------------------------------------------) |  24 $(info -----------------------------------------------) | 
|  25  |  25  | 
|  26 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` |  26 LLVM_CXXFLAGS := `$(LLVM_BIN_PATH)/llvm-config --cxxflags` | 
|  27 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --ldflags --libs` |  27 LLVM_LDFLAGS := `$(LLVM_BIN_PATH)/llvm-config --ldflags --libs` | 
|  28  |  28  | 
|  29 # It's recommended that CXX matches the compiler you used to build LLVM itself. |  29 # It's recommended that CXX matches the compiler you used to build LLVM itself. | 
|  30 OPTLEVEL := -O0 |  30 OPTLEVEL := -O0 | 
|  31 CXX := g++ |  31 CXX := g++ | 
|  32 CXXFLAGS := -Wall -Wextra -Werror -fno-rtti -fno-exceptions \ |  32 CXXFLAGS := -Wall -Wextra -Werror -fno-rtti -fno-exceptions \ | 
|  33 »       $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 |  33 »       $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 -Wno-error=unused-parameter | 
|  34 LDFLAGS := -m32 |  34 LDFLAGS := -m32 | 
|  35  |  35  | 
|  36 SRCS= \ |  36 SRCS= \ | 
|  37         IceCfg.cpp \ |  37         IceCfg.cpp \ | 
|  38         IceCfgNode.cpp \ |  38         IceCfgNode.cpp \ | 
|  39         IceConverter.cpp \ |  39         IceConverter.cpp \ | 
|  40         IceGlobalContext.cpp \ |  40         IceGlobalContext.cpp \ | 
|  41         IceInst.cpp \ |  41         IceInst.cpp \ | 
|  42         IceInstX8632.cpp \ |  42         IceInstX8632.cpp \ | 
|  43         IceIntrinsics.cpp \ |  43         IceIntrinsics.cpp \ | 
|  44         IceLiveness.cpp \ |  44         IceLiveness.cpp \ | 
|  45         IceOperand.cpp \ |  45         IceOperand.cpp \ | 
|  46         IceRegAlloc.cpp \ |  46         IceRegAlloc.cpp \ | 
|  47         IceTargetLowering.cpp \ |  47         IceTargetLowering.cpp \ | 
|  48         IceTargetLoweringX8632.cpp \ |  48         IceTargetLoweringX8632.cpp \ | 
 |  49         IceTranslator.cpp \ | 
|  49         IceTypes.cpp \ |  50         IceTypes.cpp \ | 
|  50 »       llvm2ice.cpp |  51 »       llvm2ice.cpp \ | 
 |  52 »       PNaClTranslator.cpp | 
|  51  |  53  | 
|  52 OBJS=$(patsubst %.cpp, build/%.o, $(SRCS)) |  54 OBJS=$(patsubst %.cpp, build/%.o, $(SRCS)) | 
|  53  |  55  | 
|  54 # Keep all the first target so it's the default. |  56 # Keep all the first target so it's the default. | 
|  55 all: llvm2ice |  57 all: llvm2ice | 
|  56  |  58  | 
|  57 .PHONY: all |  59 .PHONY: all | 
|  58  |  60  | 
|  59 llvm2ice: $(OBJS) |  61 llvm2ice: $(OBJS) | 
|  60         $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -ldl |  62         $(CXX) $(LDFLAGS) -o $@ $^ $(LLVM_LDFLAGS) -ldl | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  73         $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit |  75         $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit | 
|  74         (cd crosstest; LLVM_BIN_PATH=$(LLVM_BIN_PATH) ./runtests.sh) |  76         (cd crosstest; LLVM_BIN_PATH=$(LLVM_BIN_PATH) ./runtests.sh) | 
|  75  |  77  | 
|  76 # TODO: Fix the use of wildcards. |  78 # TODO: Fix the use of wildcards. | 
|  77 format: |  79 format: | 
|  78         $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ |  80         $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ | 
|  79         src/Ice*.h src/Ice*.cpp src/llvm2ice.cpp |  81         src/Ice*.h src/Ice*.cpp src/llvm2ice.cpp | 
|  80  |  82  | 
|  81 clean: |  83 clean: | 
|  82         rm -rf llvm2ice *.o build/ |  84         rm -rf llvm2ice *.o build/ | 
| OLD | NEW |