Index: source/libvpx/build/make/Makefile |
diff --git a/source/libvpx/build/make/Makefile b/source/libvpx/build/make/Makefile |
index fc7749a5519b20a6a997755d5c33456131fced96..a16f41c2f58a2ce2bcdca401f3597b653050fea5 100644 |
--- a/source/libvpx/build/make/Makefile |
+++ b/source/libvpx/build/make/Makefile |
@@ -56,13 +56,10 @@ dist: |
fi |
endif |
+# Since we invoke make recursively for multiple targets we need to include the |
+# .mk file for the correct target, but only when $(target) is non-empty. |
ifneq ($(target),) |
-# Normally, we want to build the filename from the target and the toolchain. |
-# This disambiguates from the $(target).mk file that exists in the source tree. |
-# However, the toolchain is part of the target in universal builds, so we |
-# don't want to include TOOLCHAIN in that case. FAT_ARCHS is used to test |
-# if we're in the universal case. |
-include $(target)$(if $(FAT_ARCHS),,-$(TOOLCHAIN)).mk |
+include $(target)-$(TOOLCHAIN).mk |
endif |
BUILD_ROOT?=. |
VPATH=$(SRC_PATH_BARE) |
@@ -313,21 +310,6 @@ $(1): |
$$(filter %.o,$$^) $$(extralibs) |
endef |
- |
- |
-define lipo_lib_template |
-$(1): $(addsuffix /$(1),$(FAT_ARCHS)) |
- $(if $(quiet),@echo " [LIPO] $$@") |
- $(qexec)libtool -static -o $$@ $$? |
-endef |
- |
-define lipo_bin_template |
-$(1): $(addsuffix /$(1),$(FAT_ARCHS)) |
- $(if $(quiet),@echo " [LIPO] $$@") |
- $(qexec)lipo -output $$@ -create $$? |
-endef |
- |
- |
# |
# Get current configuration |
# |