Programmable real-time audio signal processing application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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_CFLAGS = -Wno-multichar
  11. AM_CXXFLAGS =
  12. AM_LDFLAGS =
  13. MYLIBS = -lpthread -lfftw3f -lfftw3 -lfltk
  14. CMLIBS = src/libcm/libcm.la # autoconfig manual recommends storing direct referenes to non-3rd party libraries rather than using -L and -l
  15. # debug/release switches
  16. if DEBUG
  17. AM_CFLAGS += -g
  18. AM_CXXFLAGS += -g
  19. else
  20. AM_CFLAGS += -O3
  21. AM_CXXFLAGS += -O3
  22. endif
  23. # NOTE: 10/25/12 The use of -Wl, -Bstatic -Wl, -Bdynamic forces linking
  24. # against the static version of 'libasound' and then turns dynamic linking
  25. # back on for the other libraries.
  26. # For some reason dynamically linking to asound causes runtime problems.
  27. # The most notable of which is the inability for ALSA to successfully
  28. # return hardware parameter values.
  29. # See: http://stackoverflow.com/questions/809794/use-both-static-and-dynamically-linked-libraries-in-gcc?rq=1
  30. # Linux specific
  31. if OS_LINUX
  32. MYLIBS += -llapack -lcblas -latlas -lgfortran
  33. if OS_64
  34. AM_LDFLAGS += -L/usr/lib64/atlas -L/usr/lib64 -Wl,-Bstatic -lasound -Wl,-Bdynamic
  35. MYLIBS += -lrt -lm
  36. AM_CFLAGS += -m64
  37. endif
  38. endif
  39. if OS_OSX
  40. AM_LDFLAGS += -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework Carbon -framework Accelerate -framework vecLib
  41. endif
  42. include src/libcm/Makefile.am
  43. src_libcm_libcm_la_SOURCES = $(cmSRC) $(cmHDR)
  44. include_HEADERS += $(cmHDR)
  45. lib_LTLIBRARIES += src/libcm/libcm.la
  46. src_kc_kc_SOURCES = src/kc/kcMain.cpp
  47. src_kc_kc_SOURCES += src/kc/kcApp.h src/kc/kcApp.cpp
  48. src_kc_kc_SOURCES += src/kc/Fl_Splitter.h src/kc/Fl_Splitter.cpp
  49. src_kc_kc_SOURCES += src/kc/Fl_File_Btn.h src/kc/Fl_Vert_Progress.h
  50. src_kc_kc_SOURCES += src/kc/Fl_File_Btn.cpp src/kc/Fl_Vert_Progress.cpp
  51. src_kc_kc_LDADD = $(CMLIBS) $(MYLIBS)
  52. bin_PROGRAMS += src/kc/kc