2008-02-10 17:24:28 +01:00
|
|
|
## Process this file with automake to create Makefile.in
|
|
|
|
##
|
|
|
|
## This file is part of SoundTouch, an audio processing library for pitch/time adjustments
|
|
|
|
##
|
|
|
|
## SoundTouch is free software; you can redistribute it and/or modify it under the
|
|
|
|
## terms of the GNU General Public License as published by the Free Software
|
|
|
|
## Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
## version.
|
|
|
|
##
|
|
|
|
## SoundTouch is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
|
|
## A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License along with
|
|
|
|
## this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
|
|
## Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/am_include.mk
|
|
|
|
|
|
|
|
|
|
|
|
# set to something if you want other stuff to be included in the distribution tarball
|
2018-06-01 14:49:08 +02:00
|
|
|
EXTRA_DIST=SoundTouch.sln SoundTouch.vcxproj
|
2008-02-10 17:24:28 +01:00
|
|
|
|
2018-06-01 14:58:57 +02:00
|
|
|
noinst_HEADERS=AAFilter.h cpu_detect.h cpu_detect_x86.cpp FIRFilter.h RateTransposer.h TDStretch.h PeakFinder.h \
|
|
|
|
InterpolateCubic.h InterpolateLinear.h InterpolateShannon.h
|
2008-02-10 17:24:28 +01:00
|
|
|
|
|
|
|
lib_LTLIBRARIES=libSoundTouch.la
|
2008-02-17 16:16:17 +01:00
|
|
|
#
|
2014-01-06 19:40:23 +01:00
|
|
|
libSoundTouch_la_SOURCES=AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp \
|
|
|
|
RateTransposer.cpp SoundTouch.cpp TDStretch.cpp cpu_detect_x86.cpp \
|
|
|
|
BPMDetect.cpp PeakFinder.cpp InterpolateLinear.cpp InterpolateCubic.cpp \
|
|
|
|
InterpolateShannon.cpp
|
2011-07-17 13:17:57 +02:00
|
|
|
|
|
|
|
# Compiler flags
|
2020-06-21 19:38:00 +02:00
|
|
|
#AM_CXXFLAGS+=
|
2011-07-17 13:17:57 +02:00
|
|
|
|
|
|
|
# Compile the files that need MMX and SSE individually.
|
2012-04-01 19:01:42 +02:00
|
|
|
libSoundTouch_la_LIBADD=libSoundTouchMMX.la libSoundTouchSSE.la
|
|
|
|
noinst_LTLIBRARIES=libSoundTouchMMX.la libSoundTouchSSE.la
|
2011-07-17 13:17:57 +02:00
|
|
|
libSoundTouchMMX_la_SOURCES=mmx_optimized.cpp
|
2012-04-01 19:01:42 +02:00
|
|
|
libSoundTouchSSE_la_SOURCES=sse_optimized.cpp
|
2011-07-17 13:17:57 +02:00
|
|
|
|
|
|
|
# We enable optimizations by default.
|
|
|
|
# If MMX is supported compile with -mmmx.
|
2012-04-01 19:01:42 +02:00
|
|
|
# Do not assume -msse is also supported.
|
2011-07-17 13:17:57 +02:00
|
|
|
if HAVE_MMX
|
|
|
|
libSoundTouchMMX_la_CXXFLAGS = -mmmx $(AM_CXXFLAGS)
|
|
|
|
else
|
|
|
|
libSoundTouchMMX_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
endif
|
2008-02-10 17:24:28 +01:00
|
|
|
|
2011-07-17 13:17:57 +02:00
|
|
|
# We enable optimizations by default.
|
2012-04-01 19:01:42 +02:00
|
|
|
# If SSE is supported compile with -msse.
|
|
|
|
if HAVE_SSE
|
|
|
|
libSoundTouchSSE_la_CXXFLAGS = -msse $(AM_CXXFLAGS)
|
2011-07-17 13:17:57 +02:00
|
|
|
else
|
2012-04-01 19:01:42 +02:00
|
|
|
libSoundTouchSSE_la_CXXFLAGS = $(AM_CXXFLAGS)
|
2011-07-17 13:17:57 +02:00
|
|
|
endif
|
2008-02-10 17:24:28 +01:00
|
|
|
|
2011-07-17 13:17:57 +02:00
|
|
|
# Let the user disable optimizations if he wishes to.
|
|
|
|
if !X86_OPTIMIZATIONS
|
|
|
|
libSoundTouchMMX_la_CXXFLAGS = $(AM_CXXFLAGS)
|
2018-05-10 20:51:49 +02:00
|
|
|
libSoundTouchSSE_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Modify the default 0.0.0 to LIB_SONAME.0.0
|
|
|
|
libSoundTouch_la_LDFLAGS=-version-info @LIB_SONAME@
|
|
|
|
|
|
|
|
# other linking flags to add
|
|
|
|
# noinst_LTLIBRARIES = libSoundTouchOpt.la
|
2008-02-17 16:16:17 +01:00
|
|
|
# libSoundTouch_la_LIBADD = libSoundTouchOpt.la
|
|
|
|
# libSoundTouchOpt_la_SOURCES = mmx_optimized.cpp sse_optimized.cpp
|
2012-04-01 19:01:42 +02:00
|
|
|
# libSoundTouchOpt_la_CXXFLAGS = -O3 -msse -fcheck-new -I../../include
|