2013-08-22 10:47:21 -04:00
|
|
|
AM_CPPFLAGS = \
|
2013-11-05 14:36:38 -05:00
|
|
|
-I$(top_srcdir)/src \
|
2013-03-12 11:11:54 -04:00
|
|
|
-I$(top_srcdir)/src/config \
|
2012-05-07 15:19:09 -05:00
|
|
|
-I$(top_srcdir)/src/settings \
|
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
|
-I$(top_builddir)/include \
|
|
|
|
|
-I$(top_srcdir)/libnm-util \
|
2013-08-22 10:47:21 -04:00
|
|
|
-I$(top_builddir)/libnm-util \
|
2014-04-07 16:14:47 -04:00
|
|
|
-DG_LOG_DOMAIN=\""NetworkManager-example"\" \
|
2014-02-12 12:28:52 -05:00
|
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
2013-08-22 10:47:21 -04:00
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
|
$(DBUS_CFLAGS) \
|
2013-11-05 14:36:38 -05:00
|
|
|
$(POLKIT_CFLAGS) \
|
2013-08-22 10:47:21 -04:00
|
|
|
-DNMCONFDIR=\"$(nmconfdir)\"
|
2012-05-07 15:19:09 -05:00
|
|
|
|
|
|
|
|
# 'noinst' here because this is an example plugin we don't want to install
|
|
|
|
|
noinst_LTLIBRARIES = libnm-settings-plugin-example.la
|
|
|
|
|
|
|
|
|
|
# The actual plugins typically pull reader.c and writer.c out into
|
|
|
|
|
# their own static library so that unit tests can use them without
|
|
|
|
|
# having to build the entire plugin. But since this is a simple
|
|
|
|
|
# plugin we don't do that yet.
|
|
|
|
|
|
|
|
|
|
libnm_settings_plugin_example_la_SOURCES = \
|
|
|
|
|
nm-example-connection.c \
|
|
|
|
|
nm-example-connection.h \
|
|
|
|
|
plugin.c \
|
|
|
|
|
plugin.h \
|
|
|
|
|
errors.c \
|
|
|
|
|
common.h \
|
|
|
|
|
reader.c \
|
|
|
|
|
writer.c
|
|
|
|
|
|
|
|
|
|
libnm_settings_plugin_example_la_LIBADD = \
|
|
|
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
build: clean up GLib-related pkg-config usage (bgo #687218)
We had separate checks for glib-2.0, gobject-2.0, gmodule-2.0, and
gio-unix-2.0. It doesn't make sense to link a binary against all 4
because gio-unix-2.0 depends on glib-2.0 and gobject-2.0. Doing this
actually breaks things in unusual circumstances.
Generally, few bits of NM actually just use glib, and not gio. We
might as well coalesce those requirements together, even if it means
in some cases we "overlink". Additionally, I chose for now to fold
gmodule-2.0 in as well, even though many fewer programs need it. The
cost of overlinking is quite small.
The benefit of this is less repeated junk in Makefile.am, as well as
more centralized control over GLib. A followup patch will allow us to
set -DGLIB_VERSION_MIN_REQUIRED in just one place, rather than having
to replicate it 4 times.
The NM configure is still suboptimal - for example, libpolkit-1
depends on gio-2.0, so really we should determine the compiler flags
all in one pass. But it doesn't matter too much for now.
2012-10-31 20:21:32 +01:00
|
|
|
$(GLIB_LIBS)
|
2012-05-07 15:19:09 -05:00
|
|
|
|
2012-05-14 15:51:31 -05:00
|
|
|
libnm_settings_plugin_example_la_LDFLAGS = -module -avoid-version
|
2012-05-07 15:19:09 -05:00
|
|
|
|