Makefile.am, clean.sh : Added '-lasound' to library build. Made cleaning process more standard.
This commit is contained in:
parent
f36c81aae3
commit
4d5e88e766
23
Makefile.am
23
Makefile.am
@ -111,10 +111,10 @@ endif
|
|||||||
|
|
||||||
lib_LTLIBRARIES=
|
lib_LTLIBRARIES=
|
||||||
include_HEADERS=
|
include_HEADERS=
|
||||||
|
AM_LDFLAGS=
|
||||||
|
|
||||||
AM_CPPFLAGS = -D _GNU_SOURCE -I.. -I$(srcdir)/src -I$(srcdir)/src/dsp -I$(srcdir)/src/vop -I$(srcdir)/src/app
|
AM_CPPFLAGS = -D _GNU_SOURCE -I.. -I$(srcdir)/src -I$(srcdir)/src/dsp -I$(srcdir)/src/vop -I$(srcdir)/src/app
|
||||||
AM_CFLAGS = -Wno-multichar
|
AM_CFLAGS = -Wall -Wno-multichar
|
||||||
AM_CXXFLAGS =
|
AM_CXXFLAGS =
|
||||||
|
|
||||||
# debug/release switches
|
# debug/release switches
|
||||||
@ -128,6 +128,7 @@ endif
|
|||||||
|
|
||||||
# Linux specific compiler flags
|
# Linux specific compiler flags
|
||||||
if OS_LINUX
|
if OS_LINUX
|
||||||
|
AM_LDFLAGS += -lasound # why add this link flag? here's why: https://stackoverflow.com/questions/35480928/alsa-unexpected-results-when-called-from-shared-library
|
||||||
if OS_64
|
if OS_64
|
||||||
AM_CFLAGS += -m64
|
AM_CFLAGS += -m64
|
||||||
endif
|
endif
|
||||||
@ -143,13 +144,15 @@ src_libcm_la_SOURCES = $(cmSRC) $(cmHDR)
|
|||||||
include_HEADERS += $(cmHDR)
|
include_HEADERS += $(cmHDR)
|
||||||
lib_LTLIBRARIES += src/libcm.la
|
lib_LTLIBRARIES += src/libcm.la
|
||||||
|
|
||||||
|
# See: https://www.gnu.org/savannah-checkouts/gnu/automake/manual/html_node/Clean.html#Clean
|
||||||
# distclean-local sets the source tree back to it's minimal, pre-configure, state.
|
# 'distclean-local' is used by automake 'distclean' to perform customized local actions
|
||||||
|
# ${exec_prefix} is the install prefix given to 'configure' by the user.
|
||||||
|
# ${srcdir} is the directory of this Makefile and is set by autoconf.
|
||||||
distclean-local:
|
distclean-local:
|
||||||
rm -rf ${exec_prefix}/src
|
rm -rf ${exec_prefix}/src
|
||||||
rm -rf ${srcdir}/autom4te.cache
|
rm -rf ${exec_prefix}/lib
|
||||||
rm -rf ${srcdir}/build-aux
|
rm -rf ${exec_prefix}/include
|
||||||
rm -f ${srcdir}/m4/libtool.m4 ${srcdir}/m4/lt~obsolete.m4 ${srcdir}/m4/ltsugar.m4
|
|
||||||
rm -f ${srcdir}/m4/ltversion.m4 ${srcdir}/m4/ltoptions.m4
|
maintainer-clean-local:
|
||||||
rm -f ${srcdir}/aclocal.m4 ${srcdir}/config.h.in ${srcdir}/config.h.in~
|
${srcdir}/config.h.in~
|
||||||
rm -f ${srcdir}/Makefile.in ${srcdir}/configure
|
|
||||||
|
@ -14,9 +14,9 @@ function clean_dir {
|
|||||||
|
|
||||||
rm -f $1/bin/kc.app/Contents/MacOS/kc
|
rm -f $1/bin/kc.app/Contents/MacOS/kc
|
||||||
|
|
||||||
rm -rf $1/include
|
#rm -rf $1/include
|
||||||
rm -rf $1/lib
|
#rm -rf $1/lib
|
||||||
rm -rf $1/bin
|
#rm -rf $1/bin
|
||||||
rm -rf $1/.deps
|
rm -rf $1/.deps
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -30,11 +30,12 @@ clean_dir osx/release
|
|||||||
|
|
||||||
rm -rf osx/debug/a.out.dSYM
|
rm -rf osx/debug/a.out.dSYM
|
||||||
|
|
||||||
|
# delete everything created by 'autoreconf'.
|
||||||
#rm -rf ../octave/results
|
rm -rf ../build-aux
|
||||||
|
rm -rf ../autom4te.cache
|
||||||
# remove all of emacs backup files (files ending width '~')
|
rm -f ../config.h.in ../config.h.in~ ../configure ../libtool.m4
|
||||||
# find ../ -name "*~" -exec rm {} \;
|
rm -f ../Makefile.in ../aclocal.m4
|
||||||
|
rm -f ../m4/libtool.m4 ../m4/ltoptions.m4 ../m4/ltsugar.m4 ../m4/ltversion.m4 ../m4/lt~obsolete.m4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user