mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 14:10:08 +01:00
Add versioned NM_DEPRECATED_IN_* and NM_AVAILABLE_IN_* macros, and tag new/deprecated functions accordingly. (All currently-deprecated functions are assumed to have been deprecated in 0.9.10.) Add NM_VERSION_MIN_REQUIRED and NM_VERSION_MAX_ALLOWED macros which can be set to determine which versions will cause warnings. With the current settings, external consumers of the libnm-util/libnm-glib APIs will have MIN_REQUIRED and MAX_ALLOWED both set to NM_VERSION_0_9_8 by default, meaning they will get warnings about functions added in 0.9.10. NM internally sets NM_VERSION_MAX_ALLOWED to NM_VERSION_NEXT_STABLE to ensure that it is always allowed to use all APIs.
38 lines
688 B
Makefile
38 lines
688 B
Makefile
bin_PROGRAMS = \
|
|
nmcli
|
|
|
|
AM_CPPFLAGS = \
|
|
-I${top_srcdir} \
|
|
-I${top_srcdir}/include \
|
|
-I${top_builddir}/include \
|
|
-I${top_srcdir}/libnm-util \
|
|
-I${top_builddir}/libnm-util \
|
|
-I${top_srcdir}/libnm-glib \
|
|
$(DBUS_CFLAGS) \
|
|
$(GLIB_CFLAGS) \
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
|
-DNMCLI_LOCALEDIR=\"$(datadir)/locale\"
|
|
|
|
nmcli_SOURCES = \
|
|
common.c \
|
|
common.h \
|
|
connections.c \
|
|
connections.h \
|
|
devices.c \
|
|
devices.h \
|
|
network-manager.c \
|
|
network-manager.h \
|
|
settings.c \
|
|
settings.h \
|
|
nmcli.c \
|
|
nmcli.h \
|
|
utils.c \
|
|
utils.h
|
|
|
|
nmcli_LDADD = \
|
|
$(DBUS_LIBS) \
|
|
$(GLIB_LIBS) \
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
|
$(top_builddir)/libnm-glib/libnm-glib.la
|
|
|
|
|