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.4KB

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