2013-05-06 14:18:26 -04:00
|
|
|
include $(GLIB_MAKEFILE)
|
2004-06-24 14:18:37 +00:00
|
|
|
|
2013-02-05 18:35:34 +01:00
|
|
|
@GNOME_CODE_COVERAGE_RULES@
|
|
|
|
|
|
2015-02-27 10:36:23 -06:00
|
|
|
SUBDIRS = \
|
|
|
|
|
. \
|
|
|
|
|
dhcp-manager \
|
|
|
|
|
ppp-manager \
|
|
|
|
|
settings/plugins \
|
|
|
|
|
devices/adsl
|
2013-05-06 14:18:26 -04:00
|
|
|
|
2014-05-20 16:36:42 -04:00
|
|
|
if WITH_MODEM_MANAGER_1
|
2015-02-27 10:36:23 -06:00
|
|
|
SUBDIRS += devices/wwan devices/bluetooth
|
2014-05-20 16:36:42 -04:00
|
|
|
endif
|
|
|
|
|
|
2015-01-23 14:12:02 +01:00
|
|
|
if WITH_WIFI
|
|
|
|
|
SUBDIRS += devices/wifi
|
|
|
|
|
endif
|
|
|
|
|
|
2014-06-19 12:23:10 +02:00
|
|
|
if WITH_TEAMDCTL
|
|
|
|
|
SUBDIRS += devices/team
|
|
|
|
|
endif
|
|
|
|
|
|
2013-05-06 14:18:26 -04:00
|
|
|
if ENABLE_TESTS
|
2013-07-29 14:44:49 +02:00
|
|
|
SUBDIRS += \
|
|
|
|
|
dhcp-manager/tests \
|
2012-10-12 15:25:23 -05:00
|
|
|
dnsmasq-manager/tests \
|
2013-07-29 14:44:49 +02:00
|
|
|
platform \
|
2015-11-10 14:17:50 +01:00
|
|
|
devices \
|
2013-07-29 14:44:49 +02:00
|
|
|
rdisc \
|
|
|
|
|
supplicant-manager/tests \
|
2013-05-06 14:18:26 -04:00
|
|
|
tests
|
|
|
|
|
endif
|
2011-01-10 23:39:12 -06:00
|
|
|
|
2013-08-22 10:47:21 -04:00
|
|
|
AM_CPPFLAGS = \
|
2015-12-22 12:18:22 +01:00
|
|
|
-I$(top_srcdir)/shared \
|
|
|
|
|
-I$(top_builddir)/shared \
|
2015-04-16 12:34:55 -04:00
|
|
|
-I$(top_builddir)/introspection \
|
2014-05-19 13:44:02 -04:00
|
|
|
-I$(top_srcdir)/libnm-core \
|
|
|
|
|
-I$(top_builddir)/libnm-core \
|
2014-02-12 12:28:52 -05:00
|
|
|
-I$(top_srcdir)/callouts \
|
2014-07-31 14:02:22 -05:00
|
|
|
-DPREFIX=\"$(prefix)\" \
|
2014-04-07 16:14:47 -04:00
|
|
|
-DG_LOG_DOMAIN=\""NetworkManager"\" \
|
2016-04-05 21:18:43 +02:00
|
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON
|
2011-01-10 23:39:12 -06:00
|
|
|
|
2013-05-06 14:18:26 -04:00
|
|
|
# add each subdirectory that contains a libNM source file. $(sort) is being used
|
|
|
|
|
# primarily for its side effect of removing duplicates.
|
2013-08-22 10:47:21 -04:00
|
|
|
AM_CPPFLAGS += $(foreach d,$(sort $(dir $(libNetworkManager_la_SOURCES))),-I$(top_srcdir)/src/$d)
|
2011-01-10 23:39:12 -06:00
|
|
|
|
2014-10-29 09:12:18 -05:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
|
libNetworkManager.la \
|
|
|
|
|
libnm-iface-helper.la \
|
2015-05-11 08:44:59 +02:00
|
|
|
libsystemd-nm.la
|
2014-07-22 12:38:20 -05:00
|
|
|
|
|
|
|
|
######################
|
2015-05-11 08:44:59 +02:00
|
|
|
# libsystemd-nm
|
2014-07-22 12:38:20 -05:00
|
|
|
######################
|
|
|
|
|
|
2015-09-16 16:10:34 +02:00
|
|
|
SYSTEMD_NM_CFLAGS_PATHS = \
|
2015-05-11 08:44:59 +02:00
|
|
|
-I$(top_srcdir)/src/systemd/src/systemd \
|
|
|
|
|
-I$(top_srcdir)/src/systemd/src/libsystemd-network \
|
2015-07-05 12:04:21 +02:00
|
|
|
-I$(top_srcdir)/src/systemd/src/basic \
|
2015-09-16 16:10:34 +02:00
|
|
|
-I$(top_srcdir)/src/systemd
|
2015-05-11 08:44:59 +02:00
|
|
|
|
|
|
|
|
libsystemd_nm_la_SOURCES = \
|
2016-03-11 10:25:40 +01:00
|
|
|
systemd/nm-sd.c \
|
|
|
|
|
systemd/nm-sd.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/nm-sd-adapt.c \
|
|
|
|
|
systemd/nm-sd-adapt.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/alloc-util.c \
|
|
|
|
|
systemd/src/basic/alloc-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/async.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/escape.c \
|
|
|
|
|
systemd/src/basic/escape.h \
|
2016-02-29 14:30:15 +01:00
|
|
|
systemd/src/basic/ether-addr-util.c \
|
|
|
|
|
systemd/src/basic/ether-addr-util.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/fd-util.c \
|
|
|
|
|
systemd/src/basic/fd-util.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/fileio.c \
|
|
|
|
|
systemd/src/basic/fileio.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/fs-util.c \
|
|
|
|
|
systemd/src/basic/fs-util.h \
|
2016-01-26 17:22:54 +01:00
|
|
|
systemd/src/basic/hash-funcs.c \
|
|
|
|
|
systemd/src/basic/hash-funcs.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/basic/hashmap.c \
|
|
|
|
|
systemd/src/basic/hashmap.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/hexdecoct.c \
|
|
|
|
|
systemd/src/basic/hexdecoct.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/hostname-util.c \
|
|
|
|
|
systemd/src/basic/hostname-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/in-addr-util.c \
|
|
|
|
|
systemd/src/basic/in-addr-util.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/io-util.c \
|
|
|
|
|
systemd/src/basic/io-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/list.h \
|
|
|
|
|
systemd/src/basic/log.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/macro.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/basic/mempool.c \
|
|
|
|
|
systemd/src/basic/mempool.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/parse-util.c \
|
|
|
|
|
systemd/src/basic/parse-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/path-util.c \
|
|
|
|
|
systemd/src/basic/path-util.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/basic/prioq.c \
|
|
|
|
|
systemd/src/basic/prioq.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/random-util.c \
|
|
|
|
|
systemd/src/basic/random-util.h \
|
|
|
|
|
systemd/src/basic/refcnt.h \
|
2016-02-28 11:32:02 +01:00
|
|
|
systemd/src/basic/set.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/siphash24.c \
|
|
|
|
|
systemd/src/basic/siphash24.h \
|
2016-02-29 14:30:15 +01:00
|
|
|
systemd/src/basic/socket-util.c \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/socket-util.h \
|
|
|
|
|
systemd/src/basic/sparse-endian.h \
|
2016-01-26 17:22:54 +01:00
|
|
|
systemd/src/basic/stdio-util.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/string-table.c \
|
|
|
|
|
systemd/src/basic/string-table.h \
|
|
|
|
|
systemd/src/basic/string-util.c \
|
|
|
|
|
systemd/src/basic/string-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/strv.c \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/strv.h \
|
|
|
|
|
systemd/src/basic/time-util.c \
|
|
|
|
|
systemd/src/basic/time-util.h \
|
2015-11-23 16:13:45 +01:00
|
|
|
systemd/src/basic/umask-util.h \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/basic/unaligned.h \
|
|
|
|
|
systemd/src/basic/utf8.c \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/basic/utf8.h \
|
|
|
|
|
systemd/src/basic/util.c \
|
|
|
|
|
systemd/src/basic/util.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/libsystemd-network/arp-util.c \
|
|
|
|
|
systemd/src/libsystemd-network/arp-util.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/libsystemd-network/dhcp-identifier.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-identifier.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-internal.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-lease-internal.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-network.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-option.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-packet.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp-protocol.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp6-internal.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp6-lease-internal.h \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp6-network.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp6-option.c \
|
|
|
|
|
systemd/src/libsystemd-network/dhcp6-protocol.h \
|
2016-02-28 11:32:02 +01:00
|
|
|
systemd/src/libsystemd-network/lldp-internal.h \
|
2016-02-29 14:30:15 +01:00
|
|
|
systemd/src/libsystemd-network/lldp-neighbor.c \
|
|
|
|
|
systemd/src/libsystemd-network/lldp-neighbor.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/libsystemd-network/lldp-network.c \
|
2016-02-28 11:32:02 +01:00
|
|
|
systemd/src/libsystemd-network/lldp-network.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/libsystemd-network/network-internal.c \
|
|
|
|
|
systemd/src/libsystemd-network/network-internal.h \
|
|
|
|
|
systemd/src/libsystemd-network/sd-dhcp-client.c \
|
|
|
|
|
systemd/src/libsystemd-network/sd-dhcp-lease.c \
|
|
|
|
|
systemd/src/libsystemd-network/sd-dhcp6-client.c \
|
|
|
|
|
systemd/src/libsystemd-network/sd-dhcp6-lease.c \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/libsystemd-network/sd-ipv4acd.c \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/libsystemd-network/sd-ipv4ll.c \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/libsystemd-network/sd-lldp.c \
|
2016-03-09 12:27:56 +01:00
|
|
|
systemd/src/libsystemd/sd-event/sd-event.c \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/libsystemd/sd-id128/sd-id128.c \
|
2015-07-05 12:04:21 +02:00
|
|
|
systemd/src/shared/dns-domain.c \
|
|
|
|
|
systemd/src/shared/dns-domain.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/systemd/_sd-common.h \
|
2015-05-11 08:44:59 +02:00
|
|
|
systemd/src/systemd/sd-dhcp-client.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/systemd/sd-dhcp-lease.h \
|
2015-05-11 08:44:59 +02:00
|
|
|
systemd/src/systemd/sd-dhcp6-client.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/systemd/sd-dhcp6-lease.h \
|
2015-05-11 08:44:59 +02:00
|
|
|
systemd/src/systemd/sd-event.h \
|
2015-09-16 16:53:25 +02:00
|
|
|
systemd/src/systemd/sd-id128.h \
|
2015-10-07 10:07:17 +02:00
|
|
|
systemd/src/systemd/sd-ipv4acd.h \
|
2015-11-24 16:31:07 +01:00
|
|
|
systemd/src/systemd/sd-ipv4ll.h \
|
2016-02-28 11:32:02 +01:00
|
|
|
systemd/src/systemd/sd-lldp.h \
|
2015-11-24 16:31:07 +01:00
|
|
|
systemd/src/systemd/sd-ndisc.h
|
2015-05-11 08:44:59 +02:00
|
|
|
|
|
|
|
|
libsystemd_nm_la_CPPFLAGS = \
|
2015-12-22 12:18:22 +01:00
|
|
|
-I$(top_srcdir)/shared \
|
|
|
|
|
-I$(top_builddir)/shared \
|
2015-09-16 16:10:34 +02:00
|
|
|
-I$(top_srcdir)/libnm-core \
|
|
|
|
|
-I$(top_builddir)/libnm-core \
|
|
|
|
|
$(SYSTEMD_NM_CFLAGS_PATHS) \
|
|
|
|
|
-I$(top_srcdir)/src/systemd/src/shared \
|
2015-09-16 15:49:02 +02:00
|
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD \
|
2014-07-22 12:38:20 -05:00
|
|
|
$(GLIB_CFLAGS)
|
|
|
|
|
|
2015-05-11 08:44:59 +02:00
|
|
|
libsystemd_nm_la_LIBADD = \
|
2014-07-22 12:38:20 -05:00
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
|
2016-03-01 08:56:14 +01:00
|
|
|
######################
|
|
|
|
|
# libsystemd-nm-base
|
|
|
|
|
######################
|
|
|
|
|
|
|
|
|
|
if ENABLE_TESTS
|
|
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
|
libNetworkManager-base.la
|
|
|
|
|
|
|
|
|
|
libNetworkManager_base_la_SOURCES = \
|
|
|
|
|
nm-core-utils.c \
|
|
|
|
|
nm-core-utils.h \
|
|
|
|
|
nm-logging.c \
|
|
|
|
|
nm-logging.h
|
|
|
|
|
|
|
|
|
|
libNetworkManager_base_la_CPPFLAGS = \
|
|
|
|
|
-I$(top_srcdir)/shared \
|
|
|
|
|
-I$(top_builddir)/shared \
|
|
|
|
|
-I$(top_srcdir)/libnm-core \
|
|
|
|
|
-I$(top_builddir)/libnm-core \
|
|
|
|
|
-I$(top_srcdir)/src/platform \
|
|
|
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
|
|
|
|
|
-DNO_SYSTEMD_JOURNAL \
|
|
|
|
|
-DPREFIX=\"$(prefix)\" \
|
2016-04-25 21:18:06 +02:00
|
|
|
-DLOCALSTATEDIR=\"$(localstatedir)\" \
|
2016-03-01 08:56:14 +01:00
|
|
|
-DNMSTATEDIR=\"$(nmstatedir)\" \
|
|
|
|
|
$(GLIB_CFLAGS)
|
|
|
|
|
|
|
|
|
|
libNetworkManager_base_la_LIBADD = \
|
|
|
|
|
$(top_builddir)/libnm-core/libnm-core.la \
|
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
endif
|
|
|
|
|
|
2009-02-02 01:36:43 -05:00
|
|
|
###########################################
|
|
|
|
|
# NetworkManager
|
|
|
|
|
###########################################
|
|
|
|
|
|
2006-01-20 15:37:37 +00:00
|
|
|
sbin_PROGRAMS = NetworkManager
|
2004-11-12 18:49:33 +00:00
|
|
|
|
2009-05-14 11:01:56 -04:00
|
|
|
NetworkManager_SOURCES = \
|
build: ensure device source file constructors can be linked and called
gcc's linker does not add constructors from object files to the main
executable if they are built into a convenience library and then the
library is linked to the executable, unless something outside of the
object file with the constructor references a symbol from the object
file.
http://osdir.com/ml/libtool-gnu/2011-06/msg00003.html
"Yes, when convenience libraries are used to create a shared library, all the
objects are included in the output, when the output is an application they are
used like a normal archive library.
Either use them to create a shared library or, if creating an application,
don't use them, use the objects instead."
Further patches will remove all references to the NMDevice subclasses
from nm-manager.c, and have each NMDevice subclass register itself
with a factory through a constructor. But due to the above issue,
we need to somehow ensure the constructor in each nm-device-*.c file
gets added to the executable. This is accomplished by explicitly
linking each NMDevice subclass' object file into the main executable.
(Note that we cannot use -Wl,-whole-archive here because libtool only
supports this option for linking a convenience library to a shared
library, but not to an executable, and will actively prevent using
-whole-archive in LDFLAGS)
2014-09-08 15:12:48 -05:00
|
|
|
$(nm_device_sources) $(nm_device_headers) \
|
2014-10-29 17:12:46 -05:00
|
|
|
$(nm_dhcp_client_sources) $(nm_dhcp_client_headers) \
|
2014-10-29 09:36:47 -05:00
|
|
|
main-utils.c \
|
|
|
|
|
main-utils.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
main.c
|
|
|
|
|
|
2014-07-17 18:04:17 -04:00
|
|
|
NetworkManager_LDADD = libNetworkManager.la
|
2013-05-06 14:18:26 -04:00
|
|
|
|
build: ensure device source file constructors can be linked and called
gcc's linker does not add constructors from object files to the main
executable if they are built into a convenience library and then the
library is linked to the executable, unless something outside of the
object file with the constructor references a symbol from the object
file.
http://osdir.com/ml/libtool-gnu/2011-06/msg00003.html
"Yes, when convenience libraries are used to create a shared library, all the
objects are included in the output, when the output is an application they are
used like a normal archive library.
Either use them to create a shared library or, if creating an application,
don't use them, use the objects instead."
Further patches will remove all references to the NMDevice subclasses
from nm-manager.c, and have each NMDevice subclass register itself
with a factory through a constructor. But due to the above issue,
we need to somehow ensure the constructor in each nm-device-*.c file
gets added to the executable. This is accomplished by explicitly
linking each NMDevice subclass' object file into the main executable.
(Note that we cannot use -Wl,-whole-archive here because libtool only
supports this option for linking a convenience library to a shared
library, but not to an executable, and will actively prevent using
-whole-archive in LDFLAGS)
2014-09-08 15:12:48 -05:00
|
|
|
nm_device_sources = \
|
2014-09-08 10:15:02 -05:00
|
|
|
devices/nm-device-bond.c \
|
2014-09-08 10:12:28 -05:00
|
|
|
devices/nm-device-bridge.c \
|
2014-09-10 10:59:40 -05:00
|
|
|
devices/nm-device-ethernet.c \
|
2014-09-05 16:07:43 -05:00
|
|
|
devices/nm-device-infiniband.c \
|
2015-10-30 15:14:23 +01:00
|
|
|
devices/nm-device-ip-tunnel.c \
|
2014-09-08 11:11:19 -05:00
|
|
|
devices/nm-device-macvlan.c \
|
2014-09-08 11:50:37 -05:00
|
|
|
devices/nm-device-tun.c \
|
2014-09-08 10:57:31 -05:00
|
|
|
devices/nm-device-veth.c \
|
2014-09-08 10:24:11 -05:00
|
|
|
devices/nm-device-vlan.c \
|
2014-09-08 11:13:42 -05:00
|
|
|
devices/nm-device-vxlan.c \
|
build: ensure device source file constructors can be linked and called
gcc's linker does not add constructors from object files to the main
executable if they are built into a convenience library and then the
library is linked to the executable, unless something outside of the
object file with the constructor references a symbol from the object
file.
http://osdir.com/ml/libtool-gnu/2011-06/msg00003.html
"Yes, when convenience libraries are used to create a shared library, all the
objects are included in the output, when the output is an application they are
used like a normal archive library.
Either use them to create a shared library or, if creating an application,
don't use them, use the objects instead."
Further patches will remove all references to the NMDevice subclasses
from nm-manager.c, and have each NMDevice subclass register itself
with a factory through a constructor. But due to the above issue,
we need to somehow ensure the constructor in each nm-device-*.c file
gets added to the executable. This is accomplished by explicitly
linking each NMDevice subclass' object file into the main executable.
(Note that we cannot use -Wl,-whole-archive here because libtool only
supports this option for linking a convenience library to a shared
library, but not to an executable, and will actively prevent using
-whole-archive in LDFLAGS)
2014-09-08 15:12:48 -05:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
nm_device_headers = \
|
|
|
|
|
devices/nm-device-bond.h \
|
|
|
|
|
devices/nm-device-bridge.h \
|
|
|
|
|
devices/nm-device-ethernet.h \
|
|
|
|
|
devices/nm-device-infiniband.h \
|
2015-10-30 15:14:23 +01:00
|
|
|
devices/nm-device-ip-tunnel.h \
|
build: ensure device source file constructors can be linked and called
gcc's linker does not add constructors from object files to the main
executable if they are built into a convenience library and then the
library is linked to the executable, unless something outside of the
object file with the constructor references a symbol from the object
file.
http://osdir.com/ml/libtool-gnu/2011-06/msg00003.html
"Yes, when convenience libraries are used to create a shared library, all the
objects are included in the output, when the output is an application they are
used like a normal archive library.
Either use them to create a shared library or, if creating an application,
don't use them, use the objects instead."
Further patches will remove all references to the NMDevice subclasses
from nm-manager.c, and have each NMDevice subclass register itself
with a factory through a constructor. But due to the above issue,
we need to somehow ensure the constructor in each nm-device-*.c file
gets added to the executable. This is accomplished by explicitly
linking each NMDevice subclass' object file into the main executable.
(Note that we cannot use -Wl,-whole-archive here because libtool only
supports this option for linking a convenience library to a shared
library, but not to an executable, and will actively prevent using
-whole-archive in LDFLAGS)
2014-09-08 15:12:48 -05:00
|
|
|
devices/nm-device-macvlan.h \
|
|
|
|
|
devices/nm-device-tun.h \
|
|
|
|
|
devices/nm-device-veth.h \
|
|
|
|
|
devices/nm-device-vlan.h \
|
|
|
|
|
devices/nm-device-vxlan.h
|
|
|
|
|
|
2014-10-29 17:12:46 -05:00
|
|
|
nm_dhcp_client_sources = \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhclient.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhclient-utils.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhcpcd.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-systemd.c
|
|
|
|
|
|
|
|
|
|
nm_dhcp_client_headers = \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhclient.h \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhclient-utils.h \
|
|
|
|
|
dhcp-manager/nm-dhcp-dhcpcd.h \
|
|
|
|
|
dhcp-manager/nm-dhcp-systemd.h
|
|
|
|
|
|
2015-04-16 12:34:55 -04:00
|
|
|
libNetworkManager_la_SOURCES = \
|
build: ensure device source file constructors can be linked and called
gcc's linker does not add constructors from object files to the main
executable if they are built into a convenience library and then the
library is linked to the executable, unless something outside of the
object file with the constructor references a symbol from the object
file.
http://osdir.com/ml/libtool-gnu/2011-06/msg00003.html
"Yes, when convenience libraries are used to create a shared library, all the
objects are included in the output, when the output is an application they are
used like a normal archive library.
Either use them to create a shared library or, if creating an application,
don't use them, use the objects instead."
Further patches will remove all references to the NMDevice subclasses
from nm-manager.c, and have each NMDevice subclass register itself
with a factory through a constructor. But due to the above issue,
we need to somehow ensure the constructor in each nm-device-*.c file
gets added to the executable. This is accomplished by explicitly
linking each NMDevice subclass' object file into the main executable.
(Note that we cannot use -Wl,-whole-archive here because libtool only
supports this option for linking a convenience library to a shared
library, but not to an executable, and will actively prevent using
-whole-archive in LDFLAGS)
2014-09-08 15:12:48 -05:00
|
|
|
$(nm_device_headers) \
|
2014-10-29 17:12:46 -05:00
|
|
|
$(nm_dhcp_client_headers) \
|
2013-05-08 08:37:26 -04:00
|
|
|
devices/nm-device.c \
|
|
|
|
|
devices/nm-device.h \
|
2015-10-07 11:48:38 +02:00
|
|
|
devices/nm-lldp-listener.c \
|
|
|
|
|
devices/nm-lldp-listener.h \
|
2015-11-19 11:44:03 +01:00
|
|
|
devices/nm-arping-manager.c \
|
|
|
|
|
devices/nm-arping-manager.h \
|
2014-09-08 16:11:51 -05:00
|
|
|
devices/nm-device-ethernet-utils.c \
|
|
|
|
|
devices/nm-device-ethernet-utils.h \
|
2014-02-09 10:22:19 -06:00
|
|
|
devices/nm-device-factory.c \
|
2013-05-08 08:37:26 -04:00
|
|
|
devices/nm-device-factory.h \
|
|
|
|
|
devices/nm-device-generic.c \
|
|
|
|
|
devices/nm-device-generic.h \
|
2014-08-02 14:52:49 +02:00
|
|
|
devices/nm-device-logging.h \
|
2013-05-08 08:37:26 -04:00
|
|
|
devices/nm-device-private.h \
|
|
|
|
|
\
|
2013-05-06 14:18:26 -04:00
|
|
|
dhcp-manager/nm-dhcp-client.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-client.h \
|
2016-03-03 10:19:28 +01:00
|
|
|
dhcp-manager/nm-dhcp-client-logging.h \
|
2014-07-01 08:21:33 -05:00
|
|
|
dhcp-manager/nm-dhcp-utils.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-utils.h \
|
2014-10-29 15:04:38 -05:00
|
|
|
dhcp-manager/nm-dhcp-listener.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-listener.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
dhcp-manager/nm-dhcp-manager.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-manager.h \
|
|
|
|
|
\
|
|
|
|
|
dns-manager/nm-dns-dnsmasq.c \
|
|
|
|
|
dns-manager/nm-dns-dnsmasq.h \
|
2014-04-03 12:39:45 +02:00
|
|
|
dns-manager/nm-dns-unbound.c \
|
|
|
|
|
dns-manager/nm-dns-unbound.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
dns-manager/nm-dns-manager.c \
|
|
|
|
|
dns-manager/nm-dns-manager.h \
|
|
|
|
|
dns-manager/nm-dns-plugin.c \
|
|
|
|
|
dns-manager/nm-dns-plugin.h \
|
|
|
|
|
dns-manager/nm-dns-utils.c \
|
|
|
|
|
dns-manager/nm-dns-utils.h \
|
|
|
|
|
\
|
|
|
|
|
dnsmasq-manager/nm-dnsmasq-manager.c \
|
|
|
|
|
dnsmasq-manager/nm-dnsmasq-manager.h \
|
2012-10-12 15:25:23 -05:00
|
|
|
dnsmasq-manager/nm-dnsmasq-utils.c \
|
|
|
|
|
dnsmasq-manager/nm-dnsmasq-utils.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
\
|
2016-02-19 01:06:28 +01:00
|
|
|
platform/nmp-netns.c \
|
|
|
|
|
platform/nmp-netns.h \
|
2015-04-14 22:34:01 +02:00
|
|
|
platform/nmp-object.c \
|
|
|
|
|
platform/nmp-object.h \
|
2016-04-05 13:23:29 +02:00
|
|
|
platform/nm-platform-utils.c \
|
|
|
|
|
platform/nm-platform-utils.h \
|
|
|
|
|
platform/nm-platform.c \
|
|
|
|
|
platform/nm-platform.h \
|
|
|
|
|
platform/nm-linux-platform.c \
|
|
|
|
|
platform/nm-linux-platform.h \
|
|
|
|
|
platform/nm-fake-platform.c \
|
|
|
|
|
platform/nm-fake-platform.h \
|
2014-02-04 14:27:03 +01:00
|
|
|
platform/wifi/wifi-utils-nl80211.c \
|
|
|
|
|
platform/wifi/wifi-utils-nl80211.h \
|
|
|
|
|
platform/wifi/wifi-utils-private.h \
|
|
|
|
|
platform/wifi/wifi-utils.c \
|
|
|
|
|
platform/wifi/wifi-utils.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
\
|
2013-05-30 16:53:23 +02:00
|
|
|
rdisc/nm-fake-rdisc.c \
|
|
|
|
|
rdisc/nm-fake-rdisc.h \
|
|
|
|
|
rdisc/nm-lndp-rdisc.c \
|
|
|
|
|
rdisc/nm-lndp-rdisc.h \
|
|
|
|
|
rdisc/nm-rdisc.c \
|
|
|
|
|
rdisc/nm-rdisc.h \
|
2015-05-11 11:35:52 +02:00
|
|
|
rdisc/nm-rdisc-private.h \
|
2013-05-30 16:53:23 +02:00
|
|
|
\
|
2013-05-06 14:18:26 -04:00
|
|
|
ppp-manager/nm-ppp-manager.c \
|
|
|
|
|
ppp-manager/nm-ppp-manager.h \
|
|
|
|
|
ppp-manager/nm-ppp-status.h \
|
|
|
|
|
\
|
|
|
|
|
settings/nm-agent-manager.c \
|
|
|
|
|
settings/nm-agent-manager.h \
|
|
|
|
|
settings/nm-inotify-helper.c \
|
|
|
|
|
settings/nm-inotify-helper.h \
|
|
|
|
|
settings/nm-secret-agent.c \
|
|
|
|
|
settings/nm-secret-agent.h \
|
|
|
|
|
settings/nm-settings-connection.c \
|
|
|
|
|
settings/nm-settings-connection.h \
|
2015-04-16 08:52:20 -04:00
|
|
|
settings/nm-settings-plugin.c \
|
|
|
|
|
settings/nm-settings-plugin.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
settings/nm-settings.c \
|
|
|
|
|
settings/nm-settings.h \
|
|
|
|
|
\
|
|
|
|
|
settings/plugins/keyfile/nm-keyfile-connection.c \
|
|
|
|
|
settings/plugins/keyfile/nm-keyfile-connection.h \
|
|
|
|
|
settings/plugins/keyfile/plugin.c \
|
|
|
|
|
settings/plugins/keyfile/plugin.h \
|
|
|
|
|
settings/plugins/keyfile/reader.c \
|
|
|
|
|
settings/plugins/keyfile/reader.h \
|
|
|
|
|
settings/plugins/keyfile/utils.c \
|
|
|
|
|
settings/plugins/keyfile/utils.h \
|
|
|
|
|
settings/plugins/keyfile/writer.c \
|
|
|
|
|
settings/plugins/keyfile/writer.h \
|
|
|
|
|
\
|
|
|
|
|
supplicant-manager/nm-supplicant-config.c \
|
|
|
|
|
supplicant-manager/nm-supplicant-config.h \
|
|
|
|
|
supplicant-manager/nm-supplicant-interface.c \
|
|
|
|
|
supplicant-manager/nm-supplicant-interface.h \
|
|
|
|
|
supplicant-manager/nm-supplicant-manager.c \
|
|
|
|
|
supplicant-manager/nm-supplicant-manager.h \
|
|
|
|
|
supplicant-manager/nm-supplicant-settings-verify.c \
|
|
|
|
|
supplicant-manager/nm-supplicant-settings-verify.h \
|
|
|
|
|
supplicant-manager/nm-supplicant-types.h \
|
|
|
|
|
\
|
|
|
|
|
vpn-manager/nm-vpn-connection.c \
|
|
|
|
|
vpn-manager/nm-vpn-connection.h \
|
|
|
|
|
vpn-manager/nm-vpn-manager.c \
|
|
|
|
|
vpn-manager/nm-vpn-manager.h \
|
|
|
|
|
\
|
|
|
|
|
nm-activation-request.c \
|
|
|
|
|
nm-activation-request.h \
|
|
|
|
|
nm-active-connection.c \
|
|
|
|
|
nm-active-connection.h \
|
2015-07-20 18:33:35 +02:00
|
|
|
nm-audit-manager.c \
|
|
|
|
|
nm-audit-manager.h \
|
2015-04-16 14:20:51 -04:00
|
|
|
nm-bus-manager.c \
|
|
|
|
|
nm-bus-manager.h \
|
2014-07-25 12:04:04 -04:00
|
|
|
nm-config.c \
|
|
|
|
|
nm-config.h \
|
2014-07-11 17:57:20 +02:00
|
|
|
nm-config-data.c \
|
|
|
|
|
nm-config-data.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-connection-provider.c \
|
|
|
|
|
nm-connection-provider.h \
|
2013-07-29 16:36:00 -04:00
|
|
|
nm-connectivity.c \
|
|
|
|
|
nm-connectivity.h \
|
2013-10-03 23:42:26 -05:00
|
|
|
nm-dcb.c \
|
|
|
|
|
nm-dcb.h \
|
2015-01-02 15:42:11 +01:00
|
|
|
nm-route-manager.c \
|
|
|
|
|
nm-route-manager.h \
|
2014-08-29 00:03:47 +02:00
|
|
|
nm-default-route-manager.c \
|
|
|
|
|
nm-default-route-manager.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-dhcp4-config.c \
|
|
|
|
|
nm-dhcp4-config.h \
|
|
|
|
|
nm-dhcp6-config.c \
|
|
|
|
|
nm-dhcp6-config.h \
|
|
|
|
|
nm-dispatcher.c \
|
|
|
|
|
nm-dispatcher.h \
|
|
|
|
|
nm-enum-types.c \
|
|
|
|
|
nm-enum-types.h \
|
2015-04-13 13:31:42 -04:00
|
|
|
nm-exported-object.c \
|
|
|
|
|
nm-exported-object.h \
|
2014-11-12 12:37:12 +01:00
|
|
|
nm-firewall-manager.c \
|
|
|
|
|
nm-firewall-manager.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-ip4-config.c \
|
|
|
|
|
nm-ip4-config.h \
|
|
|
|
|
nm-ip6-config.c \
|
|
|
|
|
nm-ip6-config.h \
|
2014-07-25 12:04:04 -04:00
|
|
|
nm-logging.c \
|
|
|
|
|
nm-logging.h \
|
2014-08-14 13:34:57 +02:00
|
|
|
nm-auth-manager.c \
|
|
|
|
|
nm-auth-manager.h \
|
2013-07-25 22:53:43 -05:00
|
|
|
nm-auth-subject.c \
|
|
|
|
|
nm-auth-subject.h \
|
2014-08-16 01:33:46 +02:00
|
|
|
nm-auth-utils.c \
|
|
|
|
|
nm-auth-utils.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-manager.c \
|
|
|
|
|
nm-manager.h \
|
2015-04-09 20:29:48 +02:00
|
|
|
nm-multi-index.c \
|
|
|
|
|
nm-multi-index.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-policy.c \
|
|
|
|
|
nm-policy.h \
|
2013-05-09 10:24:08 -04:00
|
|
|
nm-rfkill-manager.c \
|
|
|
|
|
nm-rfkill-manager.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-session-monitor.h \
|
2015-01-02 20:23:48 +01:00
|
|
|
nm-session-monitor.c \
|
2013-05-06 14:18:26 -04:00
|
|
|
nm-sleep-monitor.h \
|
|
|
|
|
nm-types.h \
|
2016-03-01 09:56:51 +01:00
|
|
|
nm-core-utils.c \
|
|
|
|
|
nm-core-utils.h \
|
2013-05-06 14:18:26 -04:00
|
|
|
NetworkManagerUtils.c \
|
|
|
|
|
NetworkManagerUtils.h
|
2011-12-05 15:11:13 -06:00
|
|
|
|
2012-10-09 00:39:03 -04:00
|
|
|
|
2015-07-24 19:47:29 +03:00
|
|
|
if SUSPEND_RESUME_UPOWER
|
2015-04-16 12:34:55 -04:00
|
|
|
libNetworkManager_la_SOURCES += nm-sleep-monitor-upower.c
|
2015-07-24 19:47:29 +03:00
|
|
|
else
|
|
|
|
|
# systemd/consolekit suspend/resume used whenever upower is not enabled
|
2015-04-16 12:34:55 -04:00
|
|
|
libNetworkManager_la_SOURCES += nm-sleep-monitor-systemd.c
|
2013-05-06 14:18:26 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if WITH_WEXT
|
2015-04-16 12:34:55 -04:00
|
|
|
libNetworkManager_la_SOURCES += \
|
2014-02-04 14:27:03 +01:00
|
|
|
platform/wifi/wifi-utils-wext.c \
|
|
|
|
|
platform/wifi/wifi-utils-wext.h
|
2011-12-23 20:07:07 -05:00
|
|
|
endif
|
|
|
|
|
|
2013-05-06 14:18:26 -04:00
|
|
|
|
|
|
|
|
GLIB_GENERATED = nm-enum-types.h nm-enum-types.c
|
2014-10-15 15:27:25 -04:00
|
|
|
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM --fhead '\#include <nm-core-enum-types.h>\n'
|
2013-05-06 14:18:26 -04:00
|
|
|
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
|
2015-08-31 09:32:08 +02:00
|
|
|
nm_enum_types_sources = $(filter-out \
|
|
|
|
|
%/nm-device-private.h \
|
|
|
|
|
%/nm-rdisc-private.h \
|
|
|
|
|
%/wifi-utils-private.h \
|
2016-03-03 10:19:28 +01:00
|
|
|
%/nm-dhcp-client-logging.h \
|
|
|
|
|
%/nm-device-logging.h \
|
2015-08-31 09:32:08 +02:00
|
|
|
, $(libNetworkManager_la_SOURCES))
|
2014-02-10 06:35:56 -06:00
|
|
|
|
2013-05-08 16:47:48 -04:00
|
|
|
BUILT_SOURCES = $(GLIB_GENERATED)
|
|
|
|
|
|
2013-08-22 10:47:21 -04:00
|
|
|
AM_CPPFLAGS += \
|
2009-05-13 21:32:56 -04:00
|
|
|
$(GLIB_CFLAGS) \
|
2009-06-05 01:55:02 -04:00
|
|
|
$(GUDEV_CFLAGS) \
|
2009-05-13 21:32:56 -04:00
|
|
|
$(LIBNL_CFLAGS) \
|
2013-05-30 16:53:23 +02:00
|
|
|
$(LIBNDP_CFLAGS) \
|
2013-05-06 14:18:26 -04:00
|
|
|
$(LIBSOUP_CFLAGS) \
|
2015-03-23 09:15:43 +01:00
|
|
|
$(SELINUX_CFLAGS) \
|
2015-07-20 18:33:35 +02:00
|
|
|
$(LIBAUDIT_CFLAGS) \
|
2012-11-06 14:11:05 -06:00
|
|
|
$(SYSTEMD_LOGIN_CFLAGS) \
|
2015-07-08 16:21:21 +02:00
|
|
|
$(SYSTEMD_JOURNAL_CFLAGS) \
|
2015-09-16 16:10:34 +02:00
|
|
|
$(SYSTEMD_NM_CFLAGS_PATHS) \
|
2013-05-06 14:18:26 -04:00
|
|
|
\
|
2009-05-13 21:32:56 -04:00
|
|
|
-DBINDIR=\"$(bindir)\" \
|
|
|
|
|
-DDATADIR=\"$(datadir)\" \
|
2013-05-06 14:18:26 -04:00
|
|
|
-DLIBEXECDIR=\"$(libexecdir)\" \
|
2009-05-13 21:32:56 -04:00
|
|
|
-DLOCALSTATEDIR=\"$(localstatedir)\" \
|
2014-12-29 23:56:46 +01:00
|
|
|
-DRUNSTATEDIR=\"$(runstatedir)\" \
|
2013-05-06 14:18:26 -04:00
|
|
|
-DSBINDIR=\"$(sbindir)\" \
|
|
|
|
|
-DSYSCONFDIR=\"$(sysconfdir)\" \
|
2013-11-27 19:00:14 -06:00
|
|
|
-DRUNDIR=\"$(rundir)\" \
|
2013-05-06 14:18:26 -04:00
|
|
|
\
|
|
|
|
|
-DNMCONFDIR=\"$(nmconfdir)\" \
|
2009-05-13 21:32:56 -04:00
|
|
|
-DNMLOCALEDIR=\"$(datadir)/locale\" \
|
2012-08-23 11:53:41 +02:00
|
|
|
-DNMPLUGINDIR=\"$(pkglibdir)\" \
|
|
|
|
|
-DNMRUNDIR=\"$(nmrundir)\" \
|
2013-05-06 14:18:26 -04:00
|
|
|
-DNMSTATEDIR=\"$(nmstatedir)\" \
|
2015-06-08 17:51:04 +02:00
|
|
|
-DNMLIBDIR=\"$(nmlibdir)\" \
|
2013-05-06 14:18:26 -04:00
|
|
|
\
|
|
|
|
|
-DDHCLIENT_PATH=\"$(DHCLIENT_PATH)\" \
|
|
|
|
|
-DDHCPCD_PATH=\"$(DHCPCD_PATH)\" \
|
|
|
|
|
-DPPPD_PLUGIN_DIR=\"$(PPPD_PLUGIN_DIR)\" \
|
|
|
|
|
\
|
|
|
|
|
$(NULL)
|
2011-12-05 15:11:13 -06:00
|
|
|
|
2013-05-06 14:18:26 -04:00
|
|
|
libNetworkManager_la_LIBADD = \
|
2014-05-19 13:44:02 -04:00
|
|
|
$(top_builddir)/libnm-core/libnm-core.la \
|
2015-04-16 12:34:55 -04:00
|
|
|
$(top_builddir)/introspection/libnmdbus.la \
|
2015-05-11 08:44:59 +02:00
|
|
|
libsystemd-nm.la \
|
2009-08-20 12:31:17 -05:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(GUDEV_LIBS) \
|
|
|
|
|
$(LIBNL_LIBS) \
|
2012-11-06 14:11:05 -06:00
|
|
|
$(SYSTEMD_LOGIN_LIBS) \
|
2015-07-08 16:21:21 +02:00
|
|
|
$(SYSTEMD_JOURNAL_LIBS) \
|
2014-07-17 18:04:17 -04:00
|
|
|
$(LIBNDP_LIBS) \
|
2013-05-06 14:18:26 -04:00
|
|
|
$(LIBDL) \
|
2015-07-13 10:02:12 +02:00
|
|
|
$(LIBM) \
|
2015-07-20 18:33:35 +02:00
|
|
|
$(SELINUX_LIBS) \
|
|
|
|
|
$(LIBAUDIT_LIBS)
|
2004-11-12 18:49:33 +00:00
|
|
|
|
2014-07-31 20:35:28 +02:00
|
|
|
if WITH_LIBSOUP
|
2013-05-06 14:18:26 -04:00
|
|
|
libNetworkManager_la_LIBADD += $(LIBSOUP_LIBS)
|
2011-12-05 15:11:13 -06:00
|
|
|
endif
|
|
|
|
|
|
2016-03-08 17:21:22 +01:00
|
|
|
NetworkManager_LDFLAGS = \
|
|
|
|
|
-rdynamic \
|
|
|
|
|
-Wl,--version-script="$(srcdir)/NetworkManager.ver"
|
2006-02-02 20:52:43 +00:00
|
|
|
|
2014-07-22 12:38:20 -05:00
|
|
|
######################
|
|
|
|
|
|
2014-10-29 09:12:18 -05:00
|
|
|
libnm_iface_helper_la_SOURCES = \
|
|
|
|
|
dhcp-manager/nm-dhcp-client.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-client.h \
|
2016-03-03 10:19:28 +01:00
|
|
|
dhcp-manager/nm-dhcp-client-logging.h \
|
2014-10-29 09:12:18 -05:00
|
|
|
dhcp-manager/nm-dhcp-utils.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-utils.h \
|
|
|
|
|
dhcp-manager/nm-dhcp-manager.c \
|
|
|
|
|
dhcp-manager/nm-dhcp-manager.h \
|
|
|
|
|
\
|
2016-02-19 01:06:28 +01:00
|
|
|
platform/nmp-netns.c \
|
|
|
|
|
platform/nmp-netns.h \
|
2015-04-14 22:34:01 +02:00
|
|
|
platform/nmp-object.c \
|
|
|
|
|
platform/nmp-object.h \
|
2016-04-05 13:23:29 +02:00
|
|
|
platform/nm-platform-utils.c \
|
|
|
|
|
platform/nm-platform-utils.h \
|
|
|
|
|
platform/nm-platform.c \
|
|
|
|
|
platform/nm-platform.h \
|
|
|
|
|
platform/nm-linux-platform.c \
|
|
|
|
|
platform/nm-linux-platform.h \
|
2014-10-29 09:12:18 -05:00
|
|
|
platform/wifi/wifi-utils-nl80211.c \
|
|
|
|
|
platform/wifi/wifi-utils-nl80211.h \
|
|
|
|
|
platform/wifi/wifi-utils-private.h \
|
|
|
|
|
platform/wifi/wifi-utils.c \
|
|
|
|
|
platform/wifi/wifi-utils.h \
|
|
|
|
|
\
|
|
|
|
|
rdisc/nm-fake-rdisc.c \
|
|
|
|
|
rdisc/nm-fake-rdisc.h \
|
|
|
|
|
rdisc/nm-lndp-rdisc.c \
|
|
|
|
|
rdisc/nm-lndp-rdisc.h \
|
|
|
|
|
rdisc/nm-rdisc.c \
|
|
|
|
|
rdisc/nm-rdisc.h \
|
|
|
|
|
\
|
2015-01-02 15:42:11 +01:00
|
|
|
nm-route-manager.c \
|
|
|
|
|
nm-route-manager.h \
|
|
|
|
|
\
|
2015-04-13 13:31:42 -04:00
|
|
|
nm-exported-object.c \
|
|
|
|
|
nm-exported-object.h \
|
2014-10-29 09:12:18 -05:00
|
|
|
nm-ip4-config.c \
|
|
|
|
|
nm-ip4-config.h \
|
|
|
|
|
nm-ip6-config.c \
|
|
|
|
|
nm-ip6-config.h \
|
|
|
|
|
\
|
|
|
|
|
nm-enum-types.c \
|
|
|
|
|
nm-enum-types.h \
|
|
|
|
|
nm-logging.c \
|
|
|
|
|
nm-logging.h \
|
2015-04-09 20:29:48 +02:00
|
|
|
nm-multi-index.c \
|
|
|
|
|
nm-multi-index.h \
|
2016-03-01 09:56:51 +01:00
|
|
|
nm-core-utils.c \
|
|
|
|
|
nm-core-utils.h \
|
2014-10-29 09:12:18 -05:00
|
|
|
NetworkManagerUtils.c \
|
|
|
|
|
NetworkManagerUtils.h
|
|
|
|
|
|
|
|
|
|
if WITH_WEXT
|
|
|
|
|
libnm_iface_helper_la_SOURCES += \
|
|
|
|
|
platform/wifi/wifi-utils-wext.c \
|
|
|
|
|
platform/wifi/wifi-utils-wext.h
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
libnm_iface_helper_la_LIBADD = \
|
|
|
|
|
$(top_builddir)/libnm-core/libnm-core.la \
|
2015-04-16 12:34:55 -04:00
|
|
|
$(top_builddir)/introspection/libnmdbus.la \
|
2015-05-11 08:44:59 +02:00
|
|
|
libsystemd-nm.la \
|
2014-10-29 09:12:18 -05:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(GUDEV_LIBS) \
|
|
|
|
|
$(LIBNL_LIBS) \
|
|
|
|
|
$(LIBNDP_LIBS) \
|
|
|
|
|
$(LIBDL) \
|
|
|
|
|
$(LIBM)
|
|
|
|
|
|
|
|
|
|
libexec_PROGRAMS = nm-iface-helper
|
|
|
|
|
|
|
|
|
|
nm_iface_helper_SOURCES = \
|
|
|
|
|
dhcp-manager/nm-dhcp-systemd.h \
|
|
|
|
|
dhcp-manager/nm-dhcp-systemd.c \
|
|
|
|
|
nm-iface-helper.c \
|
|
|
|
|
main-utils.c \
|
|
|
|
|
main-utils.h
|
|
|
|
|
|
|
|
|
|
nm_iface_helper_LDADD = \
|
|
|
|
|
$(top_builddir)/libnm-core/libnm-core.la \
|
2015-05-11 08:44:59 +02:00
|
|
|
libsystemd-nm.la \
|
2014-10-29 09:12:18 -05:00
|
|
|
libnm-iface-helper.la \
|
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(GUDEV_LIBS) \
|
2015-07-08 16:21:21 +02:00
|
|
|
$(SYSTEMD_JOURNAL_LIBS) \
|
2014-10-29 09:12:18 -05:00
|
|
|
$(LIBNL_LIBS) \
|
|
|
|
|
$(LIBNDP_LIBS) \
|
|
|
|
|
$(LIBM)
|
|
|
|
|
|
|
|
|
|
nm_iface_helper_LDFLAGS = -rdynamic
|
|
|
|
|
|
|
|
|
|
######################
|
|
|
|
|
|
2004-07-28 18:04:23 +00:00
|
|
|
dbusservicedir = $(DBUS_SYS_DIR)
|
2011-12-12 19:31:11 -06:00
|
|
|
dbusservice_DATA = org.freedesktop.NetworkManager.conf
|
2004-06-24 14:18:37 +00:00
|
|
|
|
2012-10-18 11:53:05 -04:00
|
|
|
EXTRA_DIST = \
|
2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
NetworkManager.c. Also add support for recognizing Wireless Events.
* configure.in
- Find GLIB_GENMARSHAL
* src/Makefile.am
- Since we're marshalling custom types for wireless event signals,
we get to create our own marshallers using GLIB_GENMARSHAL
* src/NetworkManager.c
- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
cut down somewhat. We no longer process signals here.
- (nm_data_new): create the netlink monitor here, and remove a
useless call to nm_policy_schedule_device_change_check()
- (nm_data_free): get rid of the netlink monitor here
- (nm_device_link_activated, nm_device_link_deactivated): removed
- (main): don't create the netlink monitor here, let nm_data_new
do that. Call nm_policy_schedule_device_change_check() right
before we jump to the mainloop to figure out which device
to use first
* src/NetworkManagerSystem.[ch]
- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
convert back and forth from interface names to interface
indexes
* src/nm-device-802-11-wireless.c
- (real_init): connect to wireless-event signals from the netlink
monitor object
- (nm_device_802_11_wireless_event): new function, schedule handler
for wireless event signals from the netlink monitor object. We
want the handler to run in the device's context
- (wireless_event_helper): handle wireless-event signals from netlink
- (nm_device_802_11_wireless_dispose): disconnect wireless-event
signal handler
* src/nm-device-802-11-wireless.h
- remove unused prototype for nm_device_802_11_wireless_new
* src/nm-device-802-3-ethernet.c
- (real_init): new function; set up signal handlers for link events
- (nm_device_802_3_ethernet_link_activated): new function, schedule
handler for netlink link activated events on device's main loop
- (link_activated_helper): when we get a link activated event, set
the device's link to be active
- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
handler for netlink link deactivated events on device's main loop
- (link_deactivated_helper): when we get a link deactivated event, set
the device's link to be inactive
- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
dispose
* src/nm-device-802-3-ethernet.h
- remove unused prototype for nm_device_802_3_ethernet_new
* src/nm-device.[ch]
- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
but locks the device list
- (nm_device_set_active_link): a little bit of cleanup and de-indenting
* src/nm-netlink-monitor.[ch]
- (nm_netlink_monitor_class_install_signals): New signal
"wireless-event"
- (nm_netlink_monitor_new): keep reference to NMData so we can get
at the device list
- (nm_netlink_monitor_event_handler): expand for wireless events too
* src/nm-marshal-main.c
- Include generated nm-marshal.c and nm-marshal.h
* src/nm-marshal.list
- List of custom marshal functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
|
|
|
$(dbusservice_DATA) \
|
2016-03-08 19:30:36 +01:00
|
|
|
$(NetworkManager_DATA) \
|
|
|
|
|
NetworkManager.ver
|
2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
NetworkManager.c. Also add support for recognizing Wireless Events.
* configure.in
- Find GLIB_GENMARSHAL
* src/Makefile.am
- Since we're marshalling custom types for wireless event signals,
we get to create our own marshallers using GLIB_GENMARSHAL
* src/NetworkManager.c
- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
cut down somewhat. We no longer process signals here.
- (nm_data_new): create the netlink monitor here, and remove a
useless call to nm_policy_schedule_device_change_check()
- (nm_data_free): get rid of the netlink monitor here
- (nm_device_link_activated, nm_device_link_deactivated): removed
- (main): don't create the netlink monitor here, let nm_data_new
do that. Call nm_policy_schedule_device_change_check() right
before we jump to the mainloop to figure out which device
to use first
* src/NetworkManagerSystem.[ch]
- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
convert back and forth from interface names to interface
indexes
* src/nm-device-802-11-wireless.c
- (real_init): connect to wireless-event signals from the netlink
monitor object
- (nm_device_802_11_wireless_event): new function, schedule handler
for wireless event signals from the netlink monitor object. We
want the handler to run in the device's context
- (wireless_event_helper): handle wireless-event signals from netlink
- (nm_device_802_11_wireless_dispose): disconnect wireless-event
signal handler
* src/nm-device-802-11-wireless.h
- remove unused prototype for nm_device_802_11_wireless_new
* src/nm-device-802-3-ethernet.c
- (real_init): new function; set up signal handlers for link events
- (nm_device_802_3_ethernet_link_activated): new function, schedule
handler for netlink link activated events on device's main loop
- (link_activated_helper): when we get a link activated event, set
the device's link to be active
- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
handler for netlink link deactivated events on device's main loop
- (link_deactivated_helper): when we get a link deactivated event, set
the device's link to be inactive
- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
dispose
* src/nm-device-802-3-ethernet.h
- remove unused prototype for nm_device_802_3_ethernet_new
* src/nm-device.[ch]
- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
but locks the device list
- (nm_device_set_active_link): a little bit of cleanup and de-indenting
* src/nm-netlink-monitor.[ch]
- (nm_netlink_monitor_class_install_signals): New signal
"wireless-event"
- (nm_netlink_monitor_new): keep reference to NMData so we can get
at the device list
- (nm_netlink_monitor_event_handler): expand for wireless events too
* src/nm-marshal-main.c
- Include generated nm-marshal.c and nm-marshal.h
* src/nm-marshal.list
- List of custom marshal functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
|
|
|
|
2014-12-29 23:56:46 +01:00
|
|
|
rundir=$(runstatedir)/NetworkManager
|
2010-11-08 09:09:54 -06:00
|
|
|
statedir=$(localstatedir)/lib/NetworkManager
|
2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
NetworkManager.c. Also add support for recognizing Wireless Events.
* configure.in
- Find GLIB_GENMARSHAL
* src/Makefile.am
- Since we're marshalling custom types for wireless event signals,
we get to create our own marshallers using GLIB_GENMARSHAL
* src/NetworkManager.c
- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
cut down somewhat. We no longer process signals here.
- (nm_data_new): create the netlink monitor here, and remove a
useless call to nm_policy_schedule_device_change_check()
- (nm_data_free): get rid of the netlink monitor here
- (nm_device_link_activated, nm_device_link_deactivated): removed
- (main): don't create the netlink monitor here, let nm_data_new
do that. Call nm_policy_schedule_device_change_check() right
before we jump to the mainloop to figure out which device
to use first
* src/NetworkManagerSystem.[ch]
- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
convert back and forth from interface names to interface
indexes
* src/nm-device-802-11-wireless.c
- (real_init): connect to wireless-event signals from the netlink
monitor object
- (nm_device_802_11_wireless_event): new function, schedule handler
for wireless event signals from the netlink monitor object. We
want the handler to run in the device's context
- (wireless_event_helper): handle wireless-event signals from netlink
- (nm_device_802_11_wireless_dispose): disconnect wireless-event
signal handler
* src/nm-device-802-11-wireless.h
- remove unused prototype for nm_device_802_11_wireless_new
* src/nm-device-802-3-ethernet.c
- (real_init): new function; set up signal handlers for link events
- (nm_device_802_3_ethernet_link_activated): new function, schedule
handler for netlink link activated events on device's main loop
- (link_activated_helper): when we get a link activated event, set
the device's link to be active
- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
handler for netlink link deactivated events on device's main loop
- (link_deactivated_helper): when we get a link deactivated event, set
the device's link to be inactive
- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
dispose
* src/nm-device-802-3-ethernet.h
- remove unused prototype for nm_device_802_3_ethernet_new
* src/nm-device.[ch]
- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
but locks the device list
- (nm_device_set_active_link): a little bit of cleanup and de-indenting
* src/nm-netlink-monitor.[ch]
- (nm_netlink_monitor_class_install_signals): New signal
"wireless-event"
- (nm_netlink_monitor_new): keep reference to NMData so we can get
at the device list
- (nm_netlink_monitor_event_handler): expand for wireless events too
* src/nm-marshal-main.c
- Include generated nm-marshal.c and nm-marshal.h
* src/nm-marshal.list
- List of custom marshal functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
|
|
|
install-data-hook:
|
2016-03-21 01:51:08 -05:00
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(rundir)
|
2010-11-08 09:09:54 -06:00
|
|
|
$(mkinstalldirs) -m 0700 $(DESTDIR)$(statedir)
|
2012-11-20 22:00:46 -05:00
|
|
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(pkglibdir)
|
2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
NetworkManager.c. Also add support for recognizing Wireless Events.
* configure.in
- Find GLIB_GENMARSHAL
* src/Makefile.am
- Since we're marshalling custom types for wireless event signals,
we get to create our own marshallers using GLIB_GENMARSHAL
* src/NetworkManager.c
- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
cut down somewhat. We no longer process signals here.
- (nm_data_new): create the netlink monitor here, and remove a
useless call to nm_policy_schedule_device_change_check()
- (nm_data_free): get rid of the netlink monitor here
- (nm_device_link_activated, nm_device_link_deactivated): removed
- (main): don't create the netlink monitor here, let nm_data_new
do that. Call nm_policy_schedule_device_change_check() right
before we jump to the mainloop to figure out which device
to use first
* src/NetworkManagerSystem.[ch]
- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
convert back and forth from interface names to interface
indexes
* src/nm-device-802-11-wireless.c
- (real_init): connect to wireless-event signals from the netlink
monitor object
- (nm_device_802_11_wireless_event): new function, schedule handler
for wireless event signals from the netlink monitor object. We
want the handler to run in the device's context
- (wireless_event_helper): handle wireless-event signals from netlink
- (nm_device_802_11_wireless_dispose): disconnect wireless-event
signal handler
* src/nm-device-802-11-wireless.h
- remove unused prototype for nm_device_802_11_wireless_new
* src/nm-device-802-3-ethernet.c
- (real_init): new function; set up signal handlers for link events
- (nm_device_802_3_ethernet_link_activated): new function, schedule
handler for netlink link activated events on device's main loop
- (link_activated_helper): when we get a link activated event, set
the device's link to be active
- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
handler for netlink link deactivated events on device's main loop
- (link_deactivated_helper): when we get a link deactivated event, set
the device's link to be inactive
- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
dispose
* src/nm-device-802-3-ethernet.h
- remove unused prototype for nm_device_802_3_ethernet_new
* src/nm-device.[ch]
- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
but locks the device list
- (nm_device_set_active_link): a little bit of cleanup and de-indenting
* src/nm-netlink-monitor.[ch]
- (nm_netlink_monitor_class_install_signals): New signal
"wireless-event"
- (nm_netlink_monitor_new): keep reference to NMData so we can get
at the device list
- (nm_netlink_monitor_event_handler): expand for wireless events too
* src/nm-marshal-main.c
- Include generated nm-marshal.c and nm-marshal.h
* src/nm-marshal.list
- List of custom marshal functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
|
|
|
|
2014-02-26 09:58:15 -06:00
|
|
|
CLEANFILES = \
|
2015-04-16 12:34:55 -04:00
|
|
|
$(BUILT_SOURCES)
|