| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ENVFILE = $(OUTDIR)/environment | 130 ENVFILE = $(OUTDIR)/environment |
| 131 | 131 |
| 132 .PHONY: all check clean dependencies $(ENVFILE).new native \ | 132 .PHONY: all check clean dependencies $(ENVFILE).new native \ |
| 133 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ | 133 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ |
| 134 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \ | 134 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) \ |
| 135 must-set-ANDROID_NDK_ROOT | 135 must-set-ANDROID_NDK_ROOT |
| 136 | 136 |
| 137 # Target definitions. "all" is the default. | 137 # Target definitions. "all" is the default. |
| 138 all: $(MODES) | 138 all: $(MODES) |
| 139 | 139 |
| 140 # Special target for the buildbots to use. Depends on $(OUTDIR)/Makefile |
| 141 # having been created before. |
| 142 buildbot: |
| 143 $(MAKE) -C "$(OUTDIR)" BUILDTYPE=$(BUILDTYPE) \ |
| 144 builddir="$(abspath $(OUTDIR))/$(BUILDTYPE)" |
| 145 |
| 140 # Compile targets. MODES and ARCHES are convenience targets. | 146 # Compile targets. MODES and ARCHES are convenience targets. |
| 141 .SECONDEXPANSION: | 147 .SECONDEXPANSION: |
| 142 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) | 148 $(MODES): $(addsuffix .$$@,$(DEFAULT_ARCHES)) |
| 143 | 149 |
| 144 $(ARCHES): $(addprefix $$@.,$(MODES)) | 150 $(ARCHES): $(addprefix $$@.,$(MODES)) |
| 145 | 151 |
| 146 # Defines how to build a particular target (e.g. ia32.release). | 152 # Defines how to build a particular target (e.g. ia32.release). |
| 147 $(BUILDS): $(OUTDIR)/Makefile-$$(basename $$@) | 153 $(BUILDS): $(OUTDIR)/Makefile-$$(basename $$@) |
| 148 @$(MAKE) -C "$(OUTDIR)" -f Makefile-$(basename $@) \ | 154 @$(MAKE) -C "$(OUTDIR)" -f Makefile-$(basename $@) \ |
| 149 CXX="$(CXX)" LINK="$(LINK)" \ | 155 CXX="$(CXX)" LINK="$(LINK)" \ |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |