| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 android.clean: | 205 android.clean: |
| 206 rm -f $(OUTDIR)/Makefile-android | 206 rm -f $(OUTDIR)/Makefile-android |
| 207 rm -rf $(OUTDIR)/android.release | 207 rm -rf $(OUTDIR)/android.release |
| 208 find $(OUTDIR) -regex '.*\(host\|target\)-android\.mk' -delete | 208 find $(OUTDIR) -regex '.*\(host\|target\)-android\.mk' -delete |
| 209 | 209 |
| 210 clean: $(addsuffix .clean,$(ARCHES)) native.clean | 210 clean: $(addsuffix .clean,$(ARCHES)) native.clean |
| 211 | 211 |
| 212 # GYP file generation targets. | 212 # GYP file generation targets. |
| 213 $(OUTDIR)/Makefile-ia32: $(GYPFILES) $(ENVFILE) | 213 $(OUTDIR)/Makefile-ia32: $(GYPFILES) $(ENVFILE) |
| 214 GYP_GENERATORS=make \ |
| 214 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 215 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 215 -Ibuild/standalone.gypi --depth=. -Dtarget_arch=ia32 \ | 216 -Ibuild/standalone.gypi --depth=. -Dtarget_arch=ia32 \ |
| 216 -S-ia32 $(GYPFLAGS) | 217 -S-ia32 $(GYPFLAGS) |
| 217 | 218 |
| 218 $(OUTDIR)/Makefile-x64: $(GYPFILES) $(ENVFILE) | 219 $(OUTDIR)/Makefile-x64: $(GYPFILES) $(ENVFILE) |
| 220 GYP_GENERATORS=make \ |
| 219 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 221 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 220 -Ibuild/standalone.gypi --depth=. -Dtarget_arch=x64 \ | 222 -Ibuild/standalone.gypi --depth=. -Dtarget_arch=x64 \ |
| 221 -S-x64 $(GYPFLAGS) | 223 -S-x64 $(GYPFLAGS) |
| 222 | 224 |
| 223 $(OUTDIR)/Makefile-arm: $(GYPFILES) $(ENVFILE) build/armu.gypi | 225 $(OUTDIR)/Makefile-arm: $(GYPFILES) $(ENVFILE) build/armu.gypi |
| 226 GYP_GENERATORS=make \ |
| 224 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 227 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 225 -Ibuild/standalone.gypi --depth=. -Ibuild/armu.gypi \ | 228 -Ibuild/standalone.gypi --depth=. -Ibuild/armu.gypi \ |
| 226 -S-arm $(GYPFLAGS) | 229 -S-arm $(GYPFLAGS) |
| 227 | 230 |
| 228 $(OUTDIR)/Makefile-mips: $(GYPFILES) $(ENVFILE) build/mipsu.gypi | 231 $(OUTDIR)/Makefile-mips: $(GYPFILES) $(ENVFILE) build/mipsu.gypi |
| 232 GYP_GENERATORS=make \ |
| 229 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 233 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 230 -Ibuild/standalone.gypi --depth=. -Ibuild/mipsu.gypi \ | 234 -Ibuild/standalone.gypi --depth=. -Ibuild/mipsu.gypi \ |
| 231 -S-mips $(GYPFLAGS) | 235 -S-mips $(GYPFLAGS) |
| 232 | 236 |
| 233 $(OUTDIR)/Makefile-native: $(GYPFILES) $(ENVFILE) | 237 $(OUTDIR)/Makefile-native: $(GYPFILES) $(ENVFILE) |
| 238 GYP_GENERATORS=make \ |
| 234 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 239 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 235 -Ibuild/standalone.gypi --depth=. -S-native $(GYPFLAGS) | 240 -Ibuild/standalone.gypi --depth=. -S-native $(GYPFLAGS) |
| 236 | 241 |
| 237 $(OUTDIR)/Makefile-android: $(GYPFILES) $(ENVFILE) build/android.gypi \ | 242 $(OUTDIR)/Makefile-android: $(GYPFILES) $(ENVFILE) build/android.gypi \ |
| 238 must-set-ANDROID_NDK_ROOT | 243 must-set-ANDROID_NDK_ROOT |
| 244 GYP_GENERATORS=make \ |
| 239 CC="${ANDROID_TOOL_PREFIX}-gcc" \ | 245 CC="${ANDROID_TOOL_PREFIX}-gcc" \ |
| 240 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ | 246 build/gyp/gyp --generator-output="$(OUTDIR)" build/all.gyp \ |
| 241 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ | 247 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ |
| 242 -S-android $(GYPFLAGS) | 248 -S-android $(GYPFLAGS) |
| 243 | 249 |
| 244 must-set-ANDROID_NDK_ROOT: | 250 must-set-ANDROID_NDK_ROOT: |
| 245 ifndef ANDROID_NDK_ROOT | 251 ifndef ANDROID_NDK_ROOT |
| 246 $(error ANDROID_NDK_ROOT is not set) | 252 $(error ANDROID_NDK_ROOT is not set) |
| 247 endif | 253 endif |
| 248 | 254 |
| 249 # Replaces the old with the new environment file if they're different, which | 255 # Replaces the old with the new environment file if they're different, which |
| 250 # will trigger GYP to regenerate Makefiles. | 256 # will trigger GYP to regenerate Makefiles. |
| 251 $(ENVFILE): $(ENVFILE).new | 257 $(ENVFILE): $(ENVFILE).new |
| 252 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ | 258 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ |
| 253 then rm $(ENVFILE).new; \ | 259 then rm $(ENVFILE).new; \ |
| 254 else mv $(ENVFILE).new $(ENVFILE); fi | 260 else mv $(ENVFILE).new $(ENVFILE); fi |
| 255 | 261 |
| 256 # Stores current GYPFLAGS in a file. | 262 # Stores current GYPFLAGS in a file. |
| 257 $(ENVFILE).new: | 263 $(ENVFILE).new: |
| 258 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; | 264 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; |
| 259 | 265 |
| 260 # Dependencies. | 266 # Dependencies. |
| 261 dependencies: | 267 dependencies: |
| 262 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 268 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 263 --revision 1026 | 269 --revision 1026 |
| OLD | NEW |