Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 # We borrow heavily from the kernel build setup, though we are simpler since
2 # we don't have Kconfig tweaking settings on us.
4 # The implicit make rules have it looking for RCS files, among other things.
5 # We instead explicitly write all the rules we care about.
6 # It's even quicker (saves ~200ms) to pass -r on the command line.
7 MAKEFLAGS=-r
9 # The source directory tree.
10 srcdir := .
11 abs_srcdir := $(abspath $(srcdir))
13 # The name of the builddir.
14 builddir_name ?= out
16 # The V=1 flag on command line makes us verbosely print command lines.
17 ifdef V
18 quiet=
19 else
20 quiet=quiet_
21 endif
23 # Specify BUILDTYPE=Release on the command line for a release build.
24 BUILDTYPE ?= Debug
26 # Directory all our build output goes into.
27 # Note that this must be two directories beneath src/ for unit tests to pass,
28 # as they reach into the src/ directory for data with relative paths.
29 builddir ?= $(builddir_name)/$(BUILDTYPE)
30 abs_builddir := $(abspath $(builddir))
31 depsdir := $(builddir)/.deps
33 # Object output directory.
34 obj := $(builddir)/obj
35 abs_obj := $(abspath $(obj))
37 # We build up a list of every single one of the targets so we can slurp in the
38 # generated dependency rule Makefiles in one pass.
39 all_deps :=
43 # C++ apps need to be linked with g++.
44 #
45 # Note: flock is used to seralize linking. Linking is a memory-intensive
46 # process so running parallel links can often lead to thrashing. To disable
47 # the serialization, override LINK via an envrionment variable as follows:
48 #
49 # export LINK=g++
50 #
51 # This will allow make to invoke N linker processes as specified in -jN.
52 LINK ?= flock $(builddir)/linker.lock $(CXX)
54 CC.target ?= $(CC)
55 CFLAGS.target ?= $(CFLAGS)
56 CXX.target ?= $(CXX)
57 CXXFLAGS.target ?= $(CXXFLAGS)
58 LINK.target ?= $(LINK)
59 LDFLAGS.target ?= $(LDFLAGS)
60 AR.target ?= $(AR)
62 # TODO(evan): move all cross-compilation logic to gyp-time so we don't need
63 # to replicate this environment fallback in make as well.
64 CC.host ?= gcc
65 CFLAGS.host ?=
66 CXX.host ?= g++
67 CXXFLAGS.host ?=
68 LINK.host ?= g++
69 LDFLAGS.host ?=
70 AR.host ?= ar
72 # Define a dir function that can handle spaces.
73 # http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
74 # "leading spaces cannot appear in the text of the first argument as written.
75 # These characters can be put into the argument value by variable substitution."
76 empty :=
77 space := $(empty) $(empty)
79 # http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces
80 replace_spaces = $(subst $(space),?,$1)
81 unreplace_spaces = $(subst ?,$(space),$1)
82 dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
84 # Flags to make gcc output dependency info. Note that you need to be
85 # careful here to use the flags that ccache and distcc can understand.
86 # We write to a dep file on the side first and then rename at the end
87 # so we can't end up with a broken dep file.
88 depfile = $(depsdir)/$(call replace_spaces,$@).d
89 DEPFLAGS = -MMD -MF $(depfile).raw
91 # We have to fixup the deps output in a few ways.
92 # (1) the file output should mention the proper .o file.
93 # ccache or distcc lose the path to the target, so we convert a rule of
94 # the form:
95 # foobar.o: DEP1 DEP2
96 # into
97 # path/to/foobar.o: DEP1 DEP2
98 # (2) we want missing files not to cause us to fail to build.
99 # We want to rewrite
100 # foobar.o: DEP1 DEP2 \
101 # DEP3
102 # to
103 # DEP1:
104 # DEP2:
105 # DEP3:
106 # so if the files are missing, they're just considered phony rules.
107 # We have to do some pretty insane escaping to get those backslashes
108 # and dollar signs past make, the shell, and sed at the same time.
109 # Doesn't work with spaces, but that's fine: .d files have spaces in
110 # their names replaced with other characters.
111 define fixup_dep
112 # The depfile may not exist if the input file didn't have any #includes.
113 touch $(depfile).raw
114 # Fixup path as in (1).
115 sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
116 # Add extra rules as in (2).
117 # We remove slashes and replace spaces with new lines;
118 # remove blank lines;
119 # delete the first line and append a colon to the remaining lines.
120 sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
121 grep -v '^$$' |\
122 sed -e 1d -e 's|$$|:|' \
123 >> $(depfile)
124 rm $(depfile).raw
125 endef
127 # Command definitions:
128 # - cmd_foo is the actual command to run;
129 # - quiet_cmd_foo is the brief-output summary of the command.
131 quiet_cmd_cc = CC($(TOOLSET)) $@
132 cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
134 quiet_cmd_cxx = CXX($(TOOLSET)) $@
135 cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
137 quiet_cmd_touch = TOUCH $@
138 cmd_touch = touch $@
140 quiet_cmd_copy = COPY $@
141 # send stderr to /dev/null to ignore messages when linking directories.
142 cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
144 quiet_cmd_alink = AR($(TOOLSET)) $@
145 cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
147 quiet_cmd_alink_thin = AR($(TOOLSET)) $@
148 cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
150 # Due to circular dependencies between libraries :(, we wrap the
151 # special "figure out circular dependencies" flags around the entire
152 # input list during linking.
153 quiet_cmd_link = LINK($(TOOLSET)) $@
154 cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
156 # We support two kinds of shared objects (.so):
157 # 1) shared_library, which is just bundling together many dependent libraries
158 # into a link line.
159 # 2) loadable_module, which is generating a module intended for dlopen().
160 #
161 # They differ only slightly:
162 # In the former case, we want to package all dependent code into the .so.
163 # In the latter case, we want to package just the API exposed by the
164 # outermost module.
165 # This means shared_library uses --whole-archive, while loadable_module doesn't.
166 # (Note that --whole-archive is incompatible with the --start-group used in
167 # normal linking.)
169 # Other shared-object link notes:
170 # - Set SONAME to the library filename so our binaries don't reference
171 # the local, absolute paths used on the link command-line.
172 quiet_cmd_solink = SOLINK($(TOOLSET)) $@
173 cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
175 quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
176 cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
179 # Define an escape_quotes function to escape single quotes.
180 # This allows us to handle quotes properly as long as we always use
181 # use single quotes and escape_quotes.
182 escape_quotes = $(subst ','\'',$(1))
183 # This comment is here just to include a ' to unconfuse syntax highlighting.
184 # Define an escape_vars function to escape '$' variable syntax.
185 # This allows us to read/write command lines with shell variables (e.g.
186 # $LD_LIBRARY_PATH), without triggering make substitution.
187 escape_vars = $(subst $$,$$$$,$(1))
188 # Helper that expands to a shell command to echo a string exactly as it is in
189 # make. This uses printf instead of echo because printf's behaviour with respect
190 # to escape sequences is more portable than echo's across different shells
191 # (e.g., dash, bash).
192 exact_echo = printf '%s\n' '$(call escape_quotes,$(1))'
194 # Helper to compare the command we're about to run against the command
195 # we logged the last time we ran the command. Produces an empty
196 # string (false) when the commands match.
197 # Tricky point: Make has no string-equality test function.
198 # The kernel uses the following, but it seems like it would have false
199 # positives, where one string reordered its arguments.
200 # arg_check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \
201 # $(filter-out $(cmd_$@), $(cmd_$(1))))
202 # We instead substitute each for the empty string into the other, and
203 # say they're equal if both substitutions produce the empty string.
204 # .d files contain ? instead of spaces, take that into account.
205 command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\
206 $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
208 # Helper that is non-empty when a prerequisite changes.
209 # Normally make does this implicitly, but we force rules to always run
210 # so we can check their command lines.
211 # $? -- new prerequisites
212 # $| -- order-only dependencies
213 prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?))
215 # Helper that executes all postbuilds, and deletes the output file when done
216 # if any of the postbuilds failed.
217 define do_postbuilds
218 @E=0;\
219 for p in $(POSTBUILDS); do\
220 eval $$p;\
221 F=$$?;\
222 if [ $$F -ne 0 ]; then\
223 E=$$F;\
224 fi;\
225 done;\
226 if [ $$E -ne 0 ]; then\
227 rm -rf "$@";\
228 exit $$E;\
229 fi
230 endef
232 # do_cmd: run a command via the above cmd_foo names, if necessary.
233 # Should always run for a given target to handle command-line changes.
234 # Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
235 # Third argument, if non-zero, makes it do POSTBUILDS processing.
236 # Note: We intentionally do NOT call dirx for depfile, since it contains ? for
237 # spaces already and dirx strips the ? characters.
238 define do_cmd
239 $(if $(or $(command_changed),$(prereq_changed)),
240 @$(call exact_echo, $($(quiet)cmd_$(1)))
241 @mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
242 $(if $(findstring flock,$(word 1,$(cmd_$1))),
243 @$(cmd_$(1))
244 @echo " $(quiet_cmd_$(1)): Finished",
245 @$(cmd_$(1))
246 )
247 @$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile)
248 @$(if $(2),$(fixup_dep))
249 $(if $(and $(3), $(POSTBUILDS)),
250 $(call do_postbuilds)
251 )
252 )
253 endef
255 # Declare the "all" target first so it is the default,
256 # even though we don't have the deps yet.
257 .PHONY: all
258 all:
260 # make looks for ways to re-generate included makefiles, but in our case, we
261 # don't have a direct way. Explicitly telling make that it has nothing to do
262 # for them makes it go faster.
263 %.d: ;
265 # Use FORCE_DO_CMD to force a target to run. Should be coupled with
266 # do_cmd.
267 .PHONY: FORCE_DO_CMD
268 FORCE_DO_CMD:
270 TOOLSET := host
271 # Suffix rules, putting all outputs into $(obj).
272 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
273 @$(call do_cmd,cc,1)
274 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
275 @$(call do_cmd,cxx,1)
276 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
277 @$(call do_cmd,cxx,1)
278 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
279 @$(call do_cmd,cxx,1)
280 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
281 @$(call do_cmd,cc,1)
282 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
283 @$(call do_cmd,cc,1)
285 # Try building from generated source, too.
286 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
287 @$(call do_cmd,cc,1)
288 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
289 @$(call do_cmd,cxx,1)
290 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
291 @$(call do_cmd,cxx,1)
292 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
293 @$(call do_cmd,cxx,1)
294 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
295 @$(call do_cmd,cc,1)
296 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
297 @$(call do_cmd,cc,1)
299 $(obj).$(TOOLSET)/%.o: $(obj)/%.c FORCE_DO_CMD
300 @$(call do_cmd,cc,1)
301 $(obj).$(TOOLSET)/%.o: $(obj)/%.cc FORCE_DO_CMD
302 @$(call do_cmd,cxx,1)
303 $(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
304 @$(call do_cmd,cxx,1)
305 $(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
306 @$(call do_cmd,cxx,1)
307 $(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
308 @$(call do_cmd,cc,1)
309 $(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
310 @$(call do_cmd,cc,1)
312 TOOLSET := target
313 # Suffix rules, putting all outputs into $(obj).
314 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
315 @$(call do_cmd,cc,1)
316 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
317 @$(call do_cmd,cxx,1)
318 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
319 @$(call do_cmd,cxx,1)
320 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
321 @$(call do_cmd,cxx,1)
322 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
323 @$(call do_cmd,cc,1)
324 $(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
325 @$(call do_cmd,cc,1)
327 # Try building from generated source, too.
328 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
329 @$(call do_cmd,cc,1)
330 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
331 @$(call do_cmd,cxx,1)
332 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
333 @$(call do_cmd,cxx,1)
334 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
335 @$(call do_cmd,cxx,1)
336 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
337 @$(call do_cmd,cc,1)
338 $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
339 @$(call do_cmd,cc,1)
341 $(obj).$(TOOLSET)/%.o: $(obj)/%.c FORCE_DO_CMD
342 @$(call do_cmd,cc,1)
343 $(obj).$(TOOLSET)/%.o: $(obj)/%.cc FORCE_DO_CMD
344 @$(call do_cmd,cxx,1)
345 $(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
346 @$(call do_cmd,cxx,1)
347 $(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
348 @$(call do_cmd,cxx,1)
349 $(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
350 @$(call do_cmd,cc,1)
351 $(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
352 @$(call do_cmd,cc,1)
355 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
356 $(findstring $(join ^,$(prefix)),\
357 $(join ^,All.target.mk)))),)
358 include All.target.mk
359 endif
360 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
361 $(findstring $(join ^,$(prefix)),\
362 $(join ^,base/base.target.mk)))),)
363 include base/base.target.mk
364 endif
365 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
366 $(findstring $(join ^,$(prefix)),\
367 $(join ^,net/net.target.mk)))),)
368 include net/net.target.mk
369 endif
370 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
371 $(findstring $(join ^,$(prefix)),\
372 $(join ^,peerconnection_client.target.mk)))),)
373 include peerconnection_client.target.mk
374 endif
375 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
376 $(findstring $(join ^,$(prefix)),\
377 $(join ^,third_party/expat/expat.target.mk)))),)
378 include third_party/expat/expat.target.mk
379 endif
380 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
381 $(findstring $(join ^,$(prefix)),\
382 $(join ^,third_party/jsoncpp/jsoncpp.target.mk)))),)
383 include third_party/jsoncpp/jsoncpp.target.mk
384 endif
385 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
386 $(findstring $(join ^,$(prefix)),\
387 $(join ^,third_party/libjingle/libjingle.target.mk)))),)
388 include third_party/libjingle/libjingle.target.mk
389 endif
390 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
391 $(findstring $(join ^,$(prefix)),\
392 $(join ^,third_party/libjingle/libjingle_p2p.target.mk)))),)
393 include third_party/libjingle/libjingle_p2p.target.mk
394 endif
395 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
396 $(findstring $(join ^,$(prefix)),\
397 $(join ^,third_party/libjingle/libjingle_peerconnection.target.mk)))),)
398 include third_party/libjingle/libjingle_peerconnection.target.mk
399 endif
400 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
401 $(findstring $(join ^,$(prefix)),\
402 $(join ^,third_party/libjingle/peerconnection_server.target.mk)))),)
403 include third_party/libjingle/peerconnection_server.target.mk
404 endif
405 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
406 $(findstring $(join ^,$(prefix)),\
407 $(join ^,third_party/libjpeg_turbo/libjpeg.target.mk)))),)
408 include third_party/libjpeg_turbo/libjpeg.target.mk
409 endif
410 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
411 $(findstring $(join ^,$(prefix)),\
412 $(join ^,third_party/libsrtp/libsrtp.target.mk)))),)
413 include third_party/libsrtp/libsrtp.target.mk
414 endif
415 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
416 $(findstring $(join ^,$(prefix)),\
417 $(join ^,third_party/libsrtp/rdbx_driver.target.mk)))),)
418 include third_party/libsrtp/rdbx_driver.target.mk
419 endif
420 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
421 $(findstring $(join ^,$(prefix)),\
422 $(join ^,third_party/libsrtp/replay_driver.target.mk)))),)
423 include third_party/libsrtp/replay_driver.target.mk
424 endif
425 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
426 $(findstring $(join ^,$(prefix)),\
427 $(join ^,third_party/libsrtp/roc_driver.target.mk)))),)
428 include third_party/libsrtp/roc_driver.target.mk
429 endif
430 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
431 $(findstring $(join ^,$(prefix)),\
432 $(join ^,third_party/libsrtp/rtpw.target.mk)))),)
433 include third_party/libsrtp/rtpw.target.mk
434 endif
435 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
436 $(findstring $(join ^,$(prefix)),\
437 $(join ^,third_party/libsrtp/srtp_driver.target.mk)))),)
438 include third_party/libsrtp/srtp_driver.target.mk
439 endif
440 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
441 $(findstring $(join ^,$(prefix)),\
442 $(join ^,third_party/libsrtp/srtp_runtest.target.mk)))),)
443 include third_party/libsrtp/srtp_runtest.target.mk
444 endif
445 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
446 $(findstring $(join ^,$(prefix)),\
447 $(join ^,third_party/libsrtp/srtp_test_aes_calc.target.mk)))),)
448 include third_party/libsrtp/srtp_test_aes_calc.target.mk
449 endif
450 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
451 $(findstring $(join ^,$(prefix)),\
452 $(join ^,third_party/libsrtp/srtp_test_cipher_driver.target.mk)))),)
453 include third_party/libsrtp/srtp_test_cipher_driver.target.mk
454 endif
455 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
456 $(findstring $(join ^,$(prefix)),\
457 $(join ^,third_party/libsrtp/srtp_test_datatypes_driver.target.mk)))),)
458 include third_party/libsrtp/srtp_test_datatypes_driver.target.mk
459 endif
460 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
461 $(findstring $(join ^,$(prefix)),\
462 $(join ^,third_party/libsrtp/srtp_test_env.target.mk)))),)
463 include third_party/libsrtp/srtp_test_env.target.mk
464 endif
465 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
466 $(findstring $(join ^,$(prefix)),\
467 $(join ^,third_party/libsrtp/srtp_test_kernel_driver.target.mk)))),)
468 include third_party/libsrtp/srtp_test_kernel_driver.target.mk
469 endif
470 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
471 $(findstring $(join ^,$(prefix)),\
472 $(join ^,third_party/libsrtp/srtp_test_rand_gen.target.mk)))),)
473 include third_party/libsrtp/srtp_test_rand_gen.target.mk
474 endif
475 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
476 $(findstring $(join ^,$(prefix)),\
477 $(join ^,third_party/libsrtp/srtp_test_sha1_driver.target.mk)))),)
478 include third_party/libsrtp/srtp_test_sha1_driver.target.mk
479 endif
480 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
481 $(findstring $(join ^,$(prefix)),\
482 $(join ^,third_party/libsrtp/srtp_test_stat_driver.target.mk)))),)
483 include third_party/libsrtp/srtp_test_stat_driver.target.mk
484 endif
485 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
486 $(findstring $(join ^,$(prefix)),\
487 $(join ^,third_party/libvpx/gen_asm_offsets.target.mk)))),)
488 include third_party/libvpx/gen_asm_offsets.target.mk
489 endif
490 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
491 $(findstring $(join ^,$(prefix)),\
492 $(join ^,third_party/libvpx/libvpx.target.mk)))),)
493 include third_party/libvpx/libvpx.target.mk
494 endif
495 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
496 $(findstring $(join ^,$(prefix)),\
497 $(join ^,third_party/libvpx/libvpx_asm_offsets.target.mk)))),)
498 include third_party/libvpx/libvpx_asm_offsets.target.mk
499 endif
500 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
501 $(findstring $(join ^,$(prefix)),\
502 $(join ^,third_party/libvpx/libvpx_obj_int_extract.host.mk)))),)
503 include third_party/libvpx/libvpx_obj_int_extract.host.mk
504 endif
505 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
506 $(findstring $(join ^,$(prefix)),\
507 $(join ^,third_party/libvpx/simple_decoder.target.mk)))),)
508 include third_party/libvpx/simple_decoder.target.mk
509 endif
510 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
511 $(findstring $(join ^,$(prefix)),\
512 $(join ^,third_party/libvpx/simple_encoder.target.mk)))),)
513 include third_party/libvpx/simple_encoder.target.mk
514 endif
515 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
516 $(findstring $(join ^,$(prefix)),\
517 $(join ^,third_party/libyuv/libyuv.target.mk)))),)
518 include third_party/libyuv/libyuv.target.mk
519 endif
520 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
521 $(findstring $(join ^,$(prefix)),\
522 $(join ^,third_party/protobuf/protobuf_full_do_not_use.host.mk)))),)
523 include third_party/protobuf/protobuf_full_do_not_use.host.mk
524 endif
525 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
526 $(findstring $(join ^,$(prefix)),\
527 $(join ^,third_party/protobuf/protobuf_full_do_not_use.target.mk)))),)
528 include third_party/protobuf/protobuf_full_do_not_use.target.mk
529 endif
530 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
531 $(findstring $(join ^,$(prefix)),\
532 $(join ^,third_party/protobuf/protobuf_lite.host.mk)))),)
533 include third_party/protobuf/protobuf_lite.host.mk
534 endif
535 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
536 $(findstring $(join ^,$(prefix)),\
537 $(join ^,third_party/protobuf/protobuf_lite.target.mk)))),)
538 include third_party/protobuf/protobuf_lite.target.mk
539 endif
540 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
541 $(findstring $(join ^,$(prefix)),\
542 $(join ^,third_party/protobuf/protoc.host.mk)))),)
543 include third_party/protobuf/protoc.host.mk
544 endif
545 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
546 $(findstring $(join ^,$(prefix)),\
547 $(join ^,third_party/protobuf/py_proto.target.mk)))),)
548 include third_party/protobuf/py_proto.target.mk
549 endif
550 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
551 $(findstring $(join ^,$(prefix)),\
552 $(join ^,third_party/webrtc/common_audio/resampler.target.mk)))),)
553 include third_party/webrtc/common_audio/resampler.target.mk
554 endif
555 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
556 $(findstring $(join ^,$(prefix)),\
557 $(join ^,third_party/webrtc/common_audio/signal_processing.target.mk)))),)
558 include third_party/webrtc/common_audio/signal_processing.target.mk
559 endif
560 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
561 $(findstring $(join ^,$(prefix)),\
562 $(join ^,third_party/webrtc/common_audio/vad.target.mk)))),)
563 include third_party/webrtc/common_audio/vad.target.mk
564 endif
565 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
566 $(findstring $(join ^,$(prefix)),\
567 $(join ^,third_party/webrtc/common_video/common_video.target.mk)))),)
568 include third_party/webrtc/common_video/common_video.target.mk
569 endif
570 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
571 $(findstring $(join ^,$(prefix)),\
572 $(join ^,third_party/webrtc/modules/CNG.target.mk)))),)
573 include third_party/webrtc/modules/CNG.target.mk
574 endif
575 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
576 $(findstring $(join ^,$(prefix)),\
577 $(join ^,third_party/webrtc/modules/G711.target.mk)))),)
578 include third_party/webrtc/modules/G711.target.mk
579 endif
580 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
581 $(findstring $(join ^,$(prefix)),\
582 $(join ^,third_party/webrtc/modules/G722.target.mk)))),)
583 include third_party/webrtc/modules/G722.target.mk
584 endif
585 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
586 $(findstring $(join ^,$(prefix)),\
587 $(join ^,third_party/webrtc/modules/NetEq.target.mk)))),)
588 include third_party/webrtc/modules/NetEq.target.mk
589 endif
590 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
591 $(findstring $(join ^,$(prefix)),\
592 $(join ^,third_party/webrtc/modules/PCM16B.target.mk)))),)
593 include third_party/webrtc/modules/PCM16B.target.mk
594 endif
595 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
596 $(findstring $(join ^,$(prefix)),\
597 $(join ^,third_party/webrtc/modules/audio_coding_module.target.mk)))),)
598 include third_party/webrtc/modules/audio_coding_module.target.mk
599 endif
600 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
601 $(findstring $(join ^,$(prefix)),\
602 $(join ^,third_party/webrtc/modules/audio_conference_mixer.target.mk)))),)
603 include third_party/webrtc/modules/audio_conference_mixer.target.mk
604 endif
605 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
606 $(findstring $(join ^,$(prefix)),\
607 $(join ^,third_party/webrtc/modules/audio_device.target.mk)))),)
608 include third_party/webrtc/modules/audio_device.target.mk
609 endif
610 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
611 $(findstring $(join ^,$(prefix)),\
612 $(join ^,third_party/webrtc/modules/audio_processing.target.mk)))),)
613 include third_party/webrtc/modules/audio_processing.target.mk
614 endif
615 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
616 $(findstring $(join ^,$(prefix)),\
617 $(join ^,third_party/webrtc/modules/audio_processing_sse2.target.mk)))),)
618 include third_party/webrtc/modules/audio_processing_sse2.target.mk
619 endif
620 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
621 $(findstring $(join ^,$(prefix)),\
622 $(join ^,third_party/webrtc/modules/audioproc_debug_proto.target.mk)))),)
623 include third_party/webrtc/modules/audioproc_debug_proto.target.mk
624 endif
625 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
626 $(findstring $(join ^,$(prefix)),\
627 $(join ^,third_party/webrtc/modules/bitrate_controller.target.mk)))),)
628 include third_party/webrtc/modules/bitrate_controller.target.mk
629 endif
630 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
631 $(findstring $(join ^,$(prefix)),\
632 $(join ^,third_party/webrtc/modules/iLBC.target.mk)))),)
633 include third_party/webrtc/modules/iLBC.target.mk
634 endif
635 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
636 $(findstring $(join ^,$(prefix)),\
637 $(join ^,third_party/webrtc/modules/iSAC.target.mk)))),)
638 include third_party/webrtc/modules/iSAC.target.mk
639 endif
640 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
641 $(findstring $(join ^,$(prefix)),\
642 $(join ^,third_party/webrtc/modules/iSACFix.target.mk)))),)
643 include third_party/webrtc/modules/iSACFix.target.mk
644 endif
645 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
646 $(findstring $(join ^,$(prefix)),\
647 $(join ^,third_party/webrtc/modules/media_file.target.mk)))),)
648 include third_party/webrtc/modules/media_file.target.mk
649 endif
650 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
651 $(findstring $(join ^,$(prefix)),\
652 $(join ^,third_party/webrtc/modules/remote_bitrate_estimator.target.mk)))),)
653 include third_party/webrtc/modules/remote_bitrate_estimator.target.mk
654 endif
655 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
656 $(findstring $(join ^,$(prefix)),\
657 $(join ^,third_party/webrtc/modules/rtp_rtcp.target.mk)))),)
658 include third_party/webrtc/modules/rtp_rtcp.target.mk
659 endif
660 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
661 $(findstring $(join ^,$(prefix)),\
662 $(join ^,third_party/webrtc/modules/udp_transport.target.mk)))),)
663 include third_party/webrtc/modules/udp_transport.target.mk
664 endif
665 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
666 $(findstring $(join ^,$(prefix)),\
667 $(join ^,third_party/webrtc/modules/video_capture_module.target.mk)))),)
668 include third_party/webrtc/modules/video_capture_module.target.mk
669 endif
670 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
671 $(findstring $(join ^,$(prefix)),\
672 $(join ^,third_party/webrtc/modules/video_coding/codecs/vp8/webrtc_vp8.target.mk)))),)
673 include third_party/webrtc/modules/video_coding/codecs/vp8/webrtc_vp8.target.mk
674 endif
675 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
676 $(findstring $(join ^,$(prefix)),\
677 $(join ^,third_party/webrtc/modules/video_processing.target.mk)))),)
678 include third_party/webrtc/modules/video_processing.target.mk
679 endif
680 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
681 $(findstring $(join ^,$(prefix)),\
682 $(join ^,third_party/webrtc/modules/video_processing_sse2.target.mk)))),)
683 include third_party/webrtc/modules/video_processing_sse2.target.mk
684 endif
685 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
686 $(findstring $(join ^,$(prefix)),\
687 $(join ^,third_party/webrtc/modules/video_render_module.target.mk)))),)
688 include third_party/webrtc/modules/video_render_module.target.mk
689 endif
690 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
691 $(findstring $(join ^,$(prefix)),\
692 $(join ^,third_party/webrtc/modules/webrtc_i420.target.mk)))),)
693 include third_party/webrtc/modules/webrtc_i420.target.mk
694 endif
695 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
696 $(findstring $(join ^,$(prefix)),\
697 $(join ^,third_party/webrtc/modules/webrtc_utility.target.mk)))),)
698 include third_party/webrtc/modules/webrtc_utility.target.mk
699 endif
700 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
701 $(findstring $(join ^,$(prefix)),\
702 $(join ^,third_party/webrtc/modules/webrtc_video_coding.target.mk)))),)
703 include third_party/webrtc/modules/webrtc_video_coding.target.mk
704 endif
705 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
706 $(findstring $(join ^,$(prefix)),\
707 $(join ^,third_party/webrtc/system_wrappers/source/system_wrappers.target.mk)))),)
708 include third_party/webrtc/system_wrappers/source/system_wrappers.target.mk
709 endif
710 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
711 $(findstring $(join ^,$(prefix)),\
712 $(join ^,third_party/webrtc/video_engine/video_engine_core.target.mk)))),)
713 include third_party/webrtc/video_engine/video_engine_core.target.mk
714 endif
715 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
716 $(findstring $(join ^,$(prefix)),\
717 $(join ^,third_party/webrtc/voice_engine/voice_engine_core.target.mk)))),)
718 include third_party/webrtc/voice_engine/voice_engine_core.target.mk
719 endif
720 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
721 $(findstring $(join ^,$(prefix)),\
722 $(join ^,third_party/yasm/config_sources.host.mk)))),)
723 include third_party/yasm/config_sources.host.mk
724 endif
725 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
726 $(findstring $(join ^,$(prefix)),\
727 $(join ^,third_party/yasm/generate_files.host.mk)))),)
728 include third_party/yasm/generate_files.host.mk
729 endif
730 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
731 $(findstring $(join ^,$(prefix)),\
732 $(join ^,third_party/yasm/genmacro.host.mk)))),)
733 include third_party/yasm/genmacro.host.mk
734 endif
735 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
736 $(findstring $(join ^,$(prefix)),\
737 $(join ^,third_party/yasm/genmodule.host.mk)))),)
738 include third_party/yasm/genmodule.host.mk
739 endif
740 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
741 $(findstring $(join ^,$(prefix)),\
742 $(join ^,third_party/yasm/genperf.host.mk)))),)
743 include third_party/yasm/genperf.host.mk
744 endif
745 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
746 $(findstring $(join ^,$(prefix)),\
747 $(join ^,third_party/yasm/genperf_libs.host.mk)))),)
748 include third_party/yasm/genperf_libs.host.mk
749 endif
750 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
751 $(findstring $(join ^,$(prefix)),\
752 $(join ^,third_party/yasm/genstring.host.mk)))),)
753 include third_party/yasm/genstring.host.mk
754 endif
755 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
756 $(findstring $(join ^,$(prefix)),\
757 $(join ^,third_party/yasm/genversion.host.mk)))),)
758 include third_party/yasm/genversion.host.mk
759 endif
760 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
761 $(findstring $(join ^,$(prefix)),\
762 $(join ^,third_party/yasm/re2c.host.mk)))),)
763 include third_party/yasm/re2c.host.mk
764 endif
765 ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
766 $(findstring $(join ^,$(prefix)),\
767 $(join ^,third_party/yasm/yasm.host.mk)))),)
768 include third_party/yasm/yasm.host.mk
769 endif
771 quiet_cmd_regen_makefile = ACTION Regenerating $@
772 cmd_regen_makefile = ./build/gyp_chromium -fmake --ignore-environment "--toplevel-dir=." -I/home/jesup/src/mozilla/webrtc_import7/webrtc_update/trunk/build/common.gypi -I/home/jesup/src/mozilla/webrtc_import7/webrtc_update/trunk/supplement/supplement.gypi "--depth=." peerconnection_all.gyp
773 Makefile: third_party/webrtc/build/common.gypi third_party/webrtc/common_video/common_video.gyp third_party/webrtc/video_engine/video_engine.gyp third_party/webrtc/modules/audio_coding/neteq/neteq.gypi third_party/libvpx/libvpx_srcs_arm.gypi build/filename_rules.gypi third_party/webrtc/modules/media_file/source/media_file.gypi third_party/jsoncpp/jsoncpp.gyp base/base.gyp third_party/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator.gypi third_party/webrtc/modules/rtp_rtcp/source/rtp_rtcp_tests.gypi third_party/webrtc/modules/audio_processing/audio_processing.gypi third_party/webrtc/modules/video_processing/main/source/video_processing.gypi third_party/webrtc/system_wrappers/source/system_wrappers.gyp supplement/supplement.gypi third_party/webrtc/modules/audio_coding/codecs/ilbc/ilbc.gypi third_party/webrtc/modules/utility/source/utility.gypi third_party/webrtc/voice_engine/test/voice_engine_tests.gypi build/internal/release_impl.gypi third_party/webrtc/modules/audio_coding/codecs/isac/isacfix_test.gypi third_party/yasm/yasm_compile.gypi net/net.gyp third_party/webrtc/modules/audio_coding/codecs/isac/isac_test.gypi third_party/webrtc/modules/audio_coding/codecs/cng/cng.gypi third_party/libvpx/libvpx_srcs_x86_64.gypi third_party/webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.gypi third_party/webrtc/modules/audio_device/audio_device.gypi third_party/libjingle/libjingle.gyp build/internal/release_impl_official.gypi build/internal/release_defaults.gypi third_party/webrtc/modules/rtp_rtcp/source/rtp_rtcp.gypi third_party/webrtc/modules/video_render/main/source/video_render.gypi third_party/libjpeg_turbo/libjpeg.gyp third_party/webrtc/modules/rtp_rtcp/test/testAPI/test_api.gypi third_party/webrtc/modules/udp_transport/source/udp_transport.gypi third_party/libvpx/libvpx_srcs_arm_neon.gypi third_party/webrtc/voice_engine/voice_engine.gyp third_party/webrtc/common_audio/resampler/resampler.gypi third_party/webrtc/modules/audio_conference_mixer/source/audio_conference_mixer.gypi build/win_precompile.gypi third_party/expat/expat.gyp third_party/webrtc/modules/video_coding/main/source/video_coding_test.gypi third_party/yasm/yasm.gyp third_party/webrtc/modules/video_capture/main/source/video_capture.gypi third_party/webrtc/video_engine/test/libvietest/libvietest.gypi third_party/webrtc/modules/video_coding/codecs/vp8/vp8.gyp third_party/webrtc/modules/bitrate_controller/bitrate_controller.gypi third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.gypi build/ios/mac_build.gypi third_party/webrtc/modules/video_coding/main/source/video_coding.gypi third_party/webrtc/modules/audio_coding/main/source/audio_coding_module.gypi build/release.gypi peerconnection.gyp build/common.gypi third_party/webrtc/video_engine/video_engine_core.gypi third_party/webrtc/build/arm_neon.gypi third_party/libvpx/libvpx.gyp third_party/webrtc/common_audio/common_audio.gyp third_party/libyuv/libyuv.gyp third_party/webrtc/modules/audio_coding/codecs/isac/main/source/isac.gypi third_party/webrtc/modules/video_processing/main/test/vpm_tests.gypi third_party/webrtc/voice_engine/voice_engine_core.gypi third_party/webrtc/modules/rtp_rtcp/test/testFec/test_fec.gypi third_party/webrtc/modules/video_coding/codecs/tools/video_codecs_tools.gypi third_party/libsrtp/libsrtp.gyp peerconnection_all.gyp third_party/webrtc/modules/audio_coding/codecs/g711/g711.gypi third_party/webrtc/modules/audio_processing/audio_processing_tests.gypi third_party/libvpx/libvpx_srcs_x86.gypi third_party/webrtc/modules/modules.gyp third_party/webrtc/common_audio/signal_processing/signal_processing.gypi third_party/webrtc/video_engine/test/auto_test/vie_auto_test.gypi third_party/libvpx/libvpx_srcs_mips.gypi third_party/webrtc/common_audio/vad/vad.gypi third_party/webrtc/modules/video_coding/codecs/test/video_codecs_test_framework.gypi third_party/webrtc/modules/video_coding/codecs/i420/main/source/i420.gypi third_party/webrtc/modules/audio_coding/codecs/g722/g722.gypi third_party/webrtc/modules/video_coding/codecs/test_framework/test_framework.gypi third_party/webrtc/build/protoc.gypi third_party/protobuf/protobuf.gyp
774 $(call do_cmd,regen_makefile)
776 # "all" is a concatenation of the "all" targets from all the included
777 # sub-makefiles. This is just here to clarify.
778 all:
780 # Add in dependency-tracking rules. $(all_deps) is the list of every single
781 # target in our tree. Only consider the ones with .d (dependency) info:
782 d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d))
783 ifneq ($(d_files),)
784 include $(d_files)
785 endif