Makefile.am 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ## Process this file with automake to create Makefile.in
  2. ##
  3. ## This file is part of SoundTouch, an audio processing library for pitch/time adjustments
  4. ##
  5. ## SoundTouch is free software; you can redistribute it and/or modify it under the
  6. ## terms of the GNU General Public License as published by the Free Software
  7. ## Foundation; either version 2 of the License, or (at your option) any later
  8. ## version.
  9. ##
  10. ## SoundTouch is distributed in the hope that it will be useful, but WITHOUT ANY
  11. ## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. ## A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ##
  14. ## You should have received a copy of the GNU General Public License along with
  15. ## this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  16. ## Place - Suite 330, Boston, MA 02111-1307, USA
  17. include $(top_srcdir)/config/am_include.mk
  18. # set to something if you want other stuff to be included in the distribution tarball
  19. EXTRA_DIST=SoundTouch.sln SoundTouch.vcxproj
  20. noinst_HEADERS=AAFilter.h cpu_detect.h cpu_detect_x86.cpp FIRFilter.h RateTransposer.h TDStretch.h PeakFinder.h \
  21. InterpolateCubic.h InterpolateLinear.h InterpolateShannon.h
  22. lib_LTLIBRARIES=libSoundTouch.la
  23. #
  24. libSoundTouch_la_SOURCES=AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp \
  25. RateTransposer.cpp SoundTouch.cpp TDStretch.cpp cpu_detect_x86.cpp \
  26. BPMDetect.cpp PeakFinder.cpp InterpolateLinear.cpp InterpolateCubic.cpp \
  27. InterpolateShannon.cpp
  28. # Compiler flags
  29. #AM_CXXFLAGS+=
  30. # Compile the files that need MMX and SSE individually.
  31. libSoundTouch_la_LIBADD=libSoundTouchMMX.la libSoundTouchSSE.la
  32. noinst_LTLIBRARIES=libSoundTouchMMX.la libSoundTouchSSE.la
  33. libSoundTouchMMX_la_SOURCES=mmx_optimized.cpp
  34. libSoundTouchSSE_la_SOURCES=sse_optimized.cpp
  35. # We enable optimizations by default.
  36. # If MMX is supported compile with -mmmx.
  37. # Do not assume -msse is also supported.
  38. if HAVE_MMX
  39. libSoundTouchMMX_la_CXXFLAGS = -mmmx $(AM_CXXFLAGS)
  40. else
  41. libSoundTouchMMX_la_CXXFLAGS = $(AM_CXXFLAGS)
  42. endif
  43. # We enable optimizations by default.
  44. # If SSE is supported compile with -msse.
  45. if HAVE_SSE
  46. libSoundTouchSSE_la_CXXFLAGS = -msse $(AM_CXXFLAGS)
  47. else
  48. libSoundTouchSSE_la_CXXFLAGS = $(AM_CXXFLAGS)
  49. endif
  50. # Let the user disable optimizations if he wishes to.
  51. if !X86_OPTIMIZATIONS
  52. libSoundTouchMMX_la_CXXFLAGS = $(AM_CXXFLAGS)
  53. libSoundTouchSSE_la_CXXFLAGS = $(AM_CXXFLAGS)
  54. endif
  55. # Modify the default 0.0.0 to LIB_SONAME.0.0
  56. libSoundTouch_la_LDFLAGS=-version-info @LIB_SONAME@
  57. # other linking flags to add
  58. # noinst_LTLIBRARIES = libSoundTouchOpt.la
  59. # libSoundTouch_la_LIBADD = libSoundTouchOpt.la
  60. # libSoundTouchOpt_la_SOURCES = mmx_optimized.cpp sse_optimized.cpp
  61. # libSoundTouchOpt_la_CXXFLAGS = -O3 -msse -fcheck-new -I../../include