Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: Makefile

Issue 7739021: Add "dependencies" target to top-level Makefile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed 80col nit Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 GYPFLAGS += -Dv8_use_liveobjectlist=true 63 GYPFLAGS += -Dv8_use_liveobjectlist=true
64 endif 64 endif
65 # vfp3=off 65 # vfp3=off
66 ifeq ($(vfp3), off) 66 ifeq ($(vfp3), off)
67 GYPFLAGS += -Dv8_can_use_vfp_instructions=false 67 GYPFLAGS += -Dv8_can_use_vfp_instructions=false
68 else 68 else
69 GYPFLAGS += -Dv8_can_use_vfp_instructions=true 69 GYPFLAGS += -Dv8_can_use_vfp_instructions=true
70 endif 70 endif
71 71
72 # ----------------- available targets: -------------------- 72 # ----------------- available targets: --------------------
73 # - "dependencies": pulls in external dependencies (currently: GYP)
73 # - any arch listed in ARCHES (see below) 74 # - any arch listed in ARCHES (see below)
74 # - any mode listed in MODES 75 # - any mode listed in MODES
75 # - every combination <arch>.<mode>, e.g. "ia32.release" 76 # - every combination <arch>.<mode>, e.g. "ia32.release"
76 # - any of the above with .check appended, e.g. "ia32.release.check" 77 # - any of the above with .check appended, e.g. "ia32.release.check"
77 # - default (no target specified): build all ARCHES and MODES 78 # - default (no target specified): build all ARCHES and MODES
78 # - "check": build all targets and run all tests 79 # - "check": build all targets and run all tests
79 # - "<arch>.clean" for any <arch> in ARCHES 80 # - "<arch>.clean" for any <arch> in ARCHES
80 # - "clean": clean all ARCHES 81 # - "clean": clean all ARCHES
81 82
82 # ----------------- internal stuff ------------------------ 83 # ----------------- internal stuff ------------------------
83 84
84 # Architectures and modes to be compiled. Consider these to be internal 85 # Architectures and modes to be compiled. Consider these to be internal
85 # variables, don't override them (use the targets instead). 86 # variables, don't override them (use the targets instead).
86 ARCHES = ia32 x64 arm 87 ARCHES = ia32 x64 arm
87 MODES = release debug 88 MODES = release debug
88 89
89 # List of files that trigger Makefile regeneration: 90 # List of files that trigger Makefile regeneration:
90 GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \ 91 GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \
91 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \ 92 preparser/preparser.gyp samples/samples.gyp src/d8.gyp \
92 test/cctest/cctest.gyp tools/gyp/v8.gyp 93 test/cctest/cctest.gyp tools/gyp/v8.gyp
93 94
94 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release". 95 # Generates all combinations of ARCHES and MODES, e.g. "ia32.release".
95 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES))) 96 BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES)))
96 # Generates corresponding test targets, e.g. "ia32.release.check". 97 # Generates corresponding test targets, e.g. "ia32.release.check".
97 CHECKS = $(addsuffix .check,$(BUILDS)) 98 CHECKS = $(addsuffix .check,$(BUILDS))
98 # File where previously used GYPFLAGS are stored. 99 # File where previously used GYPFLAGS are stored.
99 ENVFILE = $(OUTDIR)/environment 100 ENVFILE = $(OUTDIR)/environment
100 101
101 .PHONY: all check clean $(ENVFILE).new \ 102 .PHONY: all check clean dependencies $(ENVFILE).new \
102 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \ 103 $(ARCHES) $(MODES) $(BUILDS) $(CHECKS) $(addsuffix .clean,$(ARCHES)) \
103 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES)) 104 $(addsuffix .check,$(MODES)) $(addsuffix .check,$(ARCHES))
104 105
105 # Target definitions. "all" is the default. 106 # Target definitions. "all" is the default.
106 all: $(MODES) 107 all: $(MODES)
107 108
108 # Compile targets. MODES and ARCHES are convenience targets. 109 # Compile targets. MODES and ARCHES are convenience targets.
109 .SECONDEXPANSION: 110 .SECONDEXPANSION:
110 $(MODES): $(addsuffix .$$@,$(ARCHES)) 111 $(MODES): $(addsuffix .$$@,$(ARCHES))
111 112
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 # Replaces the old with the new environment file if they're different, which 164 # Replaces the old with the new environment file if they're different, which
164 # will trigger GYP to regenerate Makefiles. 165 # will trigger GYP to regenerate Makefiles.
165 $(ENVFILE): $(ENVFILE).new 166 $(ENVFILE): $(ENVFILE).new
166 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \ 167 @if test -r $(ENVFILE) && cmp $(ENVFILE).new $(ENVFILE) >/dev/null; \
167 then rm $(ENVFILE).new; \ 168 then rm $(ENVFILE).new; \
168 else mv $(ENVFILE).new $(ENVFILE); fi 169 else mv $(ENVFILE).new $(ENVFILE); fi
169 170
170 # Stores current GYPFLAGS in a file. 171 # Stores current GYPFLAGS in a file.
171 $(ENVFILE).new: 172 $(ENVFILE).new:
172 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new; 173 @mkdir -p $(OUTDIR); echo "GYPFLAGS=$(GYPFLAGS)" > $(ENVFILE).new;
174
175 # Dependencies.
176 dependencies:
177 svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \
178 --revision 1026
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698