| OLD | NEW |
| 1 ## | 1 ## |
| 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 ## | 3 ## |
| 4 ## Use of this source code is governed by a BSD-style license | 4 ## Use of this source code is governed by a BSD-style license |
| 5 ## that can be found in the LICENSE file in the root of the source | 5 ## that can be found in the LICENSE file in the root of the source |
| 6 ## tree. An additional intellectual property rights grant can be found | 6 ## tree. An additional intellectual property rights grant can be found |
| 7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
| 8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
| 9 ## | 9 ## |
| 10 | 10 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 $(if $(quiet),@echo " [STRIP] $@ < $<") | 210 $(if $(quiet),@echo " [STRIP] $@ < $<") |
| 211 $(qexec)$(STRIP) --strip-debug \ | 211 $(qexec)$(STRIP) --strip-debug \ |
| 212 -o $@ $< | 212 -o $@ $< |
| 213 else | 213 else |
| 214 %.a: %_g.a | 214 %.a: %_g.a |
| 215 $(if $(quiet),@echo " [CP] $@ < $<") | 215 $(if $(quiet),@echo " [CP] $@ < $<") |
| 216 $(qexec)cp $< $@ | 216 $(qexec)cp $< $@ |
| 217 endif | 217 endif |
| 218 | 218 |
| 219 # | 219 # |
| 220 # Rule to extract assembly constants from C sources | |
| 221 # | |
| 222 obj_int_extract: build/make/obj_int_extract.c | |
| 223 $(if $(quiet),@echo " [HOSTCC] $@") | |
| 224 $(qexec)$(HOSTCC) -I. -I$(SRC_PATH_BARE) -o $@ $< | |
| 225 CLEAN-OBJS += obj_int_extract | |
| 226 | |
| 227 # | |
| 228 # Utility functions | 220 # Utility functions |
| 229 # | 221 # |
| 230 pairmap=$(if $(strip $(2)),\ | 222 pairmap=$(if $(strip $(2)),\ |
| 231 $(call $(1),$(word 1,$(2)),$(word 2,$(2)))\ | 223 $(call $(1),$(word 1,$(2)),$(word 2,$(2)))\ |
| 232 $(call pairmap,$(1),$(wordlist 3,$(words $(2)),$(2)))\ | 224 $(call pairmap,$(1),$(wordlist 3,$(words $(2)),$(2)))\ |
| 233 ) | 225 ) |
| 234 | 226 |
| 235 enabled=$(filter-out $($(1)-no),$($(1)-yes)) | 227 enabled=$(filter-out $($(1)-no),$($(1)-yes)) |
| 236 cond_enabled=$(if $(filter yes,$($(1))), $(call enabled,$(2))) | 228 cond_enabled=$(if $(filter yes,$($(1))), $(call enabled,$(2))) |
| 237 | 229 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 ifneq ($(call enabled,DIST-SRCS),) | 409 ifneq ($(call enabled,DIST-SRCS),) |
| 418 DIST-SRCS-yes += configure | 410 DIST-SRCS-yes += configure |
| 419 DIST-SRCS-yes += build/make/configure.sh | 411 DIST-SRCS-yes += build/make/configure.sh |
| 420 DIST-SRCS-yes += build/make/gen_asm_deps.sh | 412 DIST-SRCS-yes += build/make/gen_asm_deps.sh |
| 421 DIST-SRCS-yes += build/make/Makefile | 413 DIST-SRCS-yes += build/make/Makefile |
| 422 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_def.sh | 414 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_def.sh |
| 423 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_proj.sh | 415 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_proj.sh |
| 424 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_sln.sh | 416 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_sln.sh |
| 425 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_vcxproj.sh | 417 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_vcxproj.sh |
| 426 DIST-SRCS-$(CONFIG_MSVS) += build/make/msvs_common.sh | 418 DIST-SRCS-$(CONFIG_MSVS) += build/make/msvs_common.sh |
| 427 DIST-SRCS-$(CONFIG_MSVS) += build/x86-msvs/obj_int_extract.bat | |
| 428 DIST-SRCS-$(CONFIG_MSVS) += build/arm-msvs/obj_int_extract.bat | |
| 429 DIST-SRCS-$(CONFIG_RVCT) += build/make/armlink_adapter.sh | 419 DIST-SRCS-$(CONFIG_RVCT) += build/make/armlink_adapter.sh |
| 430 # Include obj_int_extract if we use offsets from *_asm_*_offsets | |
| 431 DIST-SRCS-$(ARCH_ARM)$(ARCH_X86)$(ARCH_X86_64) += build/make/obj_int_extr
act.c | |
| 432 DIST-SRCS-$(ARCH_ARM) += build/make/ads2gas.pl | 420 DIST-SRCS-$(ARCH_ARM) += build/make/ads2gas.pl |
| 433 DIST-SRCS-$(ARCH_ARM) += build/make/ads2gas_apple.pl | 421 DIST-SRCS-$(ARCH_ARM) += build/make/ads2gas_apple.pl |
| 434 DIST-SRCS-$(ARCH_ARM) += build/make/ads2armasm_ms.pl | 422 DIST-SRCS-$(ARCH_ARM) += build/make/ads2armasm_ms.pl |
| 435 DIST-SRCS-$(ARCH_ARM) += build/make/thumb.pm | 423 DIST-SRCS-$(ARCH_ARM) += build/make/thumb.pm |
| 436 DIST-SRCS-yes += $(target:-$(TOOLCHAIN)=).mk | 424 DIST-SRCS-yes += $(target:-$(TOOLCHAIN)=).mk |
| 437 endif | 425 endif |
| 438 INSTALL-SRCS := $(call cond_enabled,CONFIG_INSTALL_SRCS,INSTALL-SRCS) | 426 INSTALL-SRCS := $(call cond_enabled,CONFIG_INSTALL_SRCS,INSTALL-SRCS) |
| 439 ifeq ($(MAKECMDGOALS),dist) | 427 ifeq ($(MAKECMDGOALS),dist) |
| 440 INSTALL-SRCS += $(call cond_enabled,CONFIG_INSTALL_SRCS,DIST-SRCS) | 428 INSTALL-SRCS += $(call cond_enabled,CONFIG_INSTALL_SRCS,DIST-SRCS) |
| 441 endif | 429 endif |
| 442 .install-srcs: $(addprefix $(DIST_DIR)/src/,$(INSTALL-SRCS)) | 430 .install-srcs: $(addprefix $(DIST_DIR)/src/,$(INSTALL-SRCS)) |
| 443 @touch $@ | 431 @touch $@ |
| 444 | 432 |
| 445 clean:: | 433 clean:: |
| 446 rm -f .install-srcs | 434 rm -f .install-srcs |
| 447 | 435 |
| 448 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 436 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
| 449 BUILD_TARGETS += .projects | 437 BUILD_TARGETS += .projects |
| 450 INSTALL_TARGETS += .install-projects | 438 INSTALL_TARGETS += .install-projects |
| 451 endif | 439 endif |
| 452 BUILD_TARGETS += .docs .libs .bins | 440 BUILD_TARGETS += .docs .libs .bins |
| 453 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins | 441 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins |
| 454 all: $(BUILD_TARGETS) | 442 all: $(BUILD_TARGETS) |
| 455 install:: $(INSTALL_TARGETS) | 443 install:: $(INSTALL_TARGETS) |
| 456 dist: $(INSTALL_TARGETS) | 444 dist: $(INSTALL_TARGETS) |
| 457 test:: | 445 test:: |
| OLD | NEW |