Commit 90670e09 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use libtool

parent e5660521
......@@ -16,6 +16,13 @@ AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_GCC_TRADITIONAL
dnl Libtool
m4_undefine([AC_PROG_CXX])
m4_defun([AC_PROG_CXX],[])
m4_undefine([AC_PROG_F77])
m4_defun([AC_PROG_F77],[])
AC_PROG_LIBTOOL
dnl CC-specific flags
AC_SUBST([OPT_CFLAGS])
if test x"$GCC" = x"yes"; then
......@@ -84,7 +91,6 @@ fi
#libtool# AC_PROG_LIBTOOL
dnl Build the PIC library? - to be removed once libtool is re-enabled
AC_PROG_RANLIB
case "${target_os}" in
*mingw32* | *cygwin* | *djgpp*)
NEED_PIC=false
......
include_HEADERS = dts.h
EXTRA_DIST = tendra.h audio_out.h
noinst_HEADERS = tendra.h audio_out.h
AM_CFLAGS = $(OPT_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_LIBRARIES = libao.a
libao_a_SOURCES = audio_out.c audio_out_null.c audio_out_float.c \
audio_out_oss.c audio_out_solaris.c audio_out_al.c \
audio_out_win.c audio_out_wav.c audio_out_aif.c \
audio_out_peak.c convert2s16.c
noinst_LTLIBRARIES = libao.la
libao_la_SOURCES = audio_out.c audio_out_null.c audio_out_float.c \
audio_out_oss.c audio_out_solaris.c audio_out_al.c \
audio_out_win.c audio_out_wav.c audio_out_aif.c \
audio_out_peak.c convert2s16.c \
audio_out_internal.h
EXTRA_DIST = configure.incl audio_out_internal.h
EXTRA_DIST = configure.incl
AM_CFLAGS = $(OPT_CFLAGS) $(LIBDTS_CFLAGS)
#libtool# lib_LTLIBRARIES = libdts.la
#libtool#
#libtool# libdts_la_SOURCES = bitstream.c parse.c downmix.c
#libtool# libdts_la_LIBADD = $(LIBDTS_LIBS)
#libtool# libdts_la_LDFLAGS = -no-undefined
lib_LIBRARIES = libdts.a $(libdts_pic_a)
libdts_a_SOURCES = bitstream.c parse.c downmix.c
lib_LTLIBRARIES = libdts.la
libdts_la_SOURCES = dts_internal.h tables.h tables_quantization.h \
tables_huffman.h tables_fir.h tables_adpcm.h tables_vq.h \
bitstream.h bitstream.c \
parse.c downmix.c dts_internal.h
libdts_la_LDFLAGS = -no-undefined -version 0:0:0 -export-symbol-regex dts_.*
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdts.pc
EXTRA_DIST = configure.incl dts_internal.h bitstream.h tables.h tables_quantization.h tables_huffman.h tables_fir.h tables_adpcm.h tables_vq.h
if NEED_PIC
libdts_pic_a = libdts_pic.a
endif
libdts_pic_a_SOURCES = $(libdts_a_SOURCES)
libdts_pic_a_CPPFLAGS = -fPIC -DPIC
EXTRA_DIST = configure.incl
......@@ -2,13 +2,10 @@ AM_CFLAGS = $(DTSDEC_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include
bin_PROGRAMS = dtsdec extract_dts
dtsdec_SOURCES = dtsdec.c getopt.c gettimeofday.c
#libtool# dtsdec_LDADD = $(top_builddir)/libdts/libdts.la \
#libtool# $(top_builddir)/libao/libao.a $(LIBAO_LIBS)
dtsdec_LDADD = $(top_builddir)/libdts/libdts.a \
$(top_builddir)/libao/libao.a $(LIBAO_LIBS)
dtsdec_SOURCES = dtsdec.c getopt.h getopt.c gettimeofday.h gettimeofday.c
dtsdec_LDADD = $(top_builddir)/libdts/libdts.la \
$(top_builddir)/libao/libao.la $(LIBAO_LIBS)
extract_dts_SOURCES = extract_dts.c getopt.c
man_MANS = dtsdec.1 extract_dts.1
EXTRA_DIST = configure.incl getopt.h gettimeofday.h $(man_MANS)
EXTRA_DIST = configure.incl $(man_MANS)
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