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

Side by Side Diff: source/libvpx/build/make/Makefile

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « source/libvpx/args.c ('k') | source/libvpx/build/make/configure.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 fi 49 fi
50 @if [ -d "$(DIST_DIR)" ]; then \ 50 @if [ -d "$(DIST_DIR)" ]; then \
51 echo " [MD5SUM] $(DIST_DIR)"; \ 51 echo " [MD5SUM] $(DIST_DIR)"; \
52 cd $(DIST_DIR) && \ 52 cd $(DIST_DIR) && \
53 $(md5sum) `find . -name md5sums.txt -prune -o -type f -print` \ 53 $(md5sum) `find . -name md5sums.txt -prune -o -type f -print` \
54 | sed -e 's/MD5(\(.*\))= \([0-9a-f]\{32\}\)/\2 \1/' \ 54 | sed -e 's/MD5(\(.*\))= \([0-9a-f]\{32\}\)/\2 \1/' \
55 > md5sums.txt;\ 55 > md5sums.txt;\
56 fi 56 fi
57 endif 57 endif
58 58
59 # Since we invoke make recursively for multiple targets we need to include the
60 # .mk file for the correct target, but only when $(target) is non-empty.
59 ifneq ($(target),) 61 ifneq ($(target),)
60 # Normally, we want to build the filename from the target and the toolchain. 62 include $(target)-$(TOOLCHAIN).mk
61 # This disambiguates from the $(target).mk file that exists in the source tree.
62 # However, the toolchain is part of the target in universal builds, so we
63 # don't want to include TOOLCHAIN in that case. FAT_ARCHS is used to test
64 # if we're in the universal case.
65 include $(target)$(if $(FAT_ARCHS),,-$(TOOLCHAIN)).mk
66 endif 63 endif
67 BUILD_ROOT?=. 64 BUILD_ROOT?=.
68 VPATH=$(SRC_PATH_BARE) 65 VPATH=$(SRC_PATH_BARE)
69 CFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH) 66 CFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH)
70 CXXFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH) 67 CXXFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH)
71 ASFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT)/ -I$(SRC_PATH)/ 68 ASFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT)/ -I$(SRC_PATH)/
72 DIST_DIR?=dist 69 DIST_DIR?=dist
73 HOSTCC?=gcc 70 HOSTCC?=gcc
74 TGT_ISA:=$(word 1, $(subst -, ,$(TOOLCHAIN))) 71 TGT_ISA:=$(word 1, $(subst -, ,$(TOOLCHAIN)))
75 TGT_OS:=$(word 2, $(subst -, ,$(TOOLCHAIN))) 72 TGT_OS:=$(word 2, $(subst -, ,$(TOOLCHAIN)))
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 # for creating them. 303 # for creating them.
307 $(1): 304 $(1):
308 $(if $(quiet),@echo " [LD] $$@") 305 $(if $(quiet),@echo " [LD] $$@")
309 $(qexec)$$(LD) -dynamiclib $$(LDFLAGS) \ 306 $(qexec)$$(LD) -dynamiclib $$(LDFLAGS) \
310 -exported_symbols_list $$(EXPORTS_FILE) \ 307 -exported_symbols_list $$(EXPORTS_FILE) \
311 -Wl,-headerpad_max_install_names,-compatibility_version,1.0,-current_ver sion,$$(VERSION_MAJOR) \ 308 -Wl,-headerpad_max_install_names,-compatibility_version,1.0,-current_ver sion,$$(VERSION_MAJOR) \
312 -o $$@ \ 309 -o $$@ \
313 $$(filter %.o,$$^) $$(extralibs) 310 $$(filter %.o,$$^) $$(extralibs)
314 endef 311 endef
315 312
316
317
318 define lipo_lib_template
319 $(1): $(addsuffix /$(1),$(FAT_ARCHS))
320 $(if $(quiet),@echo " [LIPO] $$@")
321 $(qexec)libtool -static -o $$@ $$?
322 endef
323
324 define lipo_bin_template
325 $(1): $(addsuffix /$(1),$(FAT_ARCHS))
326 $(if $(quiet),@echo " [LIPO] $$@")
327 $(qexec)lipo -output $$@ -create $$?
328 endef
329
330
331 # 313 #
332 # Get current configuration 314 # Get current configuration
333 # 315 #
334 ifneq ($(target),) 316 ifneq ($(target),)
335 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk 317 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk
336 endif 318 endif
337 319
338 skip_deps := $(filter %clean,$(MAKECMDGOALS)) 320 skip_deps := $(filter %clean,$(MAKECMDGOALS))
339 skip_deps += $(findstring testdata,$(MAKECMDGOALS)) 321 skip_deps += $(findstring testdata,$(MAKECMDGOALS))
340 ifeq ($(strip $(skip_deps)),) 322 ifeq ($(strip $(skip_deps)),)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) 426 ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
445 BUILD_TARGETS += .projects 427 BUILD_TARGETS += .projects
446 INSTALL_TARGETS += .install-projects 428 INSTALL_TARGETS += .install-projects
447 endif 429 endif
448 BUILD_TARGETS += .docs .libs .bins 430 BUILD_TARGETS += .docs .libs .bins
449 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins 431 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins
450 all: $(BUILD_TARGETS) 432 all: $(BUILD_TARGETS)
451 install:: $(INSTALL_TARGETS) 433 install:: $(INSTALL_TARGETS)
452 dist: $(INSTALL_TARGETS) 434 dist: $(INSTALL_TARGETS)
453 test:: 435 test::
OLDNEW
« no previous file with comments | « source/libvpx/args.c ('k') | source/libvpx/build/make/configure.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698