filter out asm includes

Don't add include files to the archive. Avoids build failures for
Windows such as:
the input file 'libvpx_g.a(x86_abi_support.asm.o)' has no sections

Cherry picked from libvpx e83d00f

Change-Id: I3dce787901e6285cebc46029c20ad3993039150d
diff --git a/libs.mk b/libs.mk
index d481c47..840f250 100644
--- a/libs.mk
+++ b/libs.mk
@@ -151,6 +151,12 @@
 	@echo $(CODEC_SRCS) | xargs -n1 echo | LC_ALL=C sort -u > $@
 CLEAN-OBJS += libaom_srcs.txt
 
+# Assembly files that are included, but don't define symbols themselves.
+# Filtered out to avoid Visual Studio build warnings.
+ASM_INCLUDES := \
+    third_party/x86inc/x86inc.asm \
+    aom_config.asm \
+    aom_ports/x86_abi_support.asm \
 
 ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
 ifeq ($(CONFIG_MSVS),yes)
@@ -162,13 +168,6 @@
             --out=$@ $^
 CLEAN-OBJS += aom.def
 
-# Assembly files that are included, but don't define symbols themselves.
-# Filtered out to avoid Visual Studio build warnings.
-ASM_INCLUDES := \
-    third_party/x86inc/x86inc.asm \
-    aom_config.asm \
-    aom_ports/x86_abi_support.asm \
-
 aom.$(VCPROJ_SFX): $(CODEC_SRCS) aom.def
 	@echo "    [CREATE] $@"
 	$(qexec)$(GEN_VCPROJ) \
@@ -191,7 +190,7 @@
 
 endif
 else
-LIBAOM_OBJS=$(call objs,$(CODEC_SRCS))
+LIBAOM_OBJS=$(call objs, $(filter-out $(ASM_INCLUDES), $(CODEC_SRCS)))
 OBJS-yes += $(LIBAOM_OBJS)
 LIBS-$(if yes,$(CONFIG_STATIC)) += $(BUILD_PFX)libaom.a $(BUILD_PFX)libaom_g.a
 $(BUILD_PFX)libaom_g.a: $(LIBAOM_OBJS)