Programmable real-time audio signal processing application
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/libkplfltk -I$(srcdir)/src/libgm -I$(srcdir)/src/tlCtl
  11. AM_CFLAGS = -Wno-multichar
  12. AM_CXXFLAGS =
  13. AM_LDFLAGS =
  14. MYLIBS = -lpthread -lfftw3f -lfftw3 -lfltk -lcairo -lX11
  15. CMLIBS = src/libcm/libcm.la src/libgm/libgm.la src/libkplfltk/libkplfltk.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/libkplfltk/Makefile.am
  48. src_libkplfltk_libkplfltk_la_SOURCES = $(kplfltkSRC) $(kplfltkHDR)
  49. include_HEADERS += $(kplfltkHDR)
  50. lib_LTLIBRARIES += src/libkplfltk/libkplfltk.la
  51. include src/libgm/Makefile.am
  52. src_libgm_libgm_la_SOURCES = $(gmSRC) $(gmHDR)
  53. include_HEADERS += $(gmHDR)
  54. lib_LTLIBRARIES += src/libgm/libgm.la
  55. include src/tlCtl/Makefile.am
  56. src_kc_kc_SOURCES = $(tlCtlSRC)
  57. src_kc_kc_SOURCES += src/kc/kcMain.cpp
  58. src_kc_kc_SOURCES += src/kc/kcApp.h src/kc/kcApp.cpp
  59. # src_kc_kc_SOURCES += src/kc/Fl_Splitter.h src/kc/Fl_Splitter.cpp
  60. src_kc_kc_SOURCES += src/kc/Fl_File_Btn.h src/kc/Fl_Vert_Progress.h
  61. src_kc_kc_SOURCES += src/kc/Fl_File_Btn.cpp src/kc/Fl_Vert_Progress.cpp
  62. src_kc_kc_LDADD = $(CMLIBS) $(MYLIBS)
  63. bin_PROGRAMS += src/kc/kc