aboutsummaryrefslogtreecommitdiffstats
path: root/libgsmhr/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libgsmhr/Makefile.am')
-rw-r--r--libgsmhr/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/libgsmhr/Makefile.am b/libgsmhr/Makefile.am
index f36d759..ffbde21 100644
--- a/libgsmhr/Makefile.am
+++ b/libgsmhr/Makefile.am
@@ -1,3 +1,8 @@
+# This is _NOT_ the library release version, it's an API version.
+# Please read Chapter 6 "Library interface versions" of the libtool
+# documentation before making any modification
+LIBVERSION = 0:0:0
+
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS = -fPIC -Wall ${SYMBOL_VISIBILITY}
@@ -6,8 +11,6 @@ EXTRA_DIST = \
patches \
$(NULL)
-LIBVERSION=0:0:0
-
REFSRC_PATH=refsrc
REFSRC_SRC=refsrc/dtx.c refsrc/globdefs.c refsrc/host.c refsrc/sp_enc.c refsrc/sp_rom.c refsrc/vad.c refsrc/err_conc.c refsrc/homing.c refsrc/mathdp31.c refsrc/sp_dec.c refsrc/sp_frm.c refsrc/sp_sfrm.c
@@ -18,10 +21,11 @@ ${REFSRC_PATH}/.downloaded:
done
touch $@
-$(REFSRC_SRC) libgsmhr.c: ${REFSRC_PATH}/.downloaded
+$(REFSRC_SRC): ${REFSRC_PATH}/.downloaded
lib_LTLIBRARIES = libgsmhr.la
libgsmhr_la_SOURCES = $(REFSRC_SRC) libgsmhr.c
+libgsmhr_la_LDFLAGS = -version-info $(LIBVERSION)
libgsmhr_la_LIBADD = -ldl
clean-local:
@@ -29,3 +33,7 @@ clean-local:
distclean-local:
-rm -rf ${REFSRC_PATH}/
+
+# exclude files downloaded by fetch_sources.py
+dist-hook:
+ -rm -rf $(distdir)/$(REFSRC_PATH)