aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Makefile.am11
-rw-r--r--plugins/foxconn/mm-shared.c20
2 files changed, 26 insertions, 5 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 781088a2..76889342 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -283,13 +283,16 @@ XMM_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/xmm
# Common Foxconn modem support library (MBIM only)
if WITH_MBIM
-noinst_LTLIBRARIES += libmm-utils-foxconn.la
-libmm_utils_foxconn_la_SOURCES = \
+pkglib_LTLIBRARIES += libmm-shared-foxconn.la
+libmm_shared_foxconn_la_SOURCES = \
+ foxconn/mm-shared.c \
foxconn/mm-broadband-modem-foxconn-t77w968.c \
foxconn/mm-broadband-modem-foxconn-t77w968.h \
$(NULL)
+libmm_shared_foxconn_la_CPPFLAGS = $(SHARED_COMMON_COMPILER_FLAGS)
+libmm_shared_foxconn_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS)
+
FOXCONN_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/foxconn
-FOXCONN_COMMON_LIBADD_FLAGS = $(builddir)/libmm-utils-foxconn.la
endif
################################################################################
@@ -836,7 +839,6 @@ libmm_plugin_foxconn_la_SOURCES = \
$(NULL)
libmm_plugin_foxconn_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) $(FOXCONN_COMMON_COMPILER_FLAGS)
libmm_plugin_foxconn_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
-libmm_plugin_foxconn_la_LIBADD = $(FOXCONN_COMMON_LIBADD_FLAGS)
dist_udevrules_DATA += foxconn/77-mm-foxconn-port-types.rules
@@ -1135,7 +1137,6 @@ libmm_plugin_dell_la_CPPFLAGS = \
libmm_plugin_dell_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
libmm_plugin_dell_la_LIBADD = \
$(TELIT_COMMON_LIBADD_FLAGS) \
- $(FOXCONN_COMMON_LIBADD_FLAGS) \
$(NULL)
dist_udevrules_DATA += dell/77-mm-dell-port-types.rules
diff --git a/plugins/foxconn/mm-shared.c b/plugins/foxconn/mm-shared.c
new file mode 100644
index 00000000..3b017574
--- /dev/null
+++ b/plugins/foxconn/mm-shared.c
@@ -0,0 +1,20 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details:
+ *
+ * Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
+ */
+
+#include "mm-shared.h"
+
+MM_SHARED_DEFINE_MAJOR_VERSION
+MM_SHARED_DEFINE_MINOR_VERSION
+MM_SHARED_DEFINE_NAME(Foxconn)