OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 13 matching lines...) Expand all Loading... |
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 # This is Makefile for clang plugin part of gcmole tool. See README. | 28 # This is Makefile for clang plugin part of gcmole tool. See README. |
29 | 29 |
30 LLVM_INCLUDE:=$(LLVM_SRC_ROOT)/include | 30 LLVM_INCLUDE:=$(LLVM_SRC_ROOT)/include |
31 CLANG_INCLUDE:=$(LLVM_SRC_ROOT)/tools/clang/include | 31 CLANG_INCLUDE:=$(LLVM_SRC_ROOT)/tools/clang/include |
32 | 32 |
33 libgcmole.so: gcmole.cc | 33 libgcmole.so: gcmole.cc |
34 » g++ -I$(LLVM_INCLUDE) -I$(CLANG_INCLUDE) -I. -D_DEBUG -D_GNU_SOURCE \ | 34 » $(CXX) -I$(LLVM_INCLUDE) -I$(CLANG_INCLUDE) -I. -D_DEBUG \ |
35 » -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 » » \ | 35 » -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS \ |
36 » -fomit-frame-pointer -fno-exceptions -fno-rtti -fPIC » \ | 36 » -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fno-exceptions \ |
37 » -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing \ | 37 » -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing \ |
38 » -pedantic -Wno-long-long -Wall » \ | 38 » -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter \ |
39 » -W -Wno-unused-parameter -Wwrite-strings \ | 39 » -Wwrite-strings -std=c++0x -shared -o libgcmole.so gcmole.cc |
40 » -shared -o libgcmole.so gcmole.cc | |
41 | 40 |
42 clean: | 41 clean: |
43 » rm -f libgcmole.so | 42 » $(RM) libgcmole.so |
OLD | NEW |