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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_cmflapp_cmflapp_SOURCES = src/cmflapp/main.cpp src/cmflapp/app.h src/cmflapp/app.cpp
  47. src_cmflapp_cmflapp_SOURCES += src/cmflapp/Fl_Splitter.h src/cmflapp/Fl_Splitter.cpp
  48. src_cmflapp_cmflapp_LDADD = $(CMLIBS) $(MYLIBS)
  49. bin_PROGRAMS += src/cmflapp/cmflapp