|
@@ -111,10 +111,10 @@ endif
|
111
|
111
|
|
112
|
112
|
lib_LTLIBRARIES=
|
113
|
113
|
include_HEADERS=
|
114
|
|
-
|
|
114
|
+AM_LDFLAGS=
|
115
|
115
|
|
116
|
116
|
AM_CPPFLAGS = -D _GNU_SOURCE -I.. -I$(srcdir)/src -I$(srcdir)/src/dsp -I$(srcdir)/src/vop -I$(srcdir)/src/app
|
117
|
|
-AM_CFLAGS = -Wno-multichar
|
|
117
|
+AM_CFLAGS = -Wall -Wno-multichar
|
118
|
118
|
AM_CXXFLAGS =
|
119
|
119
|
|
120
|
120
|
# debug/release switches
|
|
@@ -128,6 +128,7 @@ endif
|
128
|
128
|
|
129
|
129
|
# Linux specific compiler flags
|
130
|
130
|
if OS_LINUX
|
|
131
|
+ AM_LDFLAGS += -lasound # why add this link flag? here's why: https://stackoverflow.com/questions/35480928/alsa-unexpected-results-when-called-from-shared-library
|
131
|
132
|
if OS_64
|
132
|
133
|
AM_CFLAGS += -m64
|
133
|
134
|
endif
|
|
@@ -143,13 +144,15 @@ src_libcm_la_SOURCES = $(cmSRC) $(cmHDR)
|
143
|
144
|
include_HEADERS += $(cmHDR)
|
144
|
145
|
lib_LTLIBRARIES += src/libcm.la
|
145
|
146
|
|
146
|
|
-
|
147
|
|
-# distclean-local sets the source tree back to it's minimal, pre-configure, state.
|
|
147
|
+# See: https://www.gnu.org/savannah-checkouts/gnu/automake/manual/html_node/Clean.html#Clean
|
|
148
|
+# 'distclean-local' is used by automake 'distclean' to perform customized local actions
|
|
149
|
+# ${exec_prefix} is the install prefix given to 'configure' by the user.
|
|
150
|
+# ${srcdir} is the directory of this Makefile and is set by autoconf.
|
148
|
151
|
distclean-local:
|
149
|
152
|
rm -rf ${exec_prefix}/src
|
150
|
|
- rm -rf ${srcdir}/autom4te.cache
|
151
|
|
- rm -rf ${srcdir}/build-aux
|
152
|
|
- rm -f ${srcdir}/m4/libtool.m4 ${srcdir}/m4/lt~obsolete.m4 ${srcdir}/m4/ltsugar.m4
|
153
|
|
- rm -f ${srcdir}/m4/ltversion.m4 ${srcdir}/m4/ltoptions.m4
|
154
|
|
- rm -f ${srcdir}/aclocal.m4 ${srcdir}/config.h.in ${srcdir}/config.h.in~
|
155
|
|
- rm -f ${srcdir}/Makefile.in ${srcdir}/configure
|
|
153
|
+ rm -rf ${exec_prefix}/lib
|
|
154
|
+ rm -rf ${exec_prefix}/include
|
|
155
|
+
|
|
156
|
+maintainer-clean-local:
|
|
157
|
+ ${srcdir}/config.h.in~
|
|
158
|
+
|