Makefile system seems to work
authorjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Feb 2002 03:07:45 +0000 (03:07 +0000)
committerjmvalin <jmvalin@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 19 Feb 2002 03:07:45 +0000 (03:07 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@3073 0101bb08-14d6-0310-b084-bc0e0c8e3800

Makefile.am [new file with mode: 0644]
configure.in [new file with mode: 0644]
libspeex/Makefile.am [new file with mode: 0644]

diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..1e2bdca
--- /dev/null
@@ -0,0 +1,8 @@
+## Process this file with automake to produce Makefile.in. -*-Makefile-*-
+
+# Disable automatic dependency tracking if using other tools than gcc and gmake
+#AUTOMAKE_OPTIONS = no-dependencies
+
+EXTRA_DIST = 
+
+SUBDIRS = libspeex
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..e404a7b
--- /dev/null
@@ -0,0 +1,40 @@
+dnl Process this file with autoconf to produce a configure script. -*-m4-*-
+
+AC_INIT(libspeex/speex.h)
+
+SPEEX_MAJOR_VERSION=0
+SPEEX_MINOR_VERSION=0
+SPEEX_MICRO_VERSION=0
+SPEEX_VERSION=$SPEEX_MAJOR_VERSION.$SPEEX_MINOR_VERSION.$SPEEX_MICRO_VERSION
+SPEEX_BINARY_AGE=0
+SPEEX_INTERFACE_AGE=0
+
+# libtool versioning
+LT_RELEASE=$SPEEX_MAJOR_VERSION.$SPEEX_MINOR_VERSION
+LT_CURRENT=`expr $SPEEX_MICRO_VERSION - $SPEEX_INTERFACE_AGE`
+LT_REVISION=$SPEEX_INTERFACE_AGE
+LT_AGE=`expr $SPEEX_BINARY_AGE - $SPEEX_INTERFACE_AGE`
+AC_SUBST(LT_RELEASE)
+AC_SUBST(LT_CURRENT)
+AC_SUBST(LT_REVISION)
+AC_SUBST(LT_AGE)
+
+# For automake.
+VERSION=$SPEEX_VERSION
+PACKAGE=Speex
+
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
+AM_MAINTAINER_MODE
+
+AC_CANONICAL_HOST
+dnl AC_DISABLE_STATIC
+AM_PROG_LIBTOOL
+
+AC_CHECK_LIB(m, sin)
+dnl AC_DEFINE(VERSION, ${VERSION})
+dnl AC_DEFINE_UNQUOTED(VERSION, ${VERSION})
+
+dnl Output the makefiles and version.h.
+
+AC_OUTPUT([Makefile libspeex/Makefile ])
+
diff --git a/libspeex/Makefile.am b/libspeex/Makefile.am
new file mode 100644 (file)
index 0000000..61a26fe
--- /dev/null
@@ -0,0 +1,25 @@
+## Process this file with automake to produce Makefile.in. -*-Makefile-*-
+
+# $Id: Makefile.am,v 1.1 2002/02/19 03:07:45 jmvalin Exp $
+
+# Disable automatic dependency tracking if using other tools than gcc and gmake
+#AUTOMAKE_OPTIONS = no-dependencies
+
+lib_LTLIBRARIES = libspeex.la
+
+# Sources for compilation in the library
+libspeex_la_SOURCES = speex.c \
+       lpc.c \
+       ltp.c \
+       lsp.c \
+       quant_lsp.c \
+       lsp_tables_nb.c \
+       gain_table.c
+       
+libspeex_la_LDFLAGS = -release $(LT_RELEASE)
+
+bin_PROGRAMS = testenc
+
+testenc_SOURCES = testenc.c
+
+testenc_LDADD = libspeex.la