diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index fac7651f..bcfeb20b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,9 @@ include opus_sources.mk if FIXED_POINT SILK_SOURCES += $(SILK_SOURCES_FIXED) +if HAVE_SSE4_1 +SILK_SOURCES += $(SILK_SOURCES_SSE4_1) $(SILK_SOURCES_FIXED_SSE4_1) +endif else SILK_SOURCES += $(SILK_SOURCES_FLOAT) endif @@ -27,6 +30,14 @@ else OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) endif +if HAVE_SSE4_1 +CELT_SOURCES += $(CELT_SOURCES_SSE) $(CELT_SOURCES_SSE4_1) +else +if HAVE_SSE2 +CELT_SOURCES += $(CELT_SOURCES_SSE) +endif +endif + if CPU_ARM CELT_SOURCES += $(CELT_SOURCES_ARM) SILK_SOURCES += $(SILK_SOURCES_ARM) @@ -229,3 +240,13 @@ $(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): $(top_srcdir)/celt/arm/arm2gnu.pl # For autoconf-modified sources (e.g., armopts.s) %-gnu.S: %.s $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ + +SSE_OBJ = %_sse.o %_sse.lo %test_unit_mathops.o %test_unit_rotation.o + +if HAVE_SSE4_1 +$(SSE_OBJ): CFLAGS += -msse4.1 +else +if HAVE_SSE2 +$(SSE_OBJ): CFLAGS += -msse2 +endif +endif |