| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 246 |
| 241 # Stores current GYPFLAGS in a file. | 247 # Stores current GYPFLAGS in a file. |
| 242 $(ENVFILE).new: | 248 $(ENVFILE).new: |
| 243 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ | 249 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; \ |
| 244 echo "CXX=$(CXX)" >> $(ENVFILE).new | 250 echo "CXX=$(CXX)" >> $(ENVFILE).new |
| 245 | 251 |
| 246 # Dependencies. | 252 # Dependencies. |
| 247 dependencies: | 253 dependencies: |
| 248 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | 254 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ |
| 249 --revision 1282 | 255 --revision 1282 |
| OLD | NEW |