+noinst_LTLIBRARIES = plugins/libgatchat.la
+
+plugins_libgatchat_la_SOURCES = gatchat/gatchat.h gatchat/gatchat.c \
+ gatchat/gatresult.h gatchat/gatresult.c \
+ gatchat/gatsyntax.h gatchat/gatsyntax.c \
+ gatchat/ringbuffer.h gatchat/ringbuffer.c
+
+
plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
@DBUS_CFLAGS@ @GLIB_CFLAGS@
plugin_ldflags = -no-undefined -module -avoid-version
if HSO_BUILTIN
builtin_modules += hso
builtin_sources += plugins/hso.c plugins/modem.h plugins/modem.c
+builtin_cflags += -I$(srcdir)/gatchat
+builtin_libadd += plugins/libgatchat.la
else
plugin_LTLIBRARIES += plugins/hso.la
plugin_objects += $(plugins_hso_la_OBJECTS)
-plugins_hso_la_SOURCES = $(gatchat_sources) \
- plugins/hso.c plugins/modem.h plugins/modem.c
+plugins_hso_la_SOURCES = plugins/hso.c plugins/modem.h plugins/modem.c
plugins_hso_la_CFLAGS = $(plugin_cflags) -I$(srcdir)/gatchat
+plugins_hso_la_LIBADD = plugins/libgatchat.la
plugins_hso_la_LDFLAGS = $(plugin_ldflags)
endif
endif
if MBM_BUILTIN
builtin_modules += mbm
builtin_sources += plugins/mbm.c
+builtin_cflags += -I$(srcdir)/gatchat
+builtin_libadd += plugins/libgatchat.la
else
plugin_LTLIBRARIES += plugins/mbm.la
plugin_objects += $(plugins_mbm_la_OBJECTS)
-plugins_mbm_la_SOURCES = $(gatchat_sources) plugins/mbm.c
+plugins_mbm_la_SOURCES = plugins/mbm.c
plugins_mbm_la_CFLAGS = $(plugin_cflags) -I$(srcdir)/gatchat
+plugins_mbm_la_LIBADD = plugins/libgatchat.la
plugins_mbm_la_LDFLAGS = $(plugin_ldflags)
endif
endif
plugin_objects += $(plugins_udhcp_la_OBJECTS)
plugins_udhcp_la_SOURCES = plugins/udhcp.c plugins/task.h plugins/task.c
plugins_udhcp_la_CFLAGS = $(plugin_cflags) -DUDHCPC=\"@UDHCPC@\" \
- -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
+ -DSTATEDIR=\""$(statedir)"\" \
+ -DSCRIPTDIR=\""$(build_scriptdir)"\"
plugins_udhcp_la_LDFLAGS = $(plugin_ldflags)
endif
endif
plugin_LTLIBRARIES += plugins/dhclient.la
plugin_objects += $(plugins_dhclient_la_OBJECTS)
plugins_dhclient_la_CFLAGS = $(plugin_cflags) -DDHCLIENT=\"@DHCLIENT@\" \
- -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
+ -DSTATEDIR=\""$(statedir)"\" \
+ -DSCRIPTDIR=\""$(build_scriptdir)"\"
plugins_dhclient_la_LDFLAGS = $(plugin_ldflags)
endif
endif