2012-02-08 17:56:52 +00:00
|
|
|
include $(GLIB_MAKEFILE)
|
|
|
|
|
2010-12-28 23:11:27 +00:00
|
|
|
SUBDIRS=. tests
|
|
|
|
|
2008-04-05 16:28:24 +00:00
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir)/include \
|
2012-01-08 17:30:02 +00:00
|
|
|
-I$(top_builddir)/include \
|
2008-04-05 16:28:24 +00:00
|
|
|
-I$(top_srcdir)/libnm-util \
|
2012-02-22 21:37:38 +00:00
|
|
|
-I$(top_builddir)/libnm-util \
|
2008-04-05 16:28:24 +00:00
|
|
|
-I$(top_builddir)/marshallers
|
2007-02-12 09:23:43 +00:00
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
2008-03-24 15:17:30 +00:00
|
|
|
nm-vpn-plugin-glue.h \
|
2010-12-14 06:03:22 +00:00
|
|
|
nm-secret-agent-glue.h
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2011-01-12 19:24:22 +00:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
libdeprecated-nm-glib.la \
|
|
|
|
libnm-glib-test.la
|
|
|
|
|
2010-03-10 17:18:08 +00:00
|
|
|
#####################################################
|
|
|
|
# Deprecated original libnm_glib bits
|
|
|
|
#####################################################
|
|
|
|
|
|
|
|
libdeprecated_nm_glib_la_SOURCES = \
|
|
|
|
libnm_glib.h \
|
|
|
|
libnm_glib.c
|
|
|
|
|
|
|
|
libdeprecated_nm_glib_la_CPPFLAGS = \
|
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
-Wno-deprecated-declarations \
|
|
|
|
-Wno-deprecated
|
|
|
|
|
|
|
|
libdeprecated_nm_glib_la_LIBADD = \
|
|
|
|
$(DBUS_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
2011-01-21 20:46:09 +00:00
|
|
|
libdeprecateddir = $(includedir)/libnm-glib
|
|
|
|
libdeprecated_HEADERS = libnm_glib.h
|
|
|
|
|
2010-03-10 17:18:08 +00:00
|
|
|
#####################################################
|
|
|
|
# Real libnm-glib stuff
|
|
|
|
#####################################################
|
|
|
|
|
2009-08-26 18:07:35 +00:00
|
|
|
lib_LTLIBRARIES = libnm-glib.la libnm-glib-vpn.la
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2009-06-12 00:49:22 +00:00
|
|
|
libnm_glib_la_CFLAGS = \
|
2011-12-20 20:15:42 +00:00
|
|
|
$(GIO_CFLAGS) \
|
2009-06-12 00:49:22 +00:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(GUDEV_CFLAGS)
|
2007-02-12 09:23:43 +00:00
|
|
|
|
|
|
|
libnmincludedir = $(includedir)/libnm-glib
|
2011-01-21 20:46:09 +00:00
|
|
|
libnmvpndir = $(includedir)/libnm-glib
|
2007-02-12 09:23:43 +00:00
|
|
|
|
|
|
|
libnminclude_HEADERS = \
|
2009-06-12 00:49:22 +00:00
|
|
|
nm-object.h \
|
|
|
|
nm-client.h \
|
|
|
|
nm-device.h \
|
2008-06-10 15:54:23 +00:00
|
|
|
nm-device-ethernet.h \
|
2011-10-26 13:43:05 +00:00
|
|
|
nm-device-infiniband.h \
|
2008-06-10 16:32:39 +00:00
|
|
|
nm-device-wifi.h \
|
2009-07-10 14:45:24 +00:00
|
|
|
nm-device-bt.h \
|
2007-02-16 11:23:49 +00:00
|
|
|
nm-access-point.h \
|
2007-03-26 12:42:29 +00:00
|
|
|
nm-ip4-config.h \
|
2011-02-25 16:16:17 +00:00
|
|
|
nm-device-modem.h \
|
2007-09-12 16:23:53 +00:00
|
|
|
nm-vpn-connection.h \
|
2008-03-24 15:17:30 +00:00
|
|
|
nm-types.h \
|
2008-05-05 07:07:44 +00:00
|
|
|
nm-active-connection.h \
|
2009-07-23 13:20:52 +00:00
|
|
|
nm-dhcp4-config.h \
|
2009-08-21 19:12:31 +00:00
|
|
|
nm-ip6-config.h \
|
2010-01-15 20:40:19 +00:00
|
|
|
nm-dhcp6-config.h \
|
2009-07-23 13:20:52 +00:00
|
|
|
nm-remote-connection.h \
|
2010-12-14 06:03:22 +00:00
|
|
|
nm-remote-settings.h \
|
2011-01-12 21:46:37 +00:00
|
|
|
nm-secret-agent.h \
|
2011-01-04 05:55:38 +00:00
|
|
|
nm-device-wimax.h \
|
2012-02-08 17:56:52 +00:00
|
|
|
nm-wimax-nsp.h \
|
|
|
|
nm-glib-enum-types.h
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2011-01-21 20:46:09 +00:00
|
|
|
libnmvpn_HEADERS = \
|
|
|
|
nm-vpn-plugin.h \
|
2011-02-11 00:48:32 +00:00
|
|
|
nm-vpn-plugin-ui-interface.h \
|
2012-02-08 17:56:52 +00:00
|
|
|
nm-vpn-plugin-utils.h \
|
|
|
|
nm-vpn-enum-types.h
|
2011-01-21 20:46:09 +00:00
|
|
|
|
|
|
|
libnm_glib_la_csources = \
|
2009-06-12 00:49:22 +00:00
|
|
|
nm-object.c \
|
|
|
|
nm-client.c \
|
|
|
|
nm-device.c \
|
2008-06-10 15:54:23 +00:00
|
|
|
nm-device-ethernet.c \
|
2011-10-26 13:43:05 +00:00
|
|
|
nm-device-infiniband.c \
|
2008-06-10 16:32:39 +00:00
|
|
|
nm-device-wifi.c \
|
2009-07-10 14:45:24 +00:00
|
|
|
nm-device-bt.c \
|
2009-06-12 00:49:22 +00:00
|
|
|
nm-access-point.c \
|
|
|
|
nm-ip4-config.c \
|
2011-02-25 16:16:17 +00:00
|
|
|
nm-device-modem.c \
|
2009-06-12 00:49:22 +00:00
|
|
|
nm-vpn-connection.c \
|
2008-03-24 15:17:30 +00:00
|
|
|
nm-types.c \
|
|
|
|
nm-object-cache.c \
|
2008-05-05 07:07:44 +00:00
|
|
|
nm-active-connection.c \
|
2009-07-23 13:20:52 +00:00
|
|
|
nm-dhcp4-config.c \
|
2009-08-21 19:12:31 +00:00
|
|
|
nm-ip6-config.c \
|
2010-01-15 20:40:19 +00:00
|
|
|
nm-dhcp6-config.c \
|
2009-07-23 13:20:52 +00:00
|
|
|
nm-remote-connection.c \
|
2010-12-14 06:03:22 +00:00
|
|
|
nm-remote-settings.c \
|
2011-01-12 21:46:37 +00:00
|
|
|
nm-secret-agent.c \
|
2011-01-04 05:55:38 +00:00
|
|
|
nm-device-wimax.c \
|
2012-02-08 17:56:52 +00:00
|
|
|
nm-wimax-nsp.c \
|
|
|
|
nm-glib-enum-types.c \
|
|
|
|
nm-glib-marshal.c
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2011-01-21 20:46:09 +00:00
|
|
|
libnm_glib_la_private_headers = \
|
|
|
|
nm-object-private.h \
|
|
|
|
nm-device-private.h \
|
|
|
|
nm-types-private.h \
|
|
|
|
nm-object-cache.h \
|
2012-02-08 17:56:52 +00:00
|
|
|
nm-remote-connection-private.h \
|
|
|
|
nm-glib-marshal.h
|
2011-01-21 20:46:09 +00:00
|
|
|
|
|
|
|
libnm_glib_la_SOURCES = \
|
|
|
|
$(libnm_glib_la_csources) \
|
|
|
|
$(libnm_glib_la_private_headers)
|
|
|
|
|
2012-02-08 17:56:52 +00:00
|
|
|
GLIB_GENERATED = nm-glib-enum-types.h nm-glib-enum-types.c
|
|
|
|
nm_glib_enum_types_sources = $(libnminclude_HEADERS)
|
|
|
|
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM
|
|
|
|
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
|
|
|
|
|
|
|
|
GLIB_GENERATED += nm-glib-marshal.h nm-glib-marshal.c
|
|
|
|
nm_glib_marshal_sources = $(libnm_glib_la_SOURCES)
|
|
|
|
|
2007-06-12 03:02:38 +00:00
|
|
|
libnm_glib_la_LIBADD = \
|
2009-06-12 00:49:22 +00:00
|
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
2010-03-10 17:18:08 +00:00
|
|
|
$(builddir)/libdeprecated-nm-glib.la \
|
2011-12-20 20:15:42 +00:00
|
|
|
$(GIO_LIBS) \
|
2009-06-12 00:49:22 +00:00
|
|
|
$(DBUS_LIBS) \
|
|
|
|
$(GUDEV_LIBS)
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2011-03-21 17:25:28 +00:00
|
|
|
SYMBOL_VIS_FILE=$(srcdir)/libnm-glib.ver
|
|
|
|
|
|
|
|
libnm_glib_la_LDFLAGS = -Wl,--version-script=$(SYMBOL_VIS_FILE) \
|
2011-06-15 12:58:04 +00:00
|
|
|
-version-info "6:0:2"
|
2008-08-22 11:32:25 +00:00
|
|
|
|
2007-02-12 09:23:43 +00:00
|
|
|
noinst_PROGRAMS = libnm-glib-test
|
|
|
|
|
|
|
|
libnm_glib_test_SOURCES = libnm-glib-test.c
|
2011-12-20 20:15:42 +00:00
|
|
|
libnm_glib_test_CFLAGS = $(GIO_CFLAGS) $(DBUS_CFLAGS)
|
|
|
|
libnm_glib_test_LDADD = libnm-glib.la $(top_builddir)/libnm-util/libnm-util.la $(GIO_LIBS) $(DBUS_LIBS)
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2008-06-16 19:26:30 +00:00
|
|
|
|
2011-02-11 00:48:32 +00:00
|
|
|
libnm_glib_vpn_la_SOURCES = \
|
|
|
|
nm-vpn-plugin.c \
|
|
|
|
nm-vpn-plugin-ui-interface.c \
|
2012-02-08 17:56:52 +00:00
|
|
|
nm-vpn-plugin-utils.c \
|
|
|
|
nm-vpn-enum-types.c
|
|
|
|
GLIB_GENERATED += nm-vpn-enum-types.h nm-vpn-enum-types.c
|
|
|
|
nm_vpn_enum_types_sources = $(libnmvpn_HEADERS)
|
2011-12-20 20:15:42 +00:00
|
|
|
libnm_glib_vpn_la_CFLAGS = $(GIO_CFLAGS) $(DBUS_CFLAGS)
|
|
|
|
libnm_glib_vpn_la_LIBADD = $(top_builddir)/libnm-util/libnm-util.la $(GIO_LIBS) $(DBUS_LIBS)
|
2009-08-26 18:07:35 +00:00
|
|
|
libnm_glib_vpn_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libnm-glib-vpn.ver \
|
2011-03-10 06:49:09 +00:00
|
|
|
-version-info "2:0:1"
|
2007-09-12 16:23:53 +00:00
|
|
|
|
2012-02-08 17:56:52 +00:00
|
|
|
BUILT_SOURCES += $(GLIB_GENERATED)
|
|
|
|
|
2010-12-28 23:11:27 +00:00
|
|
|
#####################################################
|
|
|
|
# Test libnm-glib stuff
|
|
|
|
#####################################################
|
|
|
|
|
|
|
|
libnm_glib_test_la_CFLAGS = \
|
2011-12-20 20:15:42 +00:00
|
|
|
$(GIO_CFLAGS) \
|
2010-12-28 23:11:27 +00:00
|
|
|
$(DBUS_CFLAGS) \
|
|
|
|
$(GUDEV_CFLAGS) \
|
|
|
|
-DLIBNM_GLIB_TEST
|
|
|
|
|
|
|
|
libnm_glib_test_la_SOURCES = \
|
|
|
|
$(libnminclude_HEADERS) \
|
|
|
|
$(libnm_glib_la_SOURCES)
|
|
|
|
|
|
|
|
libnm_glib_test_la_LIBADD = \
|
|
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
2011-12-20 20:15:42 +00:00
|
|
|
$(GIO_LIBS) \
|
2010-12-28 23:11:27 +00:00
|
|
|
$(DBUS_LIBS) \
|
|
|
|
$(GUDEV_LIBS)
|
|
|
|
|
|
|
|
#####################################################
|
2007-09-12 16:23:53 +00:00
|
|
|
|
|
|
|
nm-vpn-plugin-glue.h: $(top_srcdir)/introspection/nm-vpn-plugin.xml
|
2010-08-03 19:58:46 +00:00
|
|
|
$(AM_V_GEN) dbus-binding-tool --prefix=nm_vpn_plugin --mode=glib-server --output=$@ $<
|
2007-09-12 16:23:53 +00:00
|
|
|
|
2010-12-14 06:03:22 +00:00
|
|
|
nm-secret-agent-glue.h: $(top_srcdir)/introspection/nm-secret-agent.xml
|
|
|
|
$(AM_V_GEN) dbus-binding-tool --prefix=nm_secret_agent --mode=glib-server --output=$@ $<
|
|
|
|
|
2007-02-12 09:23:43 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2009-08-26 18:07:35 +00:00
|
|
|
pkgconfig_DATA = libnm-glib.pc libnm-glib-vpn.pc
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2009-08-26 18:07:35 +00:00
|
|
|
DISTCLEANFILES = libnm-glib.pc libnm-glib.pc
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2009-08-26 18:07:35 +00:00
|
|
|
EXTRA_DIST = libnm-glib.pc.in libnm-glib-vpn.pc.in libnm-glib.ver libnm-glib-vpn.ver
|
2007-02-12 09:23:43 +00:00
|
|
|
|
2012-01-09 16:15:59 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2011-01-21 20:46:09 +00:00
|
|
|
|
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
INTROSPECTION_GIRS =
|
|
|
|
INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/libnm-util
|
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
introspection_sources = $(libnminclude_HEADERS) $(libnm_glib_la_csources)
|
|
|
|
|
|
|
|
NMClient-1.0.gir: libnm-glib.la
|
2012-01-21 13:02:24 +00:00
|
|
|
NMClient_1_0_gir_INCLUDES = Gio-2.0 DBusGLib-1.0
|
|
|
|
NMClient_1_0_gir_PACKAGES = gio-2.0 dbus-glib-1 gudev-1.0
|
2011-01-26 17:26:08 +00:00
|
|
|
NMClient_1_0_gir_CFLAGS = $(INCLUDES) -I$(top_srcdir)/libnm-glib -I$(top_srcdir)/libnm-util
|
2011-01-21 20:46:09 +00:00
|
|
|
NMClient_1_0_gir_LIBS = libnm-glib.la
|
|
|
|
NMClient_1_0_gir_FILES = $(introspection_sources)
|
|
|
|
NMClient_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=NM --symbol-prefix=nm_ --include-uninstalled=$(top_builddir)/libnm-util/NetworkManager-1.0.gir
|
|
|
|
INTROSPECTION_GIRS += NMClient-1.0.gir
|
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
|
|
|
|
typelibdir = $(libdir)/girepository-1.0
|
|
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
|
|
|
endif
|
2011-03-21 17:25:28 +00:00
|
|
|
|
|
|
|
if WITH_TESTS
|
|
|
|
|
|
|
|
check-local:
|
|
|
|
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-glib.so $(SYMBOL_VIS_FILE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|