cmtools is a collection of utilities for generating and processing machine readable musical scores based on MusicXML, MIDI and other data files.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. AM_CXXFLAGS =
  2. AM_LDFLAGS =
  3. AM_CPPFLAGS =
  4. AM_CFLAGS =
  5. ACLOCAL_AMFLAGS = -I m4 # use custom macro's in ./m4
  6. # if we are building and linking to a nested copy of libcm
  7. if BUILD_LIBCM
  8. # SUBDIRS = src/libcm # causes recursive make into given sub-directories
  9. AM_CPPFLAGS += -I$(srcdir)/src/libcm/src -I$(srcdir)/src/libcm/src/dsp -I$(srcdir)/src/libcm/src/vop -I$(srcdir)/src/libcm/src/app
  10. AM_LDFLAGS += -Lsrc/libcm/src
  11. endif
  12. # To Profile w/ gprof:
  13. # 1) Modify configure: ./configure --disable-shared CFLAGS="-pg"
  14. # 2) Run the program. ./foo
  15. # 3) Run gprof /libtool --mode=execute gprof ./foo
  16. # C compiler flags
  17. # _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double)
  18. # -Wall turn on all warnings
  19. # -Wno-multichar - turns off multi-character constant warnings from cmAudioFile.c
  20. AM_CPPFLAGS += -D _GNU_SOURCE -I..
  21. AM_CFLAGS += -Wno-multichar
  22. # debug/release switches
  23. if DEBUG
  24. AM_CFLAGS += -g
  25. AM_CXXFLAGS += -g
  26. else
  27. AM_CFLAGS += -O3
  28. AM_CXXFLAGS += -O3
  29. endif
  30. MYLIBS = -lpthread -lfftw3f -lfftw3 -lcm
  31. # Linux specific
  32. if OS_LINUX
  33. MYLIBS += -lsatlas -lasound
  34. if OS_64
  35. AM_CFLAGS += -m64
  36. AM_LDFLAGS += -L/usr/lib64/atlas -L/usr/lib64
  37. MYLIBS += -lrt -lm
  38. endif
  39. endif
  40. if OS_OSX
  41. AM_CPPFLAGS += -I/opt/local/include # Search macports directory for fftw headers
  42. AM_LDFLAGS += -L/opt/local/lib # and libraries.
  43. AM_LDFLAGS += -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework Carbon -framework Accelerate
  44. endif
  45. src_cmtools_cmtools_SOURCES = src/cmtools/cmtools.c
  46. src_cmtools_cmtools_LDADD = $(MYLIBS)
  47. bin_PROGRAMS = src/cmtools/cmtools
  48. src_cmtools_mas_SOURCES = src/cmtools/mas.c
  49. src_cmtools_mas_LDADD = $(MYLIBS)
  50. bin_PROGRAMS += src/cmtools/mas
  51. src_cmtools_audiodev_SOURCES = src/cmtools/audiodev.c
  52. src_cmtools_audiodev_LDADD = $(MYLIBS)
  53. bin_PROGRAMS += src/cmtools/audiodev
  54. # See: https://www.gnu.org/savannah-checkouts/gnu/automake/manual/html_node/Clean.html#Clean
  55. # 'make distclean' sets the source tree back to it's pre-configure state
  56. # 'distclean-local' is used by automake 'distclean' to perform customized local actions
  57. # ${exec_prefix} is the install prefix given to 'configure' by the user.
  58. # ${srcdir} is the directory of this Makefile and is set by autoconf.
  59. distclean-local:
  60. rm -rf ${exec_prefix}/src
  61. rm -rf ${exec_prefix}/bin
  62. rm -rf ${exec_prefix}/include
  63. rm -rf ${exec_prefix}/lib