| |
| include $(top_srcdir)/gtester.make |
| |
| ################################################################################ |
| # common |
| ################################################################################ |
| |
| AM_CFLAGS = \ |
| $(WARN_CFLAGS) \ |
| $(MM_CFLAGS) \ |
| $(CODE_COVERAGE_CFLAGS) \ |
| $(GUDEV_CFLAGS) \ |
| -DPKGDATADIR=\"${pkgdatadir}\" \ |
| -I$(top_srcdir) \ |
| -I$(top_srcdir)/src \ |
| -I$(top_builddir)/src \ |
| -I$(top_srcdir)/src/kerneldevice \ |
| -I$(top_srcdir)/include \ |
| -I$(top_builddir)/include \ |
| -I$(top_srcdir)/libmm-glib \ |
| -I$(top_srcdir)/libmm-glib/generated \ |
| -I$(top_builddir)/libmm-glib/generated \ |
| $(NULL) |
| |
| AM_LDFLAGS = \ |
| $(WARN_LDFLAGS) \ |
| $(MM_LIBS) \ |
| $(CODE_COVERAGE_LDFLAGS) \ |
| $(GUDEV_LIBS) \ |
| $(NULL) |
| |
| if WITH_QMI |
| AM_CFLAGS += $(QMI_CFLAGS) |
| AM_LDFLAGS += $(QMI_LIBS) |
| endif |
| |
| if WITH_MBIM |
| AM_CFLAGS += $(MBIM_CFLAGS) |
| AM_LDFLAGS += $(MBIM_LIBS) |
| endif |
| |
| # Common compiler/linker flags for shared utils |
| SHARED_COMMON_COMPILER_FLAGS = \ |
| $(NULL) |
| SHARED_COMMON_LINKER_FLAGS = \ |
| -module \ |
| -avoid-version \ |
| $(NULL) |
| |
| # Common compiler/linker flags for plugins |
| PLUGIN_COMMON_COMPILER_FLAGS = \ |
| $(NULL) |
| PLUGIN_COMMON_LINKER_FLAGS = \ |
| -module \ |
| -avoid-version \ |
| -export-symbols-regex '^mm_plugin_major_version$$|^mm_plugin_minor_version$$|^mm_plugin_create$$' \ |
| $(NULL) |
| |
| # UDev rules |
| udevrulesdir = $(UDEV_BASE_DIR)/rules.d |
| dist_udevrules_DATA = |
| |
| # Unit tests |
| noinst_PROGRAMS = |
| |
| # Helper libs |
| noinst_LTLIBRARIES = |
| |
| # Plugins |
| pkglib_LTLIBRARIES = |
| |
| # Built sources |
| BUILT_SOURCES = |
| |
| # Clean files |
| CLEANFILES = |
| |
| # Data files |
| dist_pkgdata_DATA = |
| |
| ################################################################################ |
| # common service test support |
| ################################################################################ |
| |
| noinst_LTLIBRARIES += libmm-test-common.la |
| libmm_test_common_la_SOURCES = \ |
| tests/test-fixture.h \ |
| tests/test-fixture.c \ |
| tests/test-port-context.h \ |
| tests/test-port-context.c \ |
| tests/test-helpers.h \ |
| tests/test-helpers.c \ |
| $(NULL) |
| libmm_test_common_la_CPPFLAGS = \ |
| -I$(top_builddir)/libmm-glib/generated/tests \ |
| -DTEST_SERVICES=\""$(abs_top_builddir)/data/tests"\" \ |
| $(NULL) |
| libmm_test_common_la_LIBADD = \ |
| ${top_builddir}/libmm-glib/generated/tests/libmm-test-generated.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la |
| |
| EXTRA_DIST += tests/gsm-port.conf |
| |
| TEST_COMMON_COMPILER_FLAGS = \ |
| $(MM_CFLAGS) \ |
| -I$(top_srcdir)/plugins/tests \ |
| -I$(top_srcdir)/include \ |
| -I$(top_builddir)/include \ |
| -I$(top_srcdir)/libmm-glib \ |
| -I$(top_srcdir)/libmm-glib/generated \ |
| -I$(top_builddir)/libmm-glib/generated \ |
| -I$(top_builddir)/libmm-glib/generated/tests \ |
| -DCOMMON_GSM_PORT_CONF=\""$(abs_top_srcdir)/plugins/tests/gsm-port.conf"\" \ |
| $(NULL) |
| |
| TEST_COMMON_LIBADD_FLAGS = \ |
| $(builddir)/libmm-test-common.la \ |
| $(NULL) |
| |
| ################################################################################ |
| # common icera support |
| ################################################################################ |
| |
| if WITH_SHARED_ICERA |
| |
| noinst_LTLIBRARIES += libhelpers-icera.la |
| libhelpers_icera_la_SOURCES = \ |
| icera/mm-modem-helpers-icera.c \ |
| icera/mm-modem-helpers-icera.h \ |
| $(NULL) |
| libhelpers_icera_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"shared-icera\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-icera |
| test_modem_helpers_icera_SOURCES = \ |
| icera/tests/test-modem-helpers-icera.c \ |
| $(NULL) |
| test_modem_helpers_icera_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/icera \ |
| $(NULL) |
| test_modem_helpers_icera_LDADD = \ |
| $(builddir)/libhelpers-icera.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-shared-icera.la |
| libmm_shared_icera_la_SOURCES = \ |
| icera/mm-shared.c \ |
| icera/mm-broadband-modem-icera.h \ |
| icera/mm-broadband-modem-icera.c \ |
| icera/mm-broadband-bearer-icera.h \ |
| icera/mm-broadband-bearer-icera.c \ |
| $(NULL) |
| libmm_shared_icera_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) |
| -DMM_MODULE_NAME=\"shared-icera\" \ |
| $(NULL) |
| libmm_shared_icera_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| libmm_shared_icera_la_LIBADD = \ |
| $(builddir)/libhelpers-icera.la \ |
| $(NULL) |
| |
| ICERA_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/icera |
| |
| endif |
| |
| ################################################################################ |
| # common sierra support |
| ################################################################################ |
| |
| if WITH_SHARED_SIERRA |
| |
| noinst_LTLIBRARIES += libhelpers-sierra.la |
| libhelpers_sierra_la_SOURCES = \ |
| sierra/mm-modem-helpers-sierra.c \ |
| sierra/mm-modem-helpers-sierra.h \ |
| $(NULL) |
| libhelpers_sierra_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"shared-sierra\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-sierra |
| test_modem_helpers_sierra_SOURCES = \ |
| sierra/tests/test-modem-helpers-sierra.c \ |
| $(NULL) |
| test_modem_helpers_sierra_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/sierra \ |
| $(NULL) |
| test_modem_helpers_sierra_LDADD = \ |
| $(builddir)/libhelpers-sierra.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-shared-sierra.la |
| libmm_shared_sierra_la_SOURCES = \ |
| sierra/mm-shared.c \ |
| sierra/mm-common-sierra.c \ |
| sierra/mm-common-sierra.h \ |
| sierra/mm-sim-sierra.c \ |
| sierra/mm-sim-sierra.h \ |
| sierra/mm-broadband-bearer-sierra.c \ |
| sierra/mm-broadband-bearer-sierra.h \ |
| sierra/mm-broadband-modem-sierra.c \ |
| sierra/mm-broadband-modem-sierra.h \ |
| $(NULL) |
| libmm_shared_sierra_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-sierra\" \ |
| $(NULL) |
| libmm_shared_sierra_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| libmm_shared_sierra_la_LIBADD = \ |
| $(builddir)/libhelpers-sierra.la \ |
| $(NULL) |
| |
| SIERRA_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/sierra |
| |
| endif |
| |
| ################################################################################ |
| # common option support |
| ################################################################################ |
| |
| if WITH_SHARED_OPTION |
| |
| pkglib_LTLIBRARIES += libmm-shared-option.la |
| libmm_shared_option_la_SOURCES = \ |
| option/mm-shared.c \ |
| option/mm-shared-option.h \ |
| option/mm-shared-option.c \ |
| option/mm-sim-option.c \ |
| option/mm-sim-option.h \ |
| option/mm-broadband-modem-option.c \ |
| option/mm-broadband-modem-option.h \ |
| $(NULL) |
| libmm_shared_option_la_CPPFLAGS = $(SHARED_COMMON_COMPILER_FLAGS) |
| libmm_shared_option_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| |
| OPTION_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/option |
| |
| endif |
| |
| ################################################################################ |
| # common novatel support |
| ################################################################################ |
| |
| if WITH_SHARED_NOVATEL |
| |
| # Common Novatel modem support library |
| pkglib_LTLIBRARIES += libmm-shared-novatel.la |
| libmm_shared_novatel_la_SOURCES = \ |
| novatel/mm-shared.c \ |
| novatel/mm-common-novatel.c \ |
| novatel/mm-common-novatel.h \ |
| novatel/mm-broadband-modem-novatel.c \ |
| novatel/mm-broadband-modem-novatel.h \ |
| $(NULL) |
| libmm_shared_novatel_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-novatel\" \ |
| $(NULL) |
| libmm_shared_novatel_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| |
| NOVATEL_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/novatel |
| |
| endif |
| |
| ################################################################################ |
| # common xmm support |
| ################################################################################ |
| |
| if WITH_SHARED_XMM |
| |
| noinst_LTLIBRARIES += libhelpers-xmm.la |
| libhelpers_xmm_la_SOURCES = \ |
| xmm/mm-modem-helpers-xmm.c \ |
| xmm/mm-modem-helpers-xmm.h \ |
| $(NULL) |
| libhelpers_xmm_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"shared-xmm\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-xmm |
| test_modem_helpers_xmm_SOURCES = \ |
| xmm/tests/test-modem-helpers-xmm.c \ |
| $(NULL) |
| test_modem_helpers_xmm_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/xmm \ |
| $(NULL) |
| test_modem_helpers_xmm_LDADD = \ |
| $(builddir)/libhelpers-xmm.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-shared-xmm.la |
| libmm_shared_xmm_la_SOURCES = \ |
| xmm/mm-shared.c \ |
| xmm/mm-shared-xmm.h \ |
| xmm/mm-shared-xmm.c \ |
| xmm/mm-broadband-modem-xmm.h \ |
| xmm/mm-broadband-modem-xmm.c \ |
| $(NULL) |
| |
| if WITH_MBIM |
| libmm_shared_xmm_la_SOURCES += \ |
| xmm/mm-broadband-modem-mbim-xmm.h \ |
| xmm/mm-broadband-modem-mbim-xmm.c \ |
| $(NULL) |
| endif |
| |
| libmm_shared_xmm_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-xmm\" \ |
| $(NULL) |
| libmm_shared_xmm_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| libmm_shared_xmm_la_LIBADD = \ |
| $(builddir)/libhelpers-xmm.la \ |
| $(NULL) |
| |
| XMM_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/xmm |
| |
| endif |
| |
| ################################################################################ |
| # common telit support |
| ################################################################################ |
| |
| if WITH_SHARED_TELIT |
| |
| TELIT_ENUMS_INPUTS = \ |
| $(top_srcdir)/plugins/telit/mm-modem-helpers-telit.h \ |
| $(NULL) |
| |
| TELIT_ENUMS_GENERATED = \ |
| telit/mm-telit-enums-types.h \ |
| telit/mm-telit-enums-types.c \ |
| $(NULL) |
| |
| BUILT_SOURCES += $(TELIT_ENUMS_GENERATED) |
| CLEANFILES += $(TELIT_ENUMS_GENERATED) |
| |
| telit/mm-telit-enums-types.h: Makefile.am $(TELIT_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template |
| $(AM_V_GEN) \ |
| $(MKDIR_P) telit; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-modem-helpers-telit.h\"\n#ifndef __MM_TELIT_ENUMS_TYPES_H__\n#define __MM_TELIT_ENUMS_TYPES_H__\n" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.h.template \ |
| --ftail "#endif /* __MM_TELIT_ENUMS_TYPES_H__ */\n" \ |
| $(TELIT_ENUMS_INPUTS) > $@ |
| |
| telit/mm-telit-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template telit/mm-telit-enums-types.h |
| $(AM_V_GEN) \ |
| $(MKDIR_P) telit; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-telit-enums-types.h\"" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.c.template \ |
| $(TELIT_ENUMS_INPUTS) > $@ |
| |
| noinst_LTLIBRARIES += libhelpers-telit.la |
| libhelpers_telit_la_SOURCES = \ |
| telit/mm-modem-helpers-telit.c \ |
| telit/mm-modem-helpers-telit.h \ |
| $(NULL) |
| libhelpers_telit_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"shared-telit\" \ |
| -I$(top_srcdir)/plugins/telit \ |
| -I$(top_builddir)/plugins/telit \ |
| $(NULL) |
| nodist_libhelpers_telit_la_SOURCES = $(TELIT_ENUMS_GENERATED) |
| |
| noinst_PROGRAMS += test-modem-helpers-telit |
| test_modem_helpers_telit_SOURCES = \ |
| telit/tests/test-mm-modem-helpers-telit.c \ |
| $(NULL) |
| test_modem_helpers_telit_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/telit \ |
| -I$(top_builddir)/plugins/telit \ |
| $(TEST_COMMON_COMPILER_FLAGS) \ |
| $(NULL) |
| test_modem_helpers_telit_LDADD = \ |
| $(TEST_COMMON_LIBADD_FLAGS) \ |
| $(builddir)/libhelpers-telit.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| # Common telit modem support library |
| pkglib_LTLIBRARIES += libmm-shared-telit.la |
| libmm_shared_telit_la_SOURCES = \ |
| telit/mm-shared.c \ |
| telit/mm-common-telit.c \ |
| telit/mm-common-telit.h \ |
| telit/mm-shared-telit.c \ |
| telit/mm-shared-telit.h \ |
| telit/mm-broadband-modem-telit.c \ |
| telit/mm-broadband-modem-telit.h \ |
| $(NULL) |
| if WITH_MBIM |
| libmm_shared_telit_la_SOURCES += \ |
| telit/mm-broadband-modem-mbim-telit.h \ |
| telit/mm-broadband-modem-mbim-telit.c \ |
| $(NULL) |
| endif |
| |
| libmm_shared_telit_la_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/telit \ |
| -I$(top_builddir)/plugins/telit \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-telit\" \ |
| $(NULL) |
| libmm_shared_telit_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| libmm_shared_telit_la_LIBADD = \ |
| $(builddir)/libhelpers-telit.la \ |
| $(NULL) |
| |
| TELIT_COMMON_COMPILER_FLAGS = \ |
| -I$(top_srcdir)/plugins/telit \ |
| -I$(top_builddir)/plugins/telit \ |
| $(NULL) |
| |
| endif |
| |
| ################################################################################ |
| # common foxconn support |
| ################################################################################ |
| |
| # Common Foxconn modem support library (MBIM only) |
| if WITH_SHARED_FOXCONN |
| if WITH_MBIM |
| pkglib_LTLIBRARIES += libmm-shared-foxconn.la |
| libmm_shared_foxconn_la_SOURCES = \ |
| foxconn/mm-shared.c \ |
| foxconn/mm-broadband-modem-mbim-foxconn.c \ |
| foxconn/mm-broadband-modem-mbim-foxconn.h \ |
| $(NULL) |
| libmm_shared_foxconn_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-foxconn\" \ |
| $(NULL) |
| libmm_shared_foxconn_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| |
| FOXCONN_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/foxconn |
| endif |
| endif |
| |
| ################################################################################ |
| # common fibocom support |
| ################################################################################ |
| |
| # Common Fibocom modem support library (MBIM only) |
| if WITH_SHARED_FIBOCOM |
| if WITH_MBIM |
| pkglib_LTLIBRARIES += libmm-shared-fibocom.la |
| libmm_shared_fibocom_la_SOURCES = \ |
| fibocom/mm-shared.c \ |
| fibocom/mm-shared-fibocom.h \ |
| fibocom/mm-shared-fibocom.c \ |
| $(NULL) |
| |
| libmm_shared_fibocom_la_CPPFLAGS = \ |
| $(SHARED_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"shared-fibocom\" \ |
| $(NULL) |
| libmm_shared_fibocom_la_LDFLAGS = $(SHARED_COMMON_LINKER_FLAGS) |
| libmm_shared_fibocom_la_LIBADD = $(NULL) |
| |
| FIBOCOM_COMMON_COMPILER_FLAGS = -I$(top_srcdir)/plugins/fibocom |
| endif |
| endif |
| |
| ################################################################################ |
| # plugin: generic |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_GENERIC |
| |
| pkglib_LTLIBRARIES += libmm-plugin-generic.la |
| libmm_plugin_generic_la_SOURCES = \ |
| generic/mm-plugin-generic.c \ |
| generic/mm-plugin-generic.h \ |
| $(NULL) |
| libmm_plugin_generic_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"generic\" \ |
| $(NULL) |
| libmm_plugin_generic_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| noinst_PROGRAMS += test-service-generic |
| test_service_generic_SOURCES = generic/tests/test-service-generic.c |
| test_service_generic_CPPFLAGS = $(TEST_COMMON_COMPILER_FLAGS) |
| test_service_generic_LDADD = \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(TEST_COMMON_LIBADD_FLAGS) \ |
| $(NULL) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: altair lte |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_ALTAIR_LTE |
| |
| noinst_LTLIBRARIES += libhelpers-altair-lte.la |
| libhelpers_altair_lte_la_SOURCES = \ |
| altair/mm-modem-helpers-altair-lte.c \ |
| altair/mm-modem-helpers-altair-lte.h \ |
| $(NULL) |
| libhelpers_altair_lte_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"altair-lte\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-altair-lte |
| test_modem_helpers_altair_lte_SOURCES = \ |
| altair/tests/test-modem-helpers-altair-lte.c \ |
| $(NULL) |
| test_modem_helpers_altair_lte_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/altair \ |
| $(NULL) |
| test_modem_helpers_altair_lte_LDADD = \ |
| $(builddir)/libhelpers-altair-lte.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-altair-lte.la |
| libmm_plugin_altair_lte_la_SOURCES = \ |
| altair/mm-plugin-altair-lte.c \ |
| altair/mm-plugin-altair-lte.h \ |
| altair/mm-broadband-modem-altair-lte.c \ |
| altair/mm-broadband-modem-altair-lte.h \ |
| altair/mm-broadband-bearer-altair-lte.c \ |
| altair/mm-broadband-bearer-altair-lte.h \ |
| $(NULL) |
| libmm_plugin_altair_lte_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"altair-lte\" \ |
| $(NULL) |
| libmm_plugin_altair_lte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_altair_lte_la_LIBADD = $(builddir)/libhelpers-altair-lte.la |
| |
| endif |
| |
| ################################################################################ |
| # plugin: anydata |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_ANYDATA |
| |
| pkglib_LTLIBRARIES += libmm-plugin-anydata.la |
| libmm_plugin_anydata_la_SOURCES = \ |
| anydata/mm-plugin-anydata.c \ |
| anydata/mm-plugin-anydata.h \ |
| anydata/mm-broadband-modem-anydata.h \ |
| anydata/mm-broadband-modem-anydata.c \ |
| $(NULL) |
| libmm_plugin_anydata_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"anydata\" \ |
| $(NULL) |
| libmm_plugin_anydata_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: broadmobi |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_BROADMOBI |
| |
| pkglib_LTLIBRARIES += libmm-plugin-broadmobi.la |
| libmm_plugin_broadmobi_la_SOURCES = \ |
| broadmobi/mm-plugin-broadmobi.c \ |
| broadmobi/mm-plugin-broadmobi.h \ |
| $(NULL) |
| libmm_plugin_broadmobi_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"broadmobi\" \ |
| $(NULL) |
| libmm_plugin_broadmobi_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += broadmobi/77-mm-broadmobi-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_BROADMOBI=\"${srcdir}/broadmobi\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: cinterion (previously siemens) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_CINTERION |
| |
| noinst_LTLIBRARIES += libhelpers-cinterion.la |
| libhelpers_cinterion_la_SOURCES = \ |
| cinterion/mm-modem-helpers-cinterion.c \ |
| cinterion/mm-modem-helpers-cinterion.h \ |
| $(NULL) |
| libhelpers_cinterion_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"cinterion\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-cinterion |
| test_modem_helpers_cinterion_SOURCES = \ |
| cinterion/tests/test-modem-helpers-cinterion.c \ |
| $(NULL) |
| test_modem_helpers_cinterion_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/cinterion \ |
| $(NULL) |
| test_modem_helpers_cinterion_LDADD = \ |
| $(builddir)/libhelpers-cinterion.la \ |
| $(top_builddir)/src/libport.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-cinterion.la |
| libmm_plugin_cinterion_la_SOURCES = \ |
| cinterion/mm-plugin-cinterion.c \ |
| cinterion/mm-plugin-cinterion.h \ |
| cinterion/mm-shared-cinterion.c \ |
| cinterion/mm-shared-cinterion.h \ |
| cinterion/mm-broadband-modem-cinterion.c \ |
| cinterion/mm-broadband-modem-cinterion.h \ |
| cinterion/mm-broadband-bearer-cinterion.c \ |
| cinterion/mm-broadband-bearer-cinterion.h \ |
| $(NULL) |
| if WITH_QMI |
| libmm_plugin_cinterion_la_SOURCES += \ |
| cinterion/mm-broadband-modem-qmi-cinterion.c \ |
| cinterion/mm-broadband-modem-qmi-cinterion.h \ |
| $(NULL) |
| endif |
| if WITH_MBIM |
| libmm_plugin_cinterion_la_SOURCES += \ |
| cinterion/mm-broadband-modem-mbim-cinterion.c \ |
| cinterion/mm-broadband-modem-mbim-cinterion.h \ |
| $(NULL) |
| endif |
| libmm_plugin_cinterion_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"cinterion\" \ |
| $(NULL) |
| libmm_plugin_cinterion_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_cinterion_la_LIBADD = $(builddir)/libhelpers-cinterion.la |
| |
| dist_udevrules_DATA += cinterion/77-mm-cinterion-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_CINTERION=\"${srcdir}/cinterion\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: dell (novatel, sierra, telit or foxconn) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_DELL |
| |
| pkglib_LTLIBRARIES += libmm-plugin-dell.la |
| libmm_plugin_dell_la_SOURCES = \ |
| dell/mm-plugin-dell.c \ |
| dell/mm-plugin-dell.h \ |
| $(NULL) |
| |
| libmm_plugin_dell_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(NOVATEL_COMMON_COMPILER_FLAGS) \ |
| $(SIERRA_COMMON_COMPILER_FLAGS) \ |
| $(TELIT_COMMON_COMPILER_FLAGS) \ |
| $(XMM_COMMON_COMPILER_FLAGS) \ |
| $(FOXCONN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"dell\" \ |
| $(NULL) |
| libmm_plugin_dell_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += dell/77-mm-dell-port-types.rules |
| |
| AM_CFLAGS += \ |
| -DTESTUDEVRULESDIR_DELL=\"${srcdir}/dell\" \ |
| $(NULL) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: dlink |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_DLINK |
| |
| pkglib_LTLIBRARIES += libmm-plugin-dlink.la |
| libmm_plugin_dlink_la_SOURCES = \ |
| dlink/mm-plugin-dlink.c \ |
| dlink/mm-plugin-dlink.h \ |
| $(NULL) |
| libmm_plugin_dlink_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"d-link\" \ |
| $(NULL) |
| libmm_plugin_dlink_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += dlink/77-mm-dlink-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_DLINK=\"${srcdir}/dlink\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: fibocom |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_FIBOCOM |
| |
| pkglib_LTLIBRARIES += libmm-plugin-fibocom.la |
| libmm_plugin_fibocom_la_SOURCES = \ |
| fibocom/mm-broadband-bearer-fibocom-ecm.c \ |
| fibocom/mm-broadband-bearer-fibocom-ecm.h \ |
| fibocom/mm-broadband-modem-fibocom.c \ |
| fibocom/mm-broadband-modem-fibocom.h \ |
| fibocom/mm-plugin-fibocom.c \ |
| fibocom/mm-plugin-fibocom.h \ |
| $(NULL) |
| if WITH_MBIM |
| libmm_plugin_fibocom_la_SOURCES += \ |
| fibocom/mm-broadband-modem-mbim-xmm-fibocom.c \ |
| fibocom/mm-broadband-modem-mbim-xmm-fibocom.h \ |
| fibocom/mm-broadband-modem-mbim-fibocom.c \ |
| fibocom/mm-broadband-modem-mbim-fibocom.h \ |
| $(NULL) |
| endif |
| libmm_plugin_fibocom_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(XMM_COMMON_COMPILER_FLAGS) \ |
| $(FIBOCOM_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"fibocom\" \ |
| $(NULL) |
| libmm_plugin_fibocom_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += fibocom/77-mm-fibocom-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_FIBOCOM=\"${srcdir}/fibocom\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: foxconn |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_FOXCONN |
| |
| pkglib_LTLIBRARIES += libmm-plugin-foxconn.la |
| libmm_plugin_foxconn_la_SOURCES = \ |
| foxconn/mm-plugin-foxconn.c \ |
| foxconn/mm-plugin-foxconn.h \ |
| $(NULL) |
| libmm_plugin_foxconn_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(FOXCONN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"foxconn\" \ |
| $(NULL) |
| libmm_plugin_foxconn_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += foxconn/77-mm-foxconn-port-types.rules |
| |
| dist_pkgdata_DATA += \ |
| foxconn/mm-foxconn-t77w968-carrier-mapping.conf \ |
| $(NULL) |
| |
| AM_CFLAGS += \ |
| -DTESTUDEVRULESDIR_FOXCONN=\"${srcdir}/foxconn\" \ |
| -DTESTKEYFILE_FOXCONN_T77W968=\"${srcdir}/foxconn/mm-foxconn-t77w968-carrier-mapping.conf\" \ |
| $(NULL) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: gosuncn |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_GOSUNCN |
| |
| pkglib_LTLIBRARIES += libmm-plugin-gosuncn.la |
| libmm_plugin_gosuncn_la_SOURCES = \ |
| gosuncn/mm-plugin-gosuncn.c \ |
| gosuncn/mm-plugin-gosuncn.h \ |
| $(NULL) |
| libmm_plugin_gosuncn_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"gosuncn\" \ |
| $(NULL) |
| libmm_plugin_gosuncn_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += gosuncn/77-mm-gosuncn-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_GOSUNCN=\"${srcdir}/gosuncn\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: haier |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_HAIER |
| |
| pkglib_LTLIBRARIES += libmm-plugin-haier.la |
| libmm_plugin_haier_la_SOURCES = \ |
| haier/mm-plugin-haier.c \ |
| haier/mm-plugin-haier.h \ |
| $(NULL) |
| libmm_plugin_haier_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"haier\" \ |
| $(NULL) |
| libmm_plugin_haier_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += haier/77-mm-haier-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_HAIER=\"${srcdir}/haier\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: huawei |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_HUAWEI |
| |
| HUAWEI_ENUMS_INPUTS = \ |
| $(top_srcdir)/plugins/huawei/mm-modem-helpers-huawei.h \ |
| $(NULL) |
| |
| HUAWEI_ENUMS_GENERATED = \ |
| huawei/mm-huawei-enums-types.h \ |
| huawei/mm-huawei-enums-types.c \ |
| $(NULL) |
| |
| BUILT_SOURCES += $(HUAWEI_ENUMS_GENERATED) |
| CLEANFILES += $(HUAWEI_ENUMS_GENERATED) |
| |
| huawei/mm-huawei-enums-types.h: Makefile.am $(HUAWEI_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template |
| $(AM_V_GEN) \ |
| $(MKDIR_P) huawei; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-modem-helpers-huawei.h\"\n#ifndef __MM_HUAWEI_ENUMS_TYPES_H__\n#define __MM_HUAWEI_ENUMS_TYPES_H__\n" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.h.template \ |
| --ftail "#endif /* __MM_HUAWEI_ENUMS_TYPES_H__ */\n" \ |
| $(HUAWEI_ENUMS_INPUTS) > $@ |
| |
| huawei/mm-huawei-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template huawei/mm-huawei-enums-types.h |
| $(AM_V_GEN) \ |
| $(MKDIR_P) huawei; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-huawei-enums-types.h\"" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.c.template \ |
| $(HUAWEI_ENUMS_INPUTS) > $@ |
| |
| noinst_LTLIBRARIES += libhelpers-huawei.la |
| libhelpers_huawei_la_SOURCES = \ |
| huawei/mm-modem-helpers-huawei.c \ |
| huawei/mm-modem-helpers-huawei.h \ |
| $(NULL) |
| libhelpers_huawei_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"huawei\" \ |
| -I$(top_srcdir)/plugins/huawei \ |
| -I$(top_builddir)/plugins/huawei \ |
| $(NULL) |
| nodist_libhelpers_huawei_la_SOURCES = $(HUAWEI_ENUMS_GENERATED) |
| |
| noinst_PROGRAMS += test-modem-helpers-huawei |
| test_modem_helpers_huawei_SOURCES = \ |
| huawei/tests/test-modem-helpers-huawei.c \ |
| $(NULL) |
| test_modem_helpers_huawei_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/huawei \ |
| -I$(top_builddir)/plugins/huawei \ |
| $(NULL) |
| test_modem_helpers_huawei_LDADD = \ |
| $(builddir)/libhelpers-huawei.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-huawei.la |
| libmm_plugin_huawei_la_SOURCES = \ |
| huawei/mm-plugin-huawei.c \ |
| huawei/mm-plugin-huawei.h \ |
| huawei/mm-sim-huawei.c \ |
| huawei/mm-sim-huawei.h \ |
| huawei/mm-broadband-modem-huawei.c \ |
| huawei/mm-broadband-modem-huawei.h \ |
| huawei/mm-broadband-bearer-huawei.c \ |
| huawei/mm-broadband-bearer-huawei.h \ |
| $(NULL) |
| libmm_plugin_huawei_la_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/huawei \ |
| -I$(top_builddir)/plugins/huawei \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"huawei\" \ |
| $(NULL) |
| libmm_plugin_huawei_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_huawei_la_LIBADD = $(builddir)/libhelpers-huawei.la |
| |
| dist_udevrules_DATA += huawei/77-mm-huawei-net-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_HUAWEI=\"${srcdir}/huawei\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: intel |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_INTEL |
| |
| pkglib_LTLIBRARIES += libmm-plugin-intel.la |
| libmm_plugin_intel_la_SOURCES = \ |
| intel/mm-plugin-intel.c \ |
| intel/mm-plugin-intel.h \ |
| $(NULL) |
| if WITH_MBIM |
| libmm_plugin_intel_la_SOURCES += \ |
| intel/mm-broadband-modem-mbim-intel.h \ |
| intel/mm-broadband-modem-mbim-intel.c \ |
| $(NULL) |
| endif |
| |
| libmm_plugin_intel_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(XMM_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"intel\" \ |
| $(NULL) |
| libmm_plugin_intel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: iridium |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_IRIDIUM |
| |
| pkglib_LTLIBRARIES += libmm-plugin-iridium.la |
| libmm_plugin_iridium_la_SOURCES = \ |
| iridium/mm-plugin-iridium.c \ |
| iridium/mm-plugin-iridium.h \ |
| iridium/mm-broadband-modem-iridium.c \ |
| iridium/mm-broadband-modem-iridium.h \ |
| iridium/mm-bearer-iridium.c \ |
| iridium/mm-bearer-iridium.h \ |
| iridium/mm-sim-iridium.c \ |
| iridium/mm-sim-iridium.h \ |
| $(NULL) |
| libmm_plugin_iridium_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"iridium\" \ |
| $(NULL) |
| libmm_plugin_iridium_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: linktop |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_LINKTOP |
| |
| noinst_LTLIBRARIES += libhelpers-linktop.la |
| libhelpers_linktop_la_SOURCES = \ |
| linktop/mm-modem-helpers-linktop.c \ |
| linktop/mm-modem-helpers-linktop.h \ |
| $(NULL) |
| libhelpers_linktop_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"linktop\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-linktop |
| test_modem_helpers_linktop_SOURCES = \ |
| linktop/tests/test-modem-helpers-linktop.c \ |
| $(NULL) |
| test_modem_helpers_linktop_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/linktop \ |
| $(NULL) |
| test_modem_helpers_linktop_LDADD = \ |
| $(builddir)/libhelpers-linktop.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-linktop.la |
| libmm_plugin_linktop_la_SOURCES = \ |
| linktop/mm-plugin-linktop.c \ |
| linktop/mm-plugin-linktop.h \ |
| linktop/mm-broadband-modem-linktop.h \ |
| linktop/mm-broadband-modem-linktop.c \ |
| $(NULL) |
| libmm_plugin_linktop_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"linktop\" \ |
| $(NULL) |
| libmm_plugin_linktop_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_linktop_la_LIBADD = $(builddir)/libhelpers-linktop.la |
| |
| dist_udevrules_DATA += linktop/77-mm-linktop-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_LINKTOP=\"${srcdir}/linktop\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: longcheer (and rebranded dongles) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_LONGCHEER |
| |
| pkglib_LTLIBRARIES += libmm-plugin-longcheer.la |
| libmm_plugin_longcheer_la_SOURCES = \ |
| longcheer/mm-plugin-longcheer.c \ |
| longcheer/mm-plugin-longcheer.h \ |
| longcheer/mm-broadband-modem-longcheer.h \ |
| longcheer/mm-broadband-modem-longcheer.c \ |
| $(NULL) |
| libmm_plugin_longcheer_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"longcheer\" \ |
| $(NULL) |
| libmm_plugin_longcheer_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += longcheer/77-mm-longcheer-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_LONGCHEER=\"${srcdir}/longcheer\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: ericsson mbm |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_MBM |
| |
| noinst_LTLIBRARIES += libhelpers-mbm.la |
| libhelpers_mbm_la_SOURCES = \ |
| mbm/mm-modem-helpers-mbm.c \ |
| mbm/mm-modem-helpers-mbm.h \ |
| $(NULL) |
| libhelpers_mbm_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"ericsson-mbm\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-mbm |
| test_modem_helpers_mbm_SOURCES = \ |
| mbm/tests/test-modem-helpers-mbm.c \ |
| $(NULL) |
| test_modem_helpers_mbm_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/mbm \ |
| $(NULL) |
| test_modem_helpers_mbm_LDADD = \ |
| $(builddir)/libhelpers-mbm.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-ericsson-mbm.la |
| libmm_plugin_ericsson_mbm_la_SOURCES = \ |
| mbm/mm-broadband-modem-mbm.c \ |
| mbm/mm-broadband-modem-mbm.h \ |
| mbm/mm-broadband-bearer-mbm.c \ |
| mbm/mm-broadband-bearer-mbm.h \ |
| mbm/mm-sim-mbm.c \ |
| mbm/mm-sim-mbm.h \ |
| mbm/mm-plugin-mbm.c \ |
| mbm/mm-plugin-mbm.h \ |
| $(NULL) |
| libmm_plugin_ericsson_mbm_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"ericsson-mbm\" \ |
| $(NULL) |
| libmm_plugin_ericsson_mbm_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_ericsson_mbm_la_LIBADD = $(builddir)/libhelpers-mbm.la |
| |
| dist_udevrules_DATA += mbm/77-mm-ericsson-mbm.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_MBM=\"${srcdir}/mbm\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: motorola |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_MOTOROLA |
| |
| pkglib_LTLIBRARIES += libmm-plugin-motorola.la |
| libmm_plugin_motorola_la_SOURCES = \ |
| motorola/mm-plugin-motorola.c \ |
| motorola/mm-plugin-motorola.h \ |
| motorola/mm-broadband-modem-motorola.c \ |
| motorola/mm-broadband-modem-motorola.h \ |
| $(NULL) |
| libmm_plugin_motorola_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"motorola\" \ |
| $(NULL) |
| libmm_plugin_motorola_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: mtk |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_MTK |
| |
| pkglib_LTLIBRARIES += libmm-plugin-mtk.la |
| libmm_plugin_mtk_la_SOURCES = \ |
| mtk/mm-plugin-mtk.c \ |
| mtk/mm-plugin-mtk.h \ |
| mtk/mm-broadband-modem-mtk.h \ |
| mtk/mm-broadband-modem-mtk.c \ |
| $(NULL) |
| libmm_plugin_mtk_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"mtk\" \ |
| $(NULL) |
| libmm_plugin_mtk_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += mtk/77-mm-mtk-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_MTK=\"${srcdir}/mtk\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: nokia |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_NOKIA |
| |
| pkglib_LTLIBRARIES += libmm-plugin-nokia.la |
| libmm_plugin_nokia_la_SOURCES = \ |
| nokia/mm-plugin-nokia.c \ |
| nokia/mm-plugin-nokia.h \ |
| nokia/mm-sim-nokia.c \ |
| nokia/mm-sim-nokia.h \ |
| nokia/mm-broadband-modem-nokia.c \ |
| nokia/mm-broadband-modem-nokia.h \ |
| $(NULL) |
| libmm_plugin_nokia_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"nokia\" \ |
| $(NULL) |
| libmm_plugin_nokia_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: nokia (icera) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_NOKIA_ICERA |
| |
| pkglib_LTLIBRARIES += libmm-plugin-nokia-icera.la |
| libmm_plugin_nokia_icera_la_SOURCES = \ |
| nokia/mm-plugin-nokia-icera.c \ |
| nokia/mm-plugin-nokia-icera.h \ |
| $(NULL) |
| libmm_plugin_nokia_icera_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(ICERA_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"nokia-icera\" \ |
| $(NULL) |
| libmm_plugin_nokia_icera_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += nokia/77-mm-nokia-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_NOKIA_ICERA=\"${srcdir}/nokia\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: novatel non-lte |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_NOVATEL |
| |
| pkglib_LTLIBRARIES += libmm-plugin-novatel.la |
| libmm_plugin_novatel_la_SOURCES = \ |
| novatel/mm-plugin-novatel.c \ |
| novatel/mm-plugin-novatel.h \ |
| $(NULL) |
| libmm_plugin_novatel_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(NOVATEL_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"novatel\" \ |
| $(NULL) |
| libmm_plugin_novatel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: novatel lte |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_NOVATEL_LTE |
| |
| pkglib_LTLIBRARIES += libmm-plugin-novatel-lte.la |
| libmm_plugin_novatel_lte_la_SOURCES = \ |
| novatel/mm-plugin-novatel-lte.c \ |
| novatel/mm-plugin-novatel-lte.h \ |
| novatel/mm-broadband-modem-novatel-lte.c \ |
| novatel/mm-broadband-modem-novatel-lte.h \ |
| novatel/mm-broadband-bearer-novatel-lte.c \ |
| novatel/mm-broadband-bearer-novatel-lte.h \ |
| novatel/mm-sim-novatel-lte.c \ |
| novatel/mm-sim-novatel-lte.h \ |
| $(NULL) |
| libmm_plugin_novatel_lte_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"novatel-lte\" \ |
| $(NULL) |
| libmm_plugin_novatel_lte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: option |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_OPTION |
| |
| pkglib_LTLIBRARIES += libmm-plugin-option.la |
| libmm_plugin_option_la_SOURCES = \ |
| option/mm-plugin-option.c \ |
| option/mm-plugin-option.h \ |
| $(NULL) |
| libmm_plugin_option_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(OPTION_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"option\" \ |
| $(NULL) |
| libmm_plugin_option_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: option hso |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_OPTION_HSO |
| |
| pkglib_LTLIBRARIES += libmm-plugin-option-hso.la |
| libmm_plugin_option_hso_la_SOURCES = \ |
| option/mm-plugin-hso.c \ |
| option/mm-plugin-hso.h \ |
| option/mm-broadband-bearer-hso.c \ |
| option/mm-broadband-bearer-hso.h \ |
| option/mm-broadband-modem-hso.c \ |
| option/mm-broadband-modem-hso.h \ |
| $(NULL) |
| libmm_plugin_option_hso_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(OPTION_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"option-hso\" \ |
| $(NULL) |
| libmm_plugin_option_hso_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: pantech |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_PANTECH |
| |
| pkglib_LTLIBRARIES += libmm-plugin-pantech.la |
| libmm_plugin_pantech_la_SOURCES = \ |
| pantech/mm-plugin-pantech.c \ |
| pantech/mm-plugin-pantech.h \ |
| pantech/mm-sim-pantech.c \ |
| pantech/mm-sim-pantech.h \ |
| pantech/mm-broadband-modem-pantech.c \ |
| pantech/mm-broadband-modem-pantech.h \ |
| $(NULL) |
| libmm_plugin_pantech_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"pantech\" \ |
| $(NULL) |
| libmm_plugin_pantech_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: qcom-soc |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_QCOM_SOC |
| if WITH_QMI |
| pkglib_LTLIBRARIES += libmm-plugin-qcom-soc.la |
| libmm_plugin_qcom_soc_la_SOURCES = \ |
| qcom-soc/mm-plugin-qcom-soc.c \ |
| qcom-soc/mm-plugin-qcom-soc.h \ |
| qcom-soc/mm-broadband-modem-qmi-qcom-soc.c \ |
| qcom-soc/mm-broadband-modem-qmi-qcom-soc.h \ |
| $(NULL) |
| libmm_plugin_qcom_soc_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"qcom-soc\" \ |
| $(NULL) |
| libmm_plugin_qcom_soc_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += qcom-soc/77-mm-qcom-soc.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_QCOM_SOC=\"${srcdir}/qcom-soc/\" |
| endif |
| endif |
| |
| ################################################################################ |
| # plugin: quectel |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_QUECTEL |
| |
| noinst_LTLIBRARIES += libhelpers-quectel.la |
| libhelpers_quectel_la_SOURCES = \ |
| quectel/mm-modem-helpers-quectel.c \ |
| quectel/mm-modem-helpers-quectel.h \ |
| $(NULL) |
| libhelpers_quectel_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"quectel\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-quectel |
| test_modem_helpers_quectel_SOURCES = \ |
| quectel/tests/test-modem-helpers-quectel.c \ |
| $(NULL) |
| test_modem_helpers_quectel_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/quectel \ |
| $(NULL) |
| test_modem_helpers_quectel_LDADD = \ |
| $(builddir)/libhelpers-quectel.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-quectel.la |
| libmm_plugin_quectel_la_SOURCES = \ |
| quectel/mm-plugin-quectel.c \ |
| quectel/mm-plugin-quectel.h \ |
| quectel/mm-shared-quectel.c \ |
| quectel/mm-shared-quectel.h \ |
| quectel/mm-broadband-modem-quectel.c \ |
| quectel/mm-broadband-modem-quectel.h \ |
| $(NULL) |
| if WITH_QMI |
| libmm_plugin_quectel_la_SOURCES += \ |
| quectel/mm-broadband-modem-qmi-quectel.c \ |
| quectel/mm-broadband-modem-qmi-quectel.h \ |
| $(NULL) |
| endif |
| if WITH_MBIM |
| libmm_plugin_quectel_la_SOURCES += \ |
| quectel/mm-broadband-modem-mbim-quectel.c \ |
| quectel/mm-broadband-modem-mbim-quectel.h \ |
| $(NULL) |
| endif |
| libmm_plugin_quectel_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"quectel\" \ |
| $(NULL) |
| libmm_plugin_quectel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_quectel_la_LIBADD = $(builddir)/libhelpers-quectel.la |
| |
| dist_udevrules_DATA += quectel/77-mm-quectel-port-types.rules |
| AM_CFLAGS += -DTESTUDEVRULESDIR_QUECTEL=\"${srcdir}/quectel\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: samsung |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_SAMSUNG |
| |
| pkglib_LTLIBRARIES += libmm-plugin-samsung.la |
| libmm_plugin_samsung_la_SOURCES = \ |
| samsung/mm-plugin-samsung.c \ |
| samsung/mm-plugin-samsung.h \ |
| samsung/mm-broadband-modem-samsung.c \ |
| samsung/mm-broadband-modem-samsung.h \ |
| $(NULL) |
| libmm_plugin_samsung_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(ICERA_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"samsung\" \ |
| $(NULL) |
| libmm_plugin_samsung_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: sierra (legacy) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_SIERRA_LEGACY |
| |
| pkglib_LTLIBRARIES += libmm-plugin-sierra-legacy.la |
| libmm_plugin_sierra_legacy_la_SOURCES = \ |
| sierra/mm-plugin-sierra-legacy.c \ |
| sierra/mm-plugin-sierra-legacy.h \ |
| sierra/mm-broadband-modem-sierra-icera.c \ |
| sierra/mm-broadband-modem-sierra-icera.h \ |
| $(NULL) |
| libmm_plugin_sierra_legacy_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(ICERA_COMMON_COMPILER_FLAGS) \ |
| $(SIERRA_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"sierra-legacy\" \ |
| $(NULL) |
| libmm_plugin_sierra_legacy_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: sierra (new QMI or MBIM modems) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_SIERRA |
| |
| dist_udevrules_DATA += sierra/77-mm-sierra.rules |
| |
| pkglib_LTLIBRARIES += libmm-plugin-sierra.la |
| libmm_plugin_sierra_la_SOURCES = \ |
| sierra/mm-plugin-sierra.c \ |
| sierra/mm-plugin-sierra.h \ |
| $(NULL) |
| libmm_plugin_sierra_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(XMM_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"sierra\" \ |
| $(NULL) |
| libmm_plugin_sierra_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: simtech |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_SIMTECH |
| |
| noinst_LTLIBRARIES += libhelpers-simtech.la |
| libhelpers_simtech_la_SOURCES = \ |
| simtech/mm-modem-helpers-simtech.c \ |
| simtech/mm-modem-helpers-simtech.h \ |
| $(NULL) |
| libhelpers_simtech_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"simtech\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-simtech |
| test_modem_helpers_simtech_SOURCES = \ |
| simtech/tests/test-modem-helpers-simtech.c \ |
| $(NULL) |
| test_modem_helpers_simtech_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/simtech \ |
| $(NULL) |
| test_modem_helpers_simtech_LDADD = \ |
| $(builddir)/libhelpers-simtech.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-simtech.la |
| libmm_plugin_simtech_la_SOURCES = \ |
| simtech/mm-plugin-simtech.c \ |
| simtech/mm-plugin-simtech.h \ |
| simtech/mm-shared-simtech.c \ |
| simtech/mm-shared-simtech.h \ |
| simtech/mm-broadband-modem-simtech.h \ |
| simtech/mm-broadband-modem-simtech.c \ |
| $(NULL) |
| if WITH_QMI |
| libmm_plugin_simtech_la_SOURCES += \ |
| simtech/mm-broadband-modem-qmi-simtech.c \ |
| simtech/mm-broadband-modem-qmi-simtech.h \ |
| $(NULL) |
| endif |
| libmm_plugin_simtech_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"simtech\" \ |
| $(NULL) |
| libmm_plugin_simtech_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_simtech_la_LIBADD = $(builddir)/libhelpers-simtech.la |
| |
| dist_udevrules_DATA += simtech/77-mm-simtech-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_SIMTECH=\"${srcdir}/simtech\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: telit |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_TELIT |
| |
| pkglib_LTLIBRARIES += libmm-plugin-telit.la |
| libmm_plugin_telit_la_SOURCES = \ |
| telit/mm-plugin-telit.c \ |
| telit/mm-plugin-telit.h \ |
| $(NULL) |
| libmm_plugin_telit_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(TELIT_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"telit\" \ |
| $(NULL) |
| libmm_plugin_telit_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += telit/77-mm-telit-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_TELIT=\"${srcdir}/telit\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: thuraya xt |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_THURAYA |
| |
| noinst_LTLIBRARIES += libhelpers-thuraya.la |
| libhelpers_thuraya_la_SOURCES = \ |
| thuraya/mm-modem-helpers-thuraya.c \ |
| thuraya/mm-modem-helpers-thuraya.h \ |
| $(NULL) |
| libhelpers_thuraya_la_CPPFLAGS = \ |
| -DMM_MODULE_NAME=\"thuraya\" \ |
| $(NULL) |
| |
| noinst_PROGRAMS += test-modem-helpers-thuraya |
| test_modem_helpers_thuraya_SOURCES = \ |
| thuraya/tests/test-mm-modem-helpers-thuraya.c \ |
| $(NULL) |
| test_modem_helpers_thuraya_CPPFLAGS = \ |
| -I$(top_srcdir)/plugins/thuraya \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(NULL) |
| test_modem_helpers_thuraya_LDADD = \ |
| $(builddir)/libhelpers-thuraya.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-thuraya.la |
| libmm_plugin_thuraya_la_SOURCES = \ |
| thuraya/mm-plugin-thuraya.c \ |
| thuraya/mm-plugin-thuraya.h \ |
| thuraya/mm-broadband-modem-thuraya.c \ |
| thuraya/mm-broadband-modem-thuraya.h \ |
| $(NULL) |
| libmm_plugin_thuraya_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"thuraya\" \ |
| $(NULL) |
| libmm_plugin_thuraya_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_thuraya_la_LIBADD = $(builddir)/libhelpers-thuraya.la |
| |
| endif |
| |
| ################################################################################ |
| # plugin: tplink |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_TPLINK |
| |
| pkglib_LTLIBRARIES += libmm-plugin-tplink.la |
| libmm_plugin_tplink_la_SOURCES = \ |
| tplink/mm-plugin-tplink.c \ |
| tplink/mm-plugin-tplink.h \ |
| $(NULL) |
| libmm_plugin_tplink_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"tp-link\" \ |
| $(NULL) |
| libmm_plugin_tplink_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += tplink/77-mm-tplink-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_TPLINK=\"${srcdir}/tplink\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: u-blox |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_UBLOX |
| |
| dist_udevrules_DATA += ublox/77-mm-ublox-port-types.rules |
| |
| PLUGIN_UBLOX_COMPILER_FLAGS = \ |
| -I$(top_srcdir)/plugins/ublox \ |
| -I$(top_builddir)/plugins/ublox \ |
| $(NULL) |
| |
| noinst_LTLIBRARIES += libhelpers-ublox.la |
| |
| UBLOX_ENUMS_INPUTS = \ |
| $(top_srcdir)/plugins/ublox/mm-modem-helpers-ublox.h \ |
| $(NULL) |
| |
| UBLOX_ENUMS_GENERATED = \ |
| ublox/mm-ublox-enums-types.h \ |
| ublox/mm-ublox-enums-types.c \ |
| $(NULL) |
| |
| ublox/mm-ublox-enums-types.h: Makefile.am $(UBLOX_ENUMS_INPUTS) $(top_srcdir)/build-aux/mm-enums-types.h.template |
| $(AM_V_GEN) \ |
| $(MKDIR_P) ublox; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-modem-helpers-ublox.h\"\n#ifndef __MM_UBLOX_ENUMS_TYPES_H__\n#define __MM_UBLOX_ENUMS_TYPES_H__\n" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.h.template \ |
| --ftail "#endif /* __MM_UBLOX_ENUMS_TYPES_H__ */\n" \ |
| $(UBLOX_ENUMS_INPUTS) > $@ |
| |
| ublox/mm-ublox-enums-types.c: Makefile.am $(top_srcdir)/build-aux/mm-enums-types.c.template ublox/mm-ublox-enums-types.h |
| $(AM_V_GEN) \ |
| $(MKDIR_P) ublox; \ |
| $(GLIB_MKENUMS) \ |
| --fhead "#include \"mm-ublox-enums-types.h\"" \ |
| --template $(top_srcdir)/build-aux/mm-enums-types.c.template \ |
| $(UBLOX_ENUMS_INPUTS) > $@ |
| |
| libhelpers_ublox_la_SOURCES = \ |
| ublox/mm-modem-helpers-ublox.c \ |
| ublox/mm-modem-helpers-ublox.h \ |
| $(NULL) |
| |
| nodist_libhelpers_ublox_la_SOURCES = $(UBLOX_ENUMS_GENERATED) |
| |
| libhelpers_ublox_la_CPPFLAGS = \ |
| $(PLUGIN_UBLOX_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"u-blox\" \ |
| $(NULL) |
| |
| BUILT_SOURCES += $(UBLOX_ENUMS_GENERATED) |
| CLEANFILES += $(UBLOX_ENUMS_GENERATED) |
| |
| noinst_PROGRAMS += test-modem-helpers-ublox |
| test_modem_helpers_ublox_SOURCES = \ |
| ublox/tests/test-modem-helpers-ublox.c \ |
| $(NULL) |
| test_modem_helpers_ublox_CPPFLAGS = \ |
| $(PLUGIN_UBLOX_COMPILER_FLAGS) \ |
| $(TEST_COMMON_COMPILER_FLAGS) \ |
| $(NULL) |
| test_modem_helpers_ublox_LDADD = \ |
| $(TEST_COMMON_LIBADD_FLAGS) \ |
| $(builddir)/libhelpers-ublox.la \ |
| $(top_builddir)/src/libhelpers.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| pkglib_LTLIBRARIES += libmm-plugin-ublox.la |
| libmm_plugin_ublox_la_SOURCES = \ |
| ublox/mm-plugin-ublox.c \ |
| ublox/mm-plugin-ublox.h \ |
| ublox/mm-broadband-bearer-ublox.h \ |
| ublox/mm-broadband-bearer-ublox.c \ |
| ublox/mm-broadband-modem-ublox.h \ |
| ublox/mm-broadband-modem-ublox.c \ |
| ublox/mm-sim-ublox.c \ |
| ublox/mm-sim-ublox.h \ |
| $(NULL) |
| libmm_plugin_ublox_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(PLUGIN_UBLOX_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"u-blox\" \ |
| $(NULL) |
| libmm_plugin_ublox_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| libmm_plugin_ublox_la_LIBADD = $(builddir)/libhelpers-ublox.la |
| |
| endif |
| |
| ################################################################################ |
| # plugin: via |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_VIA |
| |
| pkglib_LTLIBRARIES += libmm-plugin-via.la |
| libmm_plugin_via_la_SOURCES = \ |
| via/mm-plugin-via.c \ |
| via/mm-plugin-via.h \ |
| via/mm-broadband-modem-via.c \ |
| via/mm-broadband-modem-via.h \ |
| $(NULL) |
| libmm_plugin_via_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"via\" \ |
| $(NULL) |
| libmm_plugin_via_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: wavecom (now sierra airlink) |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_WAVECOM |
| |
| pkglib_LTLIBRARIES += libmm-plugin-wavecom.la |
| libmm_plugin_wavecom_la_SOURCES = \ |
| wavecom/mm-plugin-wavecom.c \ |
| wavecom/mm-plugin-wavecom.h \ |
| wavecom/mm-broadband-modem-wavecom.c \ |
| wavecom/mm-broadband-modem-wavecom.h \ |
| $(NULL) |
| libmm_plugin_wavecom_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"wavecom\" \ |
| $(NULL) |
| libmm_plugin_wavecom_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| endif |
| |
| ################################################################################ |
| # plugin: alcatel/TCT/JRD x220D and possibly others |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_X22X |
| |
| pkglib_LTLIBRARIES += libmm-plugin-x22x.la |
| libmm_plugin_x22x_la_SOURCES = \ |
| x22x/mm-plugin-x22x.c \ |
| x22x/mm-plugin-x22x.h \ |
| x22x/mm-broadband-modem-x22x.h \ |
| x22x/mm-broadband-modem-x22x.c \ |
| $(NULL) |
| libmm_plugin_x22x_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"x22x\" \ |
| $(NULL) |
| libmm_plugin_x22x_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += x22x/77-mm-x22x-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_X22X=\"${srcdir}/x22x\" |
| |
| endif |
| |
| ################################################################################ |
| # plugin: zte |
| ################################################################################ |
| |
| if ENABLE_PLUGIN_ZTE |
| |
| pkglib_LTLIBRARIES += libmm-plugin-zte.la |
| libmm_plugin_zte_la_SOURCES = \ |
| zte/mm-plugin-zte.c \ |
| zte/mm-plugin-zte.h \ |
| zte/mm-common-zte.h \ |
| zte/mm-common-zte.c \ |
| zte/mm-broadband-modem-zte.h \ |
| zte/mm-broadband-modem-zte.c \ |
| zte/mm-broadband-modem-zte-icera.h \ |
| zte/mm-broadband-modem-zte-icera.c \ |
| $(NULL) |
| libmm_plugin_zte_la_CPPFLAGS = \ |
| $(PLUGIN_COMMON_COMPILER_FLAGS) \ |
| $(ICERA_COMMON_COMPILER_FLAGS) \ |
| -DMM_MODULE_NAME=\"zte\" \ |
| $(NULL) |
| libmm_plugin_zte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS) |
| |
| dist_udevrules_DATA += zte/77-mm-zte-port-types.rules |
| |
| AM_CFLAGS += -DTESTUDEVRULESDIR_ZTE=\"${srcdir}/zte\" |
| |
| endif |
| |
| ################################################################################ |
| # udev rules tester |
| ################################################################################ |
| |
| noinst_PROGRAMS += test-udev-rules |
| test_udev_rules_SOURCES = \ |
| tests/test-udev-rules.c \ |
| $(NULL) |
| test_udev_rules_LDADD = \ |
| $(top_builddir)/src/libkerneldevice.la \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| ################################################################################ |
| # keyfile tester |
| ################################################################################ |
| |
| noinst_PROGRAMS += test-keyfiles |
| test_keyfiles_SOURCES = \ |
| tests/test-keyfiles.c \ |
| $(NULL) |
| test_keyfiles_LDADD = \ |
| $(top_builddir)/libmm-glib/libmm-glib.la \ |
| $(NULL) |
| |
| ################################################################################ |
| |
| TEST_PROGS += $(noinst_PROGRAMS) |