Commit 9f429bae authored by Josh Coalson's avatar Josh Coalson
Browse files

initial version

parent d1c9858a
#
# automake provides the following useful targets:
#
# all: build all programs and libraries using the current
# configuration (set by configure)
#
# check: build and run all self-tests
#
# clean: remove everything except what's required to build everything
#
# distclean: remove everything except what goes in the distribution
#
# The old 'debug' target is obsolete; configure the source tree with
# ./configure --enable-debug to enable debugging and self-tests
#
# The old 'release' target is obsolete; this is now the default
#
SUBDIRS = src test
DISTCLEANFILES = libtool-disable-static
AUTOMAKE_OPTIONS = foreign
AC_INIT(src/flac/main.c)
AM_INIT_AUTOMAKE(flac, 0.5)
# We need two libtools, one that builds both shared and static, and
# one that builds only static. This is because the resulting libtool
# does not allow us to choose which to build at runtime.
AM_PROG_LIBTOOL
sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
chmod +x libtool-disable-static
AC_PROG_MAKE_SET
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac],[debug=false])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
AM_CONDITIONAL(XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
if test x$debug = xtrue; then
CFLAGS="$CFLAGS -g -O0 -DDEBUG"
else
CFLAGS="$CFLAGS -O3 -DNDEBUG"
fi
AC_OUTPUT( Makefile \
src/Makefile \
src/libFLAC/Makefile \
src/flac/Makefile \
src/plugin_xmms/Makefile \
src/test_streams/Makefile \
src/test_unit/Makefile \
test/Makefile \
)
if XMMS
XMMS_DIRS = plugin_xmms
endif
if DEBUG
DEBUG_DIRS = test_streams test_unit
endif
SUBDIRS = libFLAC flac $(XMMS_DIRS) $(DEBUG_DIRS)
bin_PROGRAMS = flac
CFLAGS = @CFLAGS@
flac_SOURCES = \
decode.c \
encode.c \
main.c
flac_LDFLAGS = -lm
flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
#
# GNU makefile
#
lib_LTLIBRARIES = libFLAC.la
if DEBUG
CFLAGS += @CFLAGS@ -DFLAC_OVERFLOW_DETECT
else
CFLAGS = @CFLAGS@
endif
libFLAC_la_SOURCES = \
bitbuffer.c \
crc.c \
encoder.c \
encoder_framing.c \
file_decoder.c \
fixed.c \
format.c \
lpc.c \
md5.c \
stream_decoder.c
#
# GNU makefile
#
CFLAGS = @CFLAGS@ @XMMS_CFLAGS@
xmmsinputplugindir = @XMMS_INPUT_PLUGIN_DIR@
# Don't build a static library
LIBTOOL = $(top_builddir)/libtool-disable-static
xmmsinputplugin_LTLIBRARIES = libxmms-flac.la
libxmms_flac_la_SOURCES = plugin.c
libxmms_flac_la_LIBADD = -L$(top_builddir)/src/libFLAC/.libs -lFLAC @XMMS_LIBS@
libxmms_flac_la_LDFLAGS = -module -avoid-version
CFLAGS = @CFLAGS@
noinst_PROGRAMS = test_streams
test_streams_SOURCES = \
main.c
test_streams_LDFLAGS = -lm
CLEANFILES = $(wildcard *.raw)
CFLAGS = @CFLAGS@
INCLUDES = -I$(top_srcdir)/src/libFLAC/include
noinst_PROGRAMS = test_unit
test_unit_LDFLAGS = -lm
test_unit_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
test_unit_SOURCES = \
bitbuffer.c \
main.c
TESTS = ./test_unit.sh ./test_streams.sh
CLEANFILES = $(wildcard *.raw) $(wildcard *.flac) $(wildcard *.cmp) \
$(wildcard *.log)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment