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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 -lcblas -latlas -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_LDFLAGS += -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework Carbon -framework Accelerate -framework vecLib
  42. endif
  43. include src/libcm/Makefile.am
  44. src_libcm_libcm_la_SOURCES = $(cmSRC) $(cmHDR)
  45. include_HEADERS += $(cmHDR)
  46. lib_LTLIBRARIES += src/libcm/libcm.la
  47. include src/libcmpp/Makefile.am
  48. src_libcmpp_libcmpp_la_SOURCES = $(cmppSRC) $(cmppHDR)
  49. include_HEADERS += $(cmppHDR)
  50. lib_LTLIBRARIES += src/libcmpp/libcmpp.la
  51. include src/tlCtl/Makefile.am
  52. src_kc_kc_SOURCES = $(tlCtlSRC)
  53. src_kc_kc_SOURCES += src/kc/kcMain.cpp
  54. src_kc_kc_SOURCES += src/kc/kcApp.h src/kc/kcApp.cpp
  55. src_kc_kc_LDADD = $(CMLIBS) $(MYLIBS)
  56. bin_PROGRAMS += src/kc/kc