summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am32
1 files changed, 22 insertions, 10 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 63e9b3f..a0c4ffa 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,23 +1,35 @@
-noinst_PROGRAMS = amrnb-dec$(EXEEXT) amrnb-enc$(EXEEXT) amrwb-dec$(EXEEXT) linkboth$(EXEEXT)
-
-EXTRA_DIST = Makefile.alt
+bin_PROGRAMS = amrwb-dec$(EXEEXT)
+noinst_PROGRAMS = linkboth$(EXEEXT)
+AM_CFLAGS =
+
+if AMRNB_DECODER
+ bin_PROGRAMS += amrnb-dec$(EXEEXT)
+else
+ AM_CFLAGS += -DDISABLE_AMRNB_DECODER
+endif
+if AMRNB_ENCODER
+ bin_PROGRAMS += amrnb-enc$(EXEEXT)
+ noinst_PROGRAMS += amrnb-enc-sine$(EXEEXT)
+else
+ AM_CFLAGS += -DDISABLE_AMRNB_ENCODER
+endif
INCLUDES = -I$(top_srcdir)/amrnb -I$(top_srcdir)/amrwb
-CLEANFILES = out.amr out.wav
-
amrnb_dec_LDADD = $(top_builddir)/amrnb/libopencore-amrnb.la
amrnb_enc_LDADD = $(top_builddir)/amrnb/libopencore-amrnb.la
-amrnb_enc_LDFLAGS = -lm
+amrnb_enc_sine_LDADD = $(top_builddir)/amrnb/libopencore-amrnb.la
+amrnb_enc_sine_LDFLAGS = -lm
amrwb_dec_LDADD = $(top_builddir)/amrwb/libopencore-amrwb.la
linkboth_LDFLAGS = -static
linkboth_LDADD = $(top_builddir)/amrnb/libopencore-amrnb.la $(top_builddir)/amrwb/libopencore-amrwb.la
-amrnb_dec_SOURCES = amrnb-dec.cpp wav.cpp
-amrnb_enc_SOURCES = amrnb-enc.c
-amrwb_dec_SOURCES = amrwb-dec.cpp wav.cpp
+amrnb_dec_SOURCES = amrnb-dec.c wavwriter.c
+amrnb_enc_SOURCES = amrnb-enc.c wavreader.c
+amrnb_enc_sine_SOURCES = amrnb-enc-sine.c
+amrwb_dec_SOURCES = amrwb-dec.c wavwriter.c
linkboth_SOURCES = linkboth.c
-noinst_HEADERS = wav.h
+noinst_HEADERS = wavwriter.h wavreader.h