OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 # - "android": cross-compile for Android/ARM | 111 # - "android": cross-compile for Android/ARM |
112 # - default (no target specified): build all DEFAULT_ARCHES and MODES | 112 # - default (no target specified): build all DEFAULT_ARCHES and MODES |
113 # - "check": build all targets and run all tests | 113 # - "check": build all targets and run all tests |
114 # - "<arch>.clean" for any <arch> in ARCHES | 114 # - "<arch>.clean" for any <arch> in ARCHES |
115 # - "clean": clean all ARCHES | 115 # - "clean": clean all ARCHES |
116 | 116 |
117 # ----------------- internal stuff ------------------------ | 117 # ----------------- internal stuff ------------------------ |
118 | 118 |
119 # Architectures and modes to be compiled. Consider these to be internal | 119 # Architectures and modes to be compiled. Consider these to be internal |
120 # variables, don't override them (use the targets instead). | 120 # variables, don't override them (use the targets instead). |
121 ARCHES = ia32 x64 arm mips | 121 ARCHES = ia32 x64 arm mipsel |
122 DEFAULT_ARCHES = ia32 x64 arm | 122 DEFAULT_ARCHES = ia32 x64 arm |
123 MODES = release debug | 123 MODES = release debug |
124 ANDROID_MODES = android.release android.debug | 124 ANDROID_MODES = android.release android.debug |
125 | 125 |
126 # List of files that trigger Makefile regeneration: | 126 # List of files that trigger Makefile regeneration: |
127 GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \ | 127 GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \ |
128 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \ | 128 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \ |
129 test/cctest/cctest.gyp tools/gyp/v8.gyp | 129 test/cctest/cctest.gyp tools/gyp/v8.gyp |
130 | 130 |
131 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". | 131 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". |
(...skipping 10 matching lines...) Expand all Loading... |
142 | 142 |
143 # Target definitions. "all" is the default. | 143 # Target definitions. "all" is the default. |
144 all: $(MODES) | 144 all: $(MODES) |
145 | 145 |
146 # Special target for the buildbots to use. Depends on $(OUTDIR)/Makefile | 146 # Special target for the buildbots to use. Depends on $(OUTDIR)/Makefile |
147 # having been created before. | 147 # having been created before. |
148 buildbot: | 148 buildbot: |
149 $(MAKE) -C "$(OUTDIR)" BUILDTYPE=$(BUILDTYPE) \ | 149 $(MAKE) -C "$(OUTDIR)" BUILDTYPE=$(BUILDTYPE) \ |
150 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" | 150 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" |
151 | 151 |
| 152 mips mips.release mips.debug: |
| 153 @echo "V8 does not support big-endian MIPS builds at the moment," \ |
| 154 "please use little-endian builds (mipsel)." |
| 155 |
152 # Compile targets. MODES and ARCHES are convenience targets. | 156 # Compile targets. MODES and ARCHES are convenience targets. |
153 .SECONDEXPANSION: | 157 .SECONDEXPANSION: |
154 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) | 158 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) |
155 | 159 |
156 $(ARCHES): $(addprefix $$@.,$(MODES)) | 160 $(ARCHES): $(addprefix $$@.,$(MODES)) |
157 | 161 |
158 # Defines how to build a particular target (e.g. ia32.release). | 162 # Defines how to build a particular target (e.g. ia32.release). |
159 $(BUILDS): $(OUTDIR)/Makefile.$$(basename $$@) | 163 $(BUILDS): $(OUTDIR)/Makefile.$$(basename $$@) |
160 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$(basename $@) \ | 164 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$(basename $@) \ |
161 CXX="$(CXX)" LINK="$(LINK)" \ | 165 CXX="$(CXX)" LINK="$(LINK)" \ |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 270 |
267 # Stores current GYPFLAGS in a file. | 271 # Stores current GYPFLAGS in a file. |
268 $(ENVFILE).new: | 272 $(ENVFILE).new: |
269 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 273 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
270 echo "CXX=$(CXX)" >> $(ENVFILE).new | 274 echo "CXX=$(CXX)" >> $(ENVFILE).new |
271 | 275 |
272 # Dependencies. | 276 # Dependencies. |
273 dependencies: | 277 dependencies: |
274 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 278 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
275 --revision 1282 | 279 --revision 1282 |
OLD | NEW |