2012-10-30 07:28:18 +00:00
ACLOCAL_AMFLAGS = -I m4 # use custom macro's in ./m4
lib_LTLIBRARIES =
bin_PROGRAMS =
include_HEADERS =
# C compiler flags
# _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double)
# -Wall turn on all warnings
# -Wno-multichar - turns off multi-character constant warnings from cmAudioFile.c
2012-11-16 09:21:34 +00:00
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
2012-11-24 18:36:29 +00:00
AM_CPPFLAGS += -I$( srcdir) /src/libcmpp -I$( srcdir) /src/libcmpp/fltk -I$( srcdir) /src/tlCtl
2012-11-16 09:21:34 +00:00
AM_CFLAGS = -Wno-multichar
AM_CXXFLAGS =
AM_LDFLAGS =
2012-11-24 18:36:29 +00:00
MYLIBS = -lpthread -lfftw3f -lfftw3 -lfltk -lX11
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
2012-10-30 07:28:18 +00:00
# debug/release switches
i f D E B U G
AM_CFLAGS += -g
AM_CXXFLAGS += -g
e l s e
AM_CFLAGS += -O3
AM_CXXFLAGS += -O3
e n d i f
# NOTE: 10/25/12 The use of -Wl, -Bstatic -Wl, -Bdynamic forces linking
# against the static version of 'libasound' and then turns dynamic linking
# back on for the other libraries.
# For some reason dynamically linking to asound causes runtime problems.
# The most notable of which is the inability for ALSA to successfully
# return hardware parameter values.
# See: http://stackoverflow.com/questions/809794/use-both-static-and-dynamically-linked-libraries-in-gcc?rq=1
# Linux specific
i f O S _ L I N U X
MYLIBS += -llapack -lcblas -latlas -lgfortran
i f O S _ 6 4
AM_LDFLAGS += -L/usr/lib64/atlas -L/usr/lib64 -Wl,-Bstatic -lasound -Wl,-Bdynamic
MYLIBS += -lrt -lm
AM_CFLAGS += -m64
e n d i f
e n d i f
i f O S _ O S X
AM_LDFLAGS += -framework Cocoa -framework CoreAudio -framework CoreMIDI -framework Carbon -framework Accelerate -framework vecLib
e n d i f
i n c l u d e s r c / l i b c m / M a k e f i l e . a m
src_libcm_libcm_la_SOURCES = $( cmSRC) $( cmHDR)
include_HEADERS += $( cmHDR)
lib_LTLIBRARIES += src/libcm/libcm.la
2012-11-24 18:36:29 +00:00
i n c l u d e s r c / l i b c m p p / M a k e f i l e . a m
src_libcmpp_libcmpp_la_SOURCES = $( cmppSRC) $( cmppHDR)
include_HEADERS += $( cmppHDR)
lib_LTLIBRARIES += src/libcmpp/libcmpp.la
2012-11-16 09:21:34 +00:00
i n c l u d e s r c / t l C t l / M a k e f i l e . a m
src_kc_kc_SOURCES = $( tlCtlSRC)
src_kc_kc_SOURCES += src/kc/kcMain.cpp
2012-11-03 20:05:46 +00:00
src_kc_kc_SOURCES += src/kc/kcApp.h src/kc/kcApp.cpp
src_kc_kc_LDADD = $( CMLIBS) $( MYLIBS)
bin_PROGRAMS += src/kc/kc