examples: move glib examples to a subdir

This commit is contained in:
Dan Williams 2011-04-20 19:25:50 -05:00
parent 3b0916d6f6
commit d98f3f226a
10 changed files with 71 additions and 68 deletions

12
.gitignore vendored
View file

@ -117,12 +117,12 @@ docs/api/NetworkManager.prerequisites
docs/api/NetworkManager.signals
docs/api/NetworkManager.types
examples/C/add-connection-dbus-glib
examples/C/add-connection-libnm-glib
examples/C/get-active-connections-dbus-glib
examples/C/get-ap-info-libnm-glib
examples/C/list-connections-dbus-glib
examples/C/list-connections-libnm-glib
examples/C/glib/add-connection-dbus-glib
examples/C/glib/add-connection-libnm-glib
examples/C/glib/get-active-connections-dbus-glib
examples/C/glib/get-ap-info-libnm-glib
examples/C/glib/list-connections-dbus-glib
examples/C/glib/list-connections-libnm-glib
callouts/nm-dhcp-client.action
callouts/nm-avahi-autoipd.action

View file

@ -657,6 +657,7 @@ NetworkManager.pc
examples/Makefile
examples/python/Makefile
examples/C/Makefile
examples/C/glib/Makefile
])
AC_OUTPUT

View file

@ -1,63 +1,2 @@
INCLUDES = -I${top_srcdir}/libnm-util \
-I${top_srcdir}/libnm-glib \
-I${top_srcdir}/include
AM_CPPFLAGS = \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS)
noinst_PROGRAMS = \
add-connection-dbus-glib \
add-connection-libnm-glib \
get-active-connections-dbus-glib \
list-connections-dbus-glib \
list-connections-libnm-glib \
get-ap-info-libnm-glib
add_connection_dbus_glib_SOURCES = add-connection-dbus-glib.c
add_connection_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
add_connection_libnm_glib_SOURCES = add-connection-libnm-glib.c
add_connection_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
get_active_connections_dbus_glib_SOURCES = get-active-connections-dbus-glib.c
get_active_connections_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
list_connections_dbus_glib_SOURCES = list-connections-dbus-glib.c
list_connections_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
list_connections_libnm_glib_SOURCES = list-connections-libnm-glib.c
list_connections_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
get_ap_info_libnm_glib_SOURCES = get-ap-info-libnm-glib.c
get_ap_info_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
EXTRA_DIST = \
add-connection-dbus-glib.c \
add-connection-libnm-glib.c \
get-active-connections-dbus-glib.c \
list-connections-dbus-glib.c \
list-connections-libnm-glib.c \
get-ap-info-libnm-glib.c
SUBDIRS= glib

View file

@ -0,0 +1,63 @@
INCLUDES = -I${top_srcdir}/libnm-util \
-I${top_srcdir}/libnm-glib \
-I${top_srcdir}/include
AM_CPPFLAGS = \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS)
noinst_PROGRAMS = \
add-connection-dbus-glib \
add-connection-libnm-glib \
get-active-connections-dbus-glib \
list-connections-dbus-glib \
list-connections-libnm-glib \
get-ap-info-libnm-glib
add_connection_dbus_glib_SOURCES = add-connection-dbus-glib.c
add_connection_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
add_connection_libnm_glib_SOURCES = add-connection-libnm-glib.c
add_connection_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
get_active_connections_dbus_glib_SOURCES = get-active-connections-dbus-glib.c
get_active_connections_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
list_connections_dbus_glib_SOURCES = list-connections-dbus-glib.c
list_connections_dbus_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
list_connections_libnm_glib_SOURCES = list-connections-libnm-glib.c
list_connections_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
get_ap_info_libnm_glib_SOURCES = get-ap-info-libnm-glib.c
get_ap_info_libnm_glib_LDADD = \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)
EXTRA_DIST = \
add-connection-dbus-glib.c \
add-connection-libnm-glib.c \
get-active-connections-dbus-glib.c \
list-connections-dbus-glib.c \
list-connections-libnm-glib.c \
get-ap-info-libnm-glib.c