NetworkManager/examples/C/glib/Makefile.am
Dan Winship 9e5ddb5830 examples: port dbus-glib-based examples to gdbus
Port the dbus-glib-based examples to GDBus.

Also, don't use libnm in them at all; there's not much point in
examples that use the D-Bus API directly if they're just going to fall
back to libnm for the hard stuff... (And also, this avoids the problem
that GDBus uses GVariant, while the libnm-core APIs currently still
use GHashTables.)

Also fix up some comment grammar and copyright style, and add emacs
modelines where missing.

Also rename the existing GDBus-based examples to have names ending in
"-gdbus", not "-GDBus", since there's no reason to gratuitously
capitalize here.
2014-09-04 18:19:22 -04:00

57 lines
1.4 KiB
Makefile

AM_CPPFLAGS = \
-I${top_srcdir}/include \
-I${top_srcdir}/libnm-core \
-I${top_builddir}/libnm-core \
-I${top_srcdir}/libnm \
-I${top_builddir}/libnm \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS)
noinst_PROGRAMS = \
add-connection-gdbus \
add-connection-libnm \
get-active-connections-gdbus \
get-ap-info-libnm \
list-connections-gdbus \
list-connections-libnm \
monitor-nm-running-gdbus \
monitor-nm-state-gdbus
add_connection_gdbus_SOURCES = add-connection-gdbus.c
add_connection_gdbus_LDADD = \
$(GLIB_LIBS) \
$(UUID_LIBS)
add_connection_libnm_SOURCES = add-connection-libnm.c
add_connection_libnm_LDADD = \
$(top_builddir)/libnm/libnm.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
get_active_connections_gdbus_SOURCES = get-active-connections-gdbus.c
get_active_connections_gdbus_LDADD = \
$(GLIB_LIBS)
get_ap_info_libnm_SOURCES = get-ap-info-libnm.c
get_ap_info_libnm_LDADD = \
$(top_builddir)/libnm/libnm.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
list_connections_gdbus_SOURCES = list-connections-gdbus.c
list_connections_gdbus_LDADD = \
$(GLIB_LIBS)
list_connections_libnm_SOURCES = list-connections-libnm.c
list_connections_libnm_LDADD = \
$(top_builddir)/libnm/libnm.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
monitor_nm_running_gdbus_SOURCES = monitor-nm-running-gdbus.c
monitor_nm_running_gdbus_LDADD = \
$(GLIB_LIBS)
monitor_nm_state_gdbus_SOURCES = monitor-nm-state-gdbus.c
monitor_nm_state_gdbus_LDADD = \
$(GLIB_LIBS)