From 5b1956fe49f958a4674f4e470fc8a63bc5576016 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 11 Sep 2017 20:37:03 +0200 Subject: Move sms and dms code (NMT) to separate lib.a --- src/nmt/Makefile.am | 9 +++++++-- src/r2000/Makefile.am | 1 - src/test/Makefile.am | 29 +++++++++++++---------------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/nmt/Makefile.am b/src/nmt/Makefile.am index c19098c..0c567be 100644 --- a/src/nmt/Makefile.am +++ b/src/nmt/Makefile.am @@ -1,22 +1,27 @@ AM_CPPFLAGS = -Wall -Wextra -g $(all_includes) +noinst_LIBRARIES = libdmssms.a + bin_PROGRAMS = \ nmt +libdmssms_a_SOURCES = \ + dms.c \ + sms.c + nmt_SOURCES = \ nmt.c \ countries.c \ transaction.c \ dsp.c \ frame.c \ - dms.c \ - sms.c \ image.c \ tones.c \ announcement.c \ main.c nmt_LDADD = \ $(COMMON_LA) \ + libdmssms.a \ $(top_builddir)/src/common/libmobile.a \ $(top_builddir)/src/common/libcommon.a \ $(ALSA_LIBS) \ diff --git a/src/r2000/Makefile.am b/src/r2000/Makefile.am index 4f591b6..5beee48 100644 --- a/src/r2000/Makefile.am +++ b/src/r2000/Makefile.am @@ -1,4 +1,3 @@ -#AUTOMAKE_OPTIONS = subdir-objects AM_CPPFLAGS = -Wall -Wextra -g $(all_includes) bin_PROGRAMS = \ diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 6bf0121..d310415 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -1,4 +1,3 @@ -AUTOMAKE_OPTIONS = subdir-objects AM_CPPFLAGS = -Wall -g $(all_includes) noinst_PROGRAMS = \ @@ -21,9 +20,7 @@ test_filter_LDADD = \ $(SOAPY_LIBS) \ -lm -test_compandor_SOURCES = \ - test_compandor.c \ - dummy.c +test_compandor_SOURCES = dummy.x test_compandor.c test_compandor_LDADD = \ $(COMMON_LA) \ @@ -45,13 +42,11 @@ test_emphasis_LDADD = \ $(SOAPY_LIBS) \ -lm -test_dms_SOURCES = \ - $(top_builddir)/src/nmt/dms.c \ - test_dms.c \ - dummy.c +test_dms_SOURCES = test_dms.c dummy.c test_dms_LDADD = \ $(COMMON_LA) \ + $(top_builddir)/src/nmt/libdmssms.a \ $(top_builddir)/src/common/libmobile.a \ $(top_builddir)/src/common/libcommon.a \ $(ALSA_LIBS) \ @@ -59,13 +54,11 @@ test_dms_LDADD = \ $(SOAPY_LIBS) \ -lm -test_sms_SOURCES = \ - $(top_builddir)/src/nmt/sms.c \ - dummy.c \ - test_sms.c +test_sms_SOURCES = dummy.c test_sms.c test_sms_LDADD = \ $(COMMON_LA) \ + $(top_builddir)/src/nmt/libdmssms.a \ $(top_builddir)/src/common/libmobile.a \ $(top_builddir)/src/common/libcommon.a \ $(ALSA_LIBS) \ @@ -84,10 +77,14 @@ test_performance_LDADD = \ $(SOAPY_LIBS) \ -lm -test_hagelbarger_SOURCES = \ - $(top_builddir)/src/common/hagelbarger.c \ - test_hagelbarger.c +test_hagelbarger_SOURCES = dummy.c test_hagelbarger.c test_hagelbarger_LDADD = \ - $(COMMON_LA) + $(COMMON_LA) \ + $(top_builddir)/src/common/libmobile.a \ + $(top_builddir)/src/common/libcommon.a \ + $(ALSA_LIBS) \ + $(UHD_LIBS) \ + $(SOAPY_LIBS) \ + -lm -- cgit v1.2.3