mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
build: merge "libnm-core/Makefile.am" into toplevel Makefile
libnm-core/Makefile.libnm-core still exists, it is used by libnm/Makefile.am. Also, libnm-core/tests/Makefile.am still exists.
This commit is contained in:
parent
3c2a49df2f
commit
e99978cb54
183
Makefile.am
183
Makefile.am
|
@ -4,10 +4,13 @@ include $(GLIB_MAKEFILE)
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = subdir-objects
|
||||||
|
|
||||||
noinst_LTLIBRARIES =
|
noinst_LTLIBRARIES =
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
BUILT_SOURCES =
|
BUILT_SOURCES =
|
||||||
|
GLIB_GENERATED =
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
. \
|
. \
|
||||||
|
@ -258,6 +261,184 @@ EXTRA_DIST += \
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
libnm_core_libnm_core_headers = \
|
||||||
|
shared/nm-version-macros.h \
|
||||||
|
libnm-core/nm-core-enum-types.h \
|
||||||
|
libnm-core/nm-connection.h \
|
||||||
|
libnm-core/nm-core-types.h \
|
||||||
|
libnm-core/nm-dbus-interface.h \
|
||||||
|
libnm-core/nm-errors.h \
|
||||||
|
libnm-core/nm-setting-8021x.h \
|
||||||
|
libnm-core/nm-setting-adsl.h \
|
||||||
|
libnm-core/nm-setting-bluetooth.h \
|
||||||
|
libnm-core/nm-setting-bond.h \
|
||||||
|
libnm-core/nm-setting-bridge-port.h \
|
||||||
|
libnm-core/nm-setting-bridge.h \
|
||||||
|
libnm-core/nm-setting-cdma.h \
|
||||||
|
libnm-core/nm-setting-connection.h \
|
||||||
|
libnm-core/nm-setting-dcb.h \
|
||||||
|
libnm-core/nm-setting-generic.h \
|
||||||
|
libnm-core/nm-setting-gsm.h \
|
||||||
|
libnm-core/nm-setting-infiniband.h \
|
||||||
|
libnm-core/nm-setting-ip-config.h \
|
||||||
|
libnm-core/nm-setting-ip-tunnel.h \
|
||||||
|
libnm-core/nm-setting-ip4-config.h \
|
||||||
|
libnm-core/nm-setting-ip6-config.h \
|
||||||
|
libnm-core/nm-setting-macvlan.h \
|
||||||
|
libnm-core/nm-setting-olpc-mesh.h \
|
||||||
|
libnm-core/nm-setting-ppp.h \
|
||||||
|
libnm-core/nm-setting-pppoe.h \
|
||||||
|
libnm-core/nm-setting-proxy.h \
|
||||||
|
libnm-core/nm-setting-serial.h \
|
||||||
|
libnm-core/nm-setting-team-port.h \
|
||||||
|
libnm-core/nm-setting-team.h \
|
||||||
|
libnm-core/nm-setting-tun.h \
|
||||||
|
libnm-core/nm-setting-vlan.h \
|
||||||
|
libnm-core/nm-setting-vpn.h \
|
||||||
|
libnm-core/nm-setting-vxlan.h \
|
||||||
|
libnm-core/nm-setting-wimax.h \
|
||||||
|
libnm-core/nm-setting-wired.h \
|
||||||
|
libnm-core/nm-setting-wireless-security.h \
|
||||||
|
libnm-core/nm-setting-wireless.h \
|
||||||
|
libnm-core/nm-setting.h \
|
||||||
|
libnm-core/nm-simple-connection.h \
|
||||||
|
libnm-core/nm-utils.h \
|
||||||
|
libnm-core/nm-version.h \
|
||||||
|
libnm-core/nm-vpn-dbus-interface.h \
|
||||||
|
libnm-core/nm-vpn-editor-plugin.h \
|
||||||
|
libnm-core/nm-vpn-plugin-info.h
|
||||||
|
|
||||||
|
libnm_core_libnm_core_private_headers = \
|
||||||
|
shared/nm-utils/nm-shared-utils.h \
|
||||||
|
libnm-core/crypto.h \
|
||||||
|
libnm-core/nm-connection-private.h \
|
||||||
|
libnm-core/nm-core-internal.h \
|
||||||
|
libnm-core/nm-core-types-internal.h \
|
||||||
|
libnm-core/nm-keyfile-internal.h \
|
||||||
|
libnm-core/nm-keyfile-utils.h \
|
||||||
|
libnm-core/nm-property-compare.h \
|
||||||
|
libnm-core/nm-setting-private.h \
|
||||||
|
libnm-core/nm-utils-private.h
|
||||||
|
|
||||||
|
libnm_core_libnm_core_sources = \
|
||||||
|
shared/nm-utils/nm-shared-utils.c \
|
||||||
|
libnm-core/nm-core-enum-types.c \
|
||||||
|
libnm-core/crypto.c \
|
||||||
|
libnm-core/nm-connection.c \
|
||||||
|
libnm-core/nm-dbus-utils.c \
|
||||||
|
libnm-core/nm-errors.c \
|
||||||
|
libnm-core/nm-keyfile-reader.c \
|
||||||
|
libnm-core/nm-keyfile-utils.c \
|
||||||
|
libnm-core/nm-keyfile-writer.c \
|
||||||
|
libnm-core/nm-property-compare.c \
|
||||||
|
libnm-core/nm-setting-8021x.c \
|
||||||
|
libnm-core/nm-setting-adsl.c \
|
||||||
|
libnm-core/nm-setting-bluetooth.c \
|
||||||
|
libnm-core/nm-setting-bond.c \
|
||||||
|
libnm-core/nm-setting-bridge-port.c \
|
||||||
|
libnm-core/nm-setting-bridge.c \
|
||||||
|
libnm-core/nm-setting-cdma.c \
|
||||||
|
libnm-core/nm-setting-connection.c \
|
||||||
|
libnm-core/nm-setting-dcb.c \
|
||||||
|
libnm-core/nm-setting-generic.c \
|
||||||
|
libnm-core/nm-setting-gsm.c \
|
||||||
|
libnm-core/nm-setting-infiniband.c \
|
||||||
|
libnm-core/nm-setting-ip-config.c \
|
||||||
|
libnm-core/nm-setting-ip-tunnel.c \
|
||||||
|
libnm-core/nm-setting-ip4-config.c \
|
||||||
|
libnm-core/nm-setting-ip6-config.c \
|
||||||
|
libnm-core/nm-setting-macvlan.c \
|
||||||
|
libnm-core/nm-setting-olpc-mesh.c \
|
||||||
|
libnm-core/nm-setting-ppp.c \
|
||||||
|
libnm-core/nm-setting-pppoe.c \
|
||||||
|
libnm-core/nm-setting-proxy.c \
|
||||||
|
libnm-core/nm-setting-serial.c \
|
||||||
|
libnm-core/nm-setting-team-port.c \
|
||||||
|
libnm-core/nm-setting-team.c \
|
||||||
|
libnm-core/nm-setting-tun.c \
|
||||||
|
libnm-core/nm-setting-vlan.c \
|
||||||
|
libnm-core/nm-setting-vpn.c \
|
||||||
|
libnm-core/nm-setting-vxlan.c \
|
||||||
|
libnm-core/nm-setting-wimax.c \
|
||||||
|
libnm-core/nm-setting-wired.c \
|
||||||
|
libnm-core/nm-setting-wireless-security.c \
|
||||||
|
libnm-core/nm-setting-wireless.c \
|
||||||
|
libnm-core/nm-setting.c \
|
||||||
|
libnm-core/nm-simple-connection.c \
|
||||||
|
libnm-core/nm-utils.c \
|
||||||
|
libnm-core/nm-vpn-editor-plugin.c \
|
||||||
|
libnm-core/nm-vpn-plugin-info.c
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
libnmincludedir = $(includedir)/libnm
|
||||||
|
|
||||||
|
libnminclude_HEADERS = $(libnm_core_libnm_core_headers)
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES += libnm-core/libnm-core.la
|
||||||
|
|
||||||
|
GLIB_GENERATED += \
|
||||||
|
libnm-core/nm-core-enum-types.h \
|
||||||
|
libnm-core/nm-core-enum-types.c
|
||||||
|
|
||||||
|
nm_core_enum_types_sources = $(filter-out %nm-core-enum-types.h,$(libnm_core_libnm_core_headers))
|
||||||
|
nm_core_enum_types_MKENUMS_H_FLAGS = --identifier-prefix NM
|
||||||
|
nm_core_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM
|
||||||
|
|
||||||
|
libnm_core_libnm_core_la_CPPFLAGS = \
|
||||||
|
-I${srcdir}/shared \
|
||||||
|
-I${builddir}/shared \
|
||||||
|
-I${srcdir}/libnm-core \
|
||||||
|
-I${builddir}/libnm-core \
|
||||||
|
-DG_LOG_DOMAIN=\""libnm"\" \
|
||||||
|
-DLOCALEDIR=\"$(datadir)/locale\" \
|
||||||
|
-DNMCONFDIR=\"$(nmconfdir)\" \
|
||||||
|
-DNMLIBDIR=\"$(nmlibdir)\" \
|
||||||
|
-DNMPLUGINDIR=\"$(pkglibdir)\" \
|
||||||
|
-DLIBEXECDIR=\"$(libexecdir)\" \
|
||||||
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
|
||||||
|
$(GLIB_CFLAGS) \
|
||||||
|
$(CODE_COVERAGE_CFLAGS) \
|
||||||
|
$(JANSSON_CFLAGS)
|
||||||
|
|
||||||
|
libnm_core_libnm_core_la_SOURCES = \
|
||||||
|
$(libnm_core_libnm_core_sources) \
|
||||||
|
$(libnm_core_libnm_core_private_headers)
|
||||||
|
|
||||||
|
libnm_core_libnm_core_la_LIBADD = \
|
||||||
|
$(GLIB_LIBS) \
|
||||||
|
$(UUID_LIBS) \
|
||||||
|
$(JANSSON_LIBS)
|
||||||
|
|
||||||
|
libnm_core_libnm_core_la_LDFLAGS = \
|
||||||
|
$(CODE_COVERAGE_LDFLAGS)
|
||||||
|
|
||||||
|
if WITH_GNUTLS
|
||||||
|
libnm_core_libnm_core_la_CPPFLAGS += $(GNUTLS_CFLAGS)
|
||||||
|
libnm_core_libnm_core_la_SOURCES += libnm-core/crypto_gnutls.c
|
||||||
|
libnm_core_libnm_core_la_LIBADD += $(GNUTLS_LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
if WITH_NSS
|
||||||
|
libnm_core_libnm_core_la_CPPFLAGS += $(NSS_CFLAGS)
|
||||||
|
libnm_core_libnm_core_la_SOURCES += libnm-core/crypto_nss.c
|
||||||
|
libnm_core_libnm_core_la_LIBADD += $(NSS_LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
libnm-core/nm-vpn-dbus-types.xml: libnm-core/nm-vpn-dbus-interface.h tools/enums-to-docbook.pl
|
||||||
|
$(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-vpn-dbus-types' 'VPN Plugin D-Bus API Types' $^ >$@
|
||||||
|
|
||||||
|
libnm-core/nm-dbus-types.xml: libnm-core/nm-dbus-interface.h tools/enums-to-docbook.pl
|
||||||
|
$(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-dbus-types' 'NetworkManager D-Bus API Types' $^ >$@
|
||||||
|
|
||||||
|
BUILT_SOURCES += \
|
||||||
|
libnm-core/nm-vpn-dbus-types.xml \
|
||||||
|
libnm-core/nm-dbus-types.xml
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
CONTRIBUTING \
|
CONTRIBUTING \
|
||||||
NetworkManager.pc.in \
|
NetworkManager.pc.in \
|
||||||
|
@ -292,6 +473,8 @@ EXTRA_DIST += \
|
||||||
\
|
\
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
BUILT_SOURCES += $(GLIB_GENERATED)
|
||||||
|
|
||||||
CLEANFILES += \
|
CLEANFILES += \
|
||||||
$(BUILT_SOURCES) \
|
$(BUILT_SOURCES) \
|
||||||
\
|
\
|
||||||
|
|
|
@ -1,66 +1 @@
|
||||||
include $(GLIB_MAKEFILE)
|
SUBDIRS = tests
|
||||||
|
|
||||||
@GNOME_CODE_COVERAGE_RULES@
|
|
||||||
|
|
||||||
SUBDIRS = . tests
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I${top_srcdir}/shared \
|
|
||||||
-I${top_builddir}/shared \
|
|
||||||
-DG_LOG_DOMAIN=\""libnm"\" \
|
|
||||||
-DLOCALEDIR=\"$(datadir)/locale\" \
|
|
||||||
-DNMCONFDIR=\"$(nmconfdir)\" \
|
|
||||||
-DNMLIBDIR=\"$(nmlibdir)\" \
|
|
||||||
-DNMPLUGINDIR=\"$(pkglibdir)\" \
|
|
||||||
-DLIBEXECDIR=\"$(libexecdir)\" \
|
|
||||||
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
|
|
||||||
$(GLIB_CFLAGS) \
|
|
||||||
$(CODE_COVERAGE_CFLAGS) \
|
|
||||||
$(JANSSON_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 = $(filter-out %nm-core-enum-types.h,$(libnminclude_HEADERS))
|
|
||||||
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM
|
|
||||||
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
|
|
||||||
|
|
||||||
libnm_core_la_LIBADD = \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(UUID_LIBS) \
|
|
||||||
$(JANSSON_LIBS)
|
|
||||||
|
|
||||||
libnm_core_la_LDFLAGS = \
|
|
||||||
$(CODE_COVERAGE_LDFLAGS)
|
|
||||||
|
|
||||||
if WITH_GNUTLS
|
|
||||||
AM_CPPFLAGS += $(GNUTLS_CFLAGS)
|
|
||||||
libnm_core_la_SOURCES += crypto_gnutls.c
|
|
||||||
libnm_core_la_LIBADD += $(GNUTLS_LIBS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
if WITH_NSS
|
|
||||||
AM_CPPFLAGS += $(NSS_CFLAGS)
|
|
||||||
libnm_core_la_SOURCES += crypto_nss.c
|
|
||||||
libnm_core_la_LIBADD += $(NSS_LIBS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
nm-vpn-dbus-types.xml: nm-vpn-dbus-interface.h $(top_srcdir)/tools/enums-to-docbook.pl
|
|
||||||
$(AM_V_GEN) @PERL@ $(top_srcdir)/tools/enums-to-docbook.pl 'nm-vpn-dbus-types' 'VPN Plugin D-Bus API Types' $^ >$@
|
|
||||||
|
|
||||||
nm-dbus-types.xml: nm-dbus-interface.h $(top_srcdir)/tools/enums-to-docbook.pl
|
|
||||||
$(AM_V_GEN) @PERL@ $(top_srcdir)/tools/enums-to-docbook.pl 'nm-dbus-types' 'NetworkManager D-Bus API Types' $^ >$@
|
|
||||||
|
|
||||||
BUILT_SOURCES = $(GLIB_GENERATED) nm-vpn-dbus-types.xml nm-dbus-types.xml
|
|
||||||
CLEANFILES = $(BUILT_SOURCES)
|
|
||||||
|
|
Loading…
Reference in a new issue