Programmable real-time audio signal processing application
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Makefile.am 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. AM_CXXFLAGS =
  2. AM_LDFLAGS =
  3. AM_CPPFLAGS =
  4. AM_CFLAGS =
  5. ACLOCAL_AMFLAGS = -I m4 # use custom macro's in ./m4
  6. # if we are building and linking to a nested copy of libcm
  7. if BUILD_LIBCM
  8. SUBDIRS = src/libcm
  9. AM_CPPFLAGS += -I$(srcdir)/src/libcm/src -I$(srcdir)/src/libcm/src/dsp -I$(srcdir)/src/libcm/src/vop -I$(srcdir)/src/libcm/src/app
  10. AM_LDFLAGS += -Lsrc/libcm/src
  11. endif
  12. # To Profile w/ gprof:
  13. # 1) Modify configure: ./configure --disable-shared CFLAGS="-pg"
  14. # 2) Run the program. ./foo
  15. # 3) Run gprof /libtool --mode=execute gprof ./foo
  16. # C compiler flags
  17. # _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double)
  18. # -Wall turn on all warnings
  19. # -Wno-multichar - turns off multi-character constant warnings from cmAudioFile.c
  20. AM_CPPFLAGS += -D _GNU_SOURCE -I.. -I$(srcdir)/src/libcmpp -I$(srcdir)/src/libcmpp/fltk -I$(srcdir)/src/tlCtl
  21. AM_CFLAGS += -Wno-multichar
  22. # debug/release switches
  23. if DEBUG
  24. AM_CFLAGS += -g
  25. AM_CXXFLAGS += -g
  26. else
  27. AM_CFLAGS += -O3
  28. AM_CXXFLAGS += -O3
  29. endif
  30. MYLIBS = -lpthread -lfftw3f -lfftw3 -lfltk -lX11 -lcm
  31. # NOTE: 10/25/12 The use of -Wl, -Bstatic -Wl, -Bdynamic forces linking
  32. # against the static version of 'libasound' and then turns dynamic linking
  33. # back on for the other libraries.
  34. # For some reason dynamically linking to asound causes runtime problems.
  35. # The most notable of which is the inability for ALSA to successfully
  36. # return hardware parameter values.
  37. # See: http://stackoverflow.com/questions/809794/use-both-static-and-dynamically-linked-libraries-in-gcc?rq=1
  38. # Linux specific
  39. if OS_LINUX
  40. MYLIBS += -lsatlas
  41. if OS_64
  42. AM_LDFLAGS += -L/usr/lib64/atlas -L/usr/lib64 -Wl,-Bstatic -lasound -Wl,-Bdynamic
  43. MYLIBS += -lrt -lm
  44. AM_CFLAGS += -m64
  45. endif
  46. endif
  47. if OS_OSX
  48. AM_CPPFLAGS += -I/opt/local/include # Search macports directory for fftw headers
  49. AM_LDFLAGS += -L/opt/local/lib # and libraries.
  50. AM_LDFLAGS += -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework Carbon -framework Accelerate
  51. endif
  52. include src/libcmpp/Makefile.am
  53. src_libcmpp_libcmpp_la_SOURCES = $(cmppSRC) $(cmppHDR)
  54. include_HEADERS = $(cmppHDR)
  55. lib_LTLIBRARIES = src/libcmpp/libcmpp.la
  56. include src/tlCtl/Makefile.am
  57. src_kc_kc_SOURCES = $(tlCtlSRC)
  58. src_kc_kc_SOURCES += src/kc/kcMain.cpp
  59. src_kc_kc_SOURCES += src/kc/kcApp.h src/kc/kcApp.cpp
  60. src_kc_kc_LDADD = src/libcmpp/libcmpp.la $(MYLIBS)
  61. bin_PROGRAMS = src/kc/kc