mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-30 03:30:27 +01:00
Add NetworkManager.h, which includes all of the other NM header, and require all external users of libnm to use that rather than the individual headers. (An exception is made for nm-dbus-interface.h, nm-vpn-dbus-interface.h, and nm-version.h, which can be included separately.)
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
include $(GLIB_MAKEFILE)
|
|
|
|
SUBDIRS = . tests
|
|
|
|
AM_CPPFLAGS = \
|
|
-I${top_srcdir}/include \
|
|
-DG_LOG_DOMAIN=\""libnm"\" \
|
|
-DNETWORKMANAGER_COMPILATION \
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
|
$(GLIB_CFLAGS) \
|
|
$(DBUS_CFLAGS)
|
|
|
|
noinst_LTLIBRARIES = libnm-core.la
|
|
|
|
# header/source defines are in Makefile.libnm-core, so they can be shared
|
|
# with libnm/Makefile.am
|
|
include Makefile.libnm-core
|
|
|
|
libnmincludedir = $(includedir)/libnm
|
|
|
|
libnminclude_HEADERS = $(libnm_core_headers)
|
|
libnm_core_la_SOURCES = \
|
|
$(libnm_core_sources) \
|
|
$(libnm_core_private_headers)
|
|
|
|
GLIB_GENERATED = nm-core-enum-types.h nm-core-enum-types.c
|
|
nm_core_enum_types_sources = $(notdir $(libnminclude_HEADERS))
|
|
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM
|
|
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
|
|
|
|
libnm_core_la_LIBADD = \
|
|
$(GLIB_LIBS) \
|
|
$(DBUS_LIBS) \
|
|
$(UUID_LIBS)
|
|
|
|
if WITH_GNUTLS
|
|
AM_CPPFLAGS += $(LIBGCRYPT_CFLAGS) $(GNUTLS_CFLAGS)
|
|
libnm_core_la_SOURCES += crypto_gnutls.c
|
|
libnm_core_la_LIBADD += $(LIBGCRYPT_LIBS) $(GNUTLS_LIBS)
|
|
endif
|
|
|
|
if WITH_NSS
|
|
AM_CPPFLAGS += $(NSS_CFLAGS)
|
|
libnm_core_la_SOURCES += crypto_nss.c
|
|
libnm_core_la_LIBADD += $(NSS_LIBS)
|
|
endif
|
|
|
|
BUILT_SOURCES = $(GLIB_GENERATED)
|
|
CLEANFILES = $(BUILT_SOURCES)
|