Makefile.am 17 KB
Newer Older
1
include $(GLIB_MAKEFILE)
Dan Williams's avatar
Dan Williams committed
2

3 4
@GNOME_CODE_COVERAGE_RULES@

5 6 7 8 9 10
SUBDIRS = \
	. \
	dhcp-manager \
	ppp-manager \
	settings/plugins \
	devices/adsl
11

12
if WITH_MODEM_MANAGER_1
13
SUBDIRS += devices/wwan	devices/bluetooth
14 15
endif

16 17 18 19
if WITH_WIFI
SUBDIRS += devices/wifi
endif

20 21 22 23
if WITH_TEAMDCTL
SUBDIRS += devices/team
endif

24
if ENABLE_TESTS
25 26
SUBDIRS += \
	dhcp-manager/tests \
27
	dnsmasq-manager/tests \
28
	platform \
Beniamino Galvani's avatar
Beniamino Galvani committed
29
	devices \
30 31
	rdisc \
	supplicant-manager/tests \
32 33
	tests
endif
34

35
AM_CPPFLAGS =				\
36 37
	-I$(top_srcdir)/shared		\
	-I$(top_builddir)/shared \
Dan Winship's avatar
Dan Winship committed
38
	-I$(top_builddir)/introspection	\
39 40
	-I$(top_srcdir)/libnm-core	\
	-I$(top_builddir)/libnm-core	\
41
	-I$(top_srcdir)/callouts	\
42
	-DPREFIX=\"$(prefix)\"          \
43
	-DG_LOG_DOMAIN=\""NetworkManager"\" \
44
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON
45

46 47
# add each subdirectory that contains a libNM source file. $(sort) is being used
# primarily for its side effect of removing duplicates.
48
AM_CPPFLAGS += $(foreach d,$(sort $(dir $(libNetworkManager_la_SOURCES))),-I$(top_srcdir)/src/$d)
49

50 51 52
noinst_LTLIBRARIES = \
	libNetworkManager.la \
	libnm-iface-helper.la \
53
	libsystemd-nm.la
54 55

######################
56
# libsystemd-nm
57 58
######################

59
SYSTEMD_NM_CFLAGS_PATHS = \
60 61
	-I$(top_srcdir)/src/systemd/src/systemd \
	-I$(top_srcdir)/src/systemd/src/libsystemd-network \
62
	-I$(top_srcdir)/src/systemd/src/basic \
63
	-I$(top_srcdir)/src/systemd
64 65

libsystemd_nm_la_SOURCES = \
66 67
	systemd/nm-sd.c \
	systemd/nm-sd.h \
68 69
	systemd/nm-sd-adapt.c \
	systemd/nm-sd-adapt.h \
70 71
	systemd/src/basic/alloc-util.c \
	systemd/src/basic/alloc-util.h \
72
	systemd/src/basic/async.h \
73 74
	systemd/src/basic/escape.c \
	systemd/src/basic/escape.h \
75 76
	systemd/src/basic/ether-addr-util.c \
	systemd/src/basic/ether-addr-util.h \
77 78
	systemd/src/basic/extract-word.c \
	systemd/src/basic/extract-word.h \
79 80
	systemd/src/basic/fd-util.c \
	systemd/src/basic/fd-util.h \
81 82
	systemd/src/basic/fileio.c \
	systemd/src/basic/fileio.h \
83 84
	systemd/src/basic/fs-util.c \
	systemd/src/basic/fs-util.h \
85 86
	systemd/src/basic/hash-funcs.c \
	systemd/src/basic/hash-funcs.h \
87 88
	systemd/src/basic/hashmap.c \
	systemd/src/basic/hashmap.h \
89 90
	systemd/src/basic/hexdecoct.c \
	systemd/src/basic/hexdecoct.h \
91 92
	systemd/src/basic/hostname-util.c \
	systemd/src/basic/hostname-util.h \
93 94
	systemd/src/basic/in-addr-util.c \
	systemd/src/basic/in-addr-util.h \
95 96
	systemd/src/basic/io-util.c \
	systemd/src/basic/io-util.h \
97 98
	systemd/src/basic/list.h \
	systemd/src/basic/log.h \
99
	systemd/src/basic/macro.h \
100 101
	systemd/src/basic/mempool.c \
	systemd/src/basic/mempool.h \
102 103
	systemd/src/basic/parse-util.c \
	systemd/src/basic/parse-util.h \
104 105
	systemd/src/basic/path-util.c \
	systemd/src/basic/path-util.h \
106 107
	systemd/src/basic/prioq.c \
	systemd/src/basic/prioq.h \
108 109 110
	systemd/src/basic/random-util.c \
	systemd/src/basic/random-util.h \
	systemd/src/basic/refcnt.h \
111
	systemd/src/basic/set.h \
112
	systemd/src/basic/signal-util.h \
113 114
	systemd/src/basic/siphash24.c \
	systemd/src/basic/siphash24.h \
115
	systemd/src/basic/socket-util.c \
116 117
	systemd/src/basic/socket-util.h \
	systemd/src/basic/sparse-endian.h \
118
	systemd/src/basic/stdio-util.h \
119 120 121 122
	systemd/src/basic/string-table.c \
	systemd/src/basic/string-table.h \
	systemd/src/basic/string-util.c \
	systemd/src/basic/string-util.h \
123
	systemd/src/basic/strv.c \
124 125 126
	systemd/src/basic/strv.h \
	systemd/src/basic/time-util.c \
	systemd/src/basic/time-util.h \
127
	systemd/src/basic/umask-util.h \
128 129
	systemd/src/basic/unaligned.h \
	systemd/src/basic/utf8.c \
130 131 132
	systemd/src/basic/utf8.h \
	systemd/src/basic/util.c \
	systemd/src/basic/util.h \
133 134
	systemd/src/libsystemd-network/arp-util.c \
	systemd/src/libsystemd-network/arp-util.h \
135 136 137 138 139 140 141 142 143 144 145 146 147
	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 \
148
	systemd/src/libsystemd-network/lldp-internal.h \
149 150
	systemd/src/libsystemd-network/lldp-neighbor.c \
	systemd/src/libsystemd-network/lldp-neighbor.h \
151
	systemd/src/libsystemd-network/lldp-network.c \
152
	systemd/src/libsystemd-network/lldp-network.h \
153 154 155 156 157 158
	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 \
159
	systemd/src/libsystemd-network/sd-ipv4acd.c \
160
	systemd/src/libsystemd-network/sd-ipv4ll.c \
161
	systemd/src/libsystemd-network/sd-lldp.c \
162
	systemd/src/libsystemd/sd-event/sd-event.c \
163
	systemd/src/libsystemd/sd-id128/sd-id128.c \
164 165
	systemd/src/shared/dns-domain.c \
	systemd/src/shared/dns-domain.h \
166
	systemd/src/systemd/_sd-common.h \
167
	systemd/src/systemd/sd-dhcp-client.h \
168
	systemd/src/systemd/sd-dhcp-lease.h \
169
	systemd/src/systemd/sd-dhcp6-client.h \
170
	systemd/src/systemd/sd-dhcp6-lease.h \
171
	systemd/src/systemd/sd-event.h \
172
	systemd/src/systemd/sd-id128.h \
173
	systemd/src/systemd/sd-ipv4acd.h \
174
	systemd/src/systemd/sd-ipv4ll.h \
175
	systemd/src/systemd/sd-lldp.h \
176
	systemd/src/systemd/sd-ndisc.h
177 178

libsystemd_nm_la_CPPFLAGS = \
179 180
	-I$(top_srcdir)/shared \
	-I$(top_builddir)/shared \
181 182 183 184
	-I$(top_srcdir)/libnm-core \
	-I$(top_builddir)/libnm-core \
	$(SYSTEMD_NM_CFLAGS_PATHS) \
	-I$(top_srcdir)/src/systemd/src/shared \
185
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD \
186 187
	$(GLIB_CFLAGS)

188
libsystemd_nm_la_LIBADD = \
189 190
	$(GLIB_LIBS)

191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
######################
# 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)\" \
214
	-DLOCALSTATEDIR=\"$(localstatedir)\" \
215 216 217 218 219 220 221 222
	-DNMSTATEDIR=\"$(nmstatedir)\" \
	$(GLIB_CFLAGS)

libNetworkManager_base_la_LIBADD = \
	$(top_builddir)/libnm-core/libnm-core.la \
	$(GLIB_LIBS)
endif

Dan Williams's avatar
Dan Williams committed
223 224 225 226
###########################################
# NetworkManager
###########################################

227
sbin_PROGRAMS = NetworkManager
228

229
NetworkManager_SOURCES = \
230
	$(nm_device_sources) $(nm_device_headers) \
231
	$(nm_dhcp_client_sources) $(nm_dhcp_client_headers) \
232 233
	main-utils.c \
	main-utils.h \
234 235
	main.c

Dan Winship's avatar
Dan Winship committed
236
NetworkManager_LDADD = libNetworkManager.la
237

238
nm_device_sources = \
239
	devices/nm-device-bond.c \
240
	devices/nm-device-bridge.c \
241
	devices/nm-device-ethernet.c \
242
	devices/nm-device-infiniband.c \
243
	devices/nm-device-ip-tunnel.c \
244
	devices/nm-device-macvlan.c \
245
	devices/nm-device-tun.c \
246
	devices/nm-device-veth.c \
247
	devices/nm-device-vlan.c \
248
	devices/nm-device-vxlan.c \
249 250 251 252 253 254 255
	$(NULL)

nm_device_headers = \
	devices/nm-device-bond.h \
	devices/nm-device-bridge.h \
	devices/nm-device-ethernet.h \
	devices/nm-device-infiniband.h \
256
	devices/nm-device-ip-tunnel.h \
257 258 259 260 261 262
	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

263 264 265 266 267 268 269 270 271 272 273 274
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

Dan Winship's avatar
Dan Winship committed
275
libNetworkManager_la_SOURCES = \
276
	$(nm_device_headers) \
277
	$(nm_dhcp_client_headers) \
278 279
	devices/nm-device.c \
	devices/nm-device.h \
280 281
	devices/nm-lldp-listener.c \
	devices/nm-lldp-listener.h \
282 283
	devices/nm-arping-manager.c \
	devices/nm-arping-manager.h \
284 285
	devices/nm-device-ethernet-utils.c \
	devices/nm-device-ethernet-utils.h \
286
	devices/nm-device-factory.c \
287 288 289
	devices/nm-device-factory.h \
	devices/nm-device-generic.c \
	devices/nm-device-generic.h \
290
	devices/nm-device-logging.h \
291 292
	devices/nm-device-private.h \
	\
293 294
	dhcp-manager/nm-dhcp-client.c \
	dhcp-manager/nm-dhcp-client.h \
295
	dhcp-manager/nm-dhcp-client-logging.h \
296 297
	dhcp-manager/nm-dhcp-utils.c \
	dhcp-manager/nm-dhcp-utils.h \
298 299
	dhcp-manager/nm-dhcp-listener.c \
	dhcp-manager/nm-dhcp-listener.h \
300 301 302 303 304
	dhcp-manager/nm-dhcp-manager.c \
	dhcp-manager/nm-dhcp-manager.h \
	\
	dns-manager/nm-dns-dnsmasq.c \
	dns-manager/nm-dns-dnsmasq.h \
305 306
	dns-manager/nm-dns-unbound.c \
	dns-manager/nm-dns-unbound.h \
307 308 309 310 311 312 313 314 315
	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 \
316 317
	dnsmasq-manager/nm-dnsmasq-utils.c \
	dnsmasq-manager/nm-dnsmasq-utils.h \
318
	\
319 320
	platform/nmp-netns.c \
	platform/nmp-netns.h \
321 322
	platform/nmp-object.c \
	platform/nmp-object.h \
323 324 325 326 327 328 329 330
	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 \
331 332 333 334 335
	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 \
336
	\
337 338 339 340 341 342
	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 \
343
	rdisc/nm-rdisc-private.h \
344
	\
345 346 347 348 349 350 351 352 353 354 355 356
	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 \
357 358
	settings/nm-settings-plugin.c \
	settings/nm-settings-plugin.h \
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
	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 \
392 393
	nm-audit-manager.c \
	nm-audit-manager.h \
394 395
	nm-bus-manager.c \
	nm-bus-manager.h \
396 397
	nm-config.c \
	nm-config.h \
398 399
	nm-config-data.c \
	nm-config-data.h \
400 401
	nm-connectivity.c \
	nm-connectivity.h \
402 403
	nm-dcb.c \
	nm-dcb.h \
404 405
	nm-route-manager.c \
	nm-route-manager.h \
406 407
	nm-default-route-manager.c \
	nm-default-route-manager.h \
408 409 410 411 412 413 414 415
	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 \
416 417
	nm-exported-object.c \
	nm-exported-object.h \
418 419
	nm-firewall-manager.c \
	nm-firewall-manager.h \
420 421 422 423
	nm-ip4-config.c \
	nm-ip4-config.h \
	nm-ip6-config.c \
	nm-ip6-config.h \
424 425
	nm-logging.c \
	nm-logging.h \
426 427
	nm-auth-manager.c \
	nm-auth-manager.h \
428 429
	nm-auth-subject.c \
	nm-auth-subject.h \
430 431
	nm-auth-utils.c \
	nm-auth-utils.h \
432 433
	nm-manager.c \
	nm-manager.h \
434 435
	nm-multi-index.c \
	nm-multi-index.h \
436 437
	nm-policy.c \
	nm-policy.h \
438 439
	nm-rfkill-manager.c \
	nm-rfkill-manager.h \
440
	nm-session-monitor.h \
441
	nm-session-monitor.c \
442
	nm-sleep-monitor.c \
443 444
	nm-sleep-monitor.h \
	nm-types.h \
445 446
	nm-core-utils.c \
	nm-core-utils.h \
447 448
	NetworkManagerUtils.c \
	NetworkManagerUtils.h
449

450

451
if WITH_WEXT
Dan Winship's avatar
Dan Winship committed
452
libNetworkManager_la_SOURCES += \
453 454
	platform/wifi/wifi-utils-wext.c \
	platform/wifi/wifi-utils-wext.h
455 456
endif

457 458

GLIB_GENERATED = nm-enum-types.h nm-enum-types.c
459
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM --fhead '\#include <nm-core-enum-types.h>\n'
460
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
461 462 463 464
nm_enum_types_sources = $(filter-out \
                              %/nm-device-private.h \
                              %/nm-rdisc-private.h \
                              %/wifi-utils-private.h \
465 466
                              %/nm-dhcp-client-logging.h \
                              %/nm-device-logging.h \
467
                              , $(libNetworkManager_la_SOURCES))
468

469 470
BUILT_SOURCES = $(GLIB_GENERATED)

471
AM_CPPFLAGS += \
472
	$(GLIB_CFLAGS) \
473
	$(GUDEV_CFLAGS) \
474
	$(LIBNL_CFLAGS) \
475
	$(LIBNDP_CFLAGS) \
476
	$(LIBSOUP_CFLAGS) \
477
	$(SELINUX_CFLAGS) \
478
	$(LIBAUDIT_CFLAGS) \
479
	$(SYSTEMD_LOGIN_CFLAGS) \
480
	$(SYSTEMD_JOURNAL_CFLAGS) \
481
	$(SYSTEMD_NM_CFLAGS_PATHS) \
482
	$(CODE_COVERAGE_CFLAGS) \
483
	\
484 485
	-DBINDIR=\"$(bindir)\" \
	-DDATADIR=\"$(datadir)\" \
486
	-DLIBEXECDIR=\"$(libexecdir)\" \
487
	-DLOCALSTATEDIR=\"$(localstatedir)\" \
488
	-DRUNSTATEDIR=\"$(runstatedir)\" \
489 490
	-DSBINDIR=\"$(sbindir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
491
	-DRUNDIR=\"$(rundir)\" \
492 493
	\
	-DNMCONFDIR=\"$(nmconfdir)\" \
494
	-DNMLOCALEDIR=\"$(datadir)/locale\" \
495 496
	-DNMPLUGINDIR=\"$(pkglibdir)\" \
	-DNMRUNDIR=\"$(nmrundir)\" \
497
	-DNMSTATEDIR=\"$(nmstatedir)\" \
498
	-DNMLIBDIR=\"$(nmlibdir)\" \
499 500 501 502 503 504
	\
	-DDHCLIENT_PATH=\"$(DHCLIENT_PATH)\" \
	-DDHCPCD_PATH=\"$(DHCPCD_PATH)\" \
	-DPPPD_PLUGIN_DIR=\"$(PPPD_PLUGIN_DIR)\" \
	\
	$(NULL)
505

506 507
AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)

508
libNetworkManager_la_LIBADD = \
509
	$(top_builddir)/libnm-core/libnm-core.la \
Dan Winship's avatar
Dan Winship committed
510
	$(top_builddir)/introspection/libnmdbus.la \
511
	libsystemd-nm.la \
512 513 514
	$(GLIB_LIBS) \
	$(GUDEV_LIBS) \
	$(LIBNL_LIBS) \
515
	$(SYSTEMD_LOGIN_LIBS) \
516
	$(SYSTEMD_JOURNAL_LIBS) \
Dan Winship's avatar
Dan Winship committed
517
	$(LIBNDP_LIBS) \
518
	$(LIBDL) \
519
	$(LIBM) \
520 521
	$(SELINUX_LIBS) \
	$(LIBAUDIT_LIBS)
522

523
if WITH_LIBSOUP
524
libNetworkManager_la_LIBADD += $(LIBSOUP_LIBS)
525 526
endif

527 528 529
NetworkManager_LDFLAGS = \
	-rdynamic \
	-Wl,--version-script="$(srcdir)/NetworkManager.ver"
530

531 532
######################

533 534 535
libnm_iface_helper_la_SOURCES = \
	dhcp-manager/nm-dhcp-client.c \
	dhcp-manager/nm-dhcp-client.h \
536
	dhcp-manager/nm-dhcp-client-logging.h \
537 538 539 540 541
	dhcp-manager/nm-dhcp-utils.c \
	dhcp-manager/nm-dhcp-utils.h \
	dhcp-manager/nm-dhcp-manager.c \
	dhcp-manager/nm-dhcp-manager.h \
	\
542 543
	platform/nmp-netns.c \
	platform/nmp-netns.h \
544 545
	platform/nmp-object.c \
	platform/nmp-object.h \
546 547 548 549 550 551
	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 \
552 553 554 555 556 557 558 559 560 561 562 563 564
	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 \
	\
565 566 567
	nm-route-manager.c \
	nm-route-manager.h \
	\
568 569
	nm-exported-object.c \
	nm-exported-object.h \
570 571 572 573 574 575 576 577 578
	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 \
579 580
	nm-multi-index.c \
	nm-multi-index.h \
581 582
	nm-core-utils.c \
	nm-core-utils.h \
583 584 585 586 587 588 589 590 591 592 593
	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 \
Dan Winship's avatar
Dan Winship committed
594
	$(top_builddir)/introspection/libnmdbus.la \
595
	libsystemd-nm.la \
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
	$(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 \
614
	libsystemd-nm.la \
615 616 617
	libnm-iface-helper.la \
	$(GLIB_LIBS) \
	$(GUDEV_LIBS) \
618
	$(SYSTEMD_JOURNAL_LIBS) \
619 620 621 622 623 624 625 626
	$(LIBNL_LIBS) \
	$(LIBNDP_LIBS) \
	$(LIBM)

nm_iface_helper_LDFLAGS = -rdynamic

######################

627
dbusservicedir = $(DBUS_SYS_DIR)
628
dbusservice_DATA = org.freedesktop.NetworkManager.conf
Dan Williams's avatar
Dan Williams committed
629

630
EXTRA_DIST = \
631
	$(dbusservice_DATA) \
632
	$(NetworkManager_DATA) \
633
	nm-test-utils-core.h \
634
	NetworkManager.ver
635

636
rundir=$(runstatedir)/NetworkManager
637
statedir=$(localstatedir)/lib/NetworkManager
638
install-data-hook:
639
	$(mkinstalldirs) -m 0755 $(DESTDIR)$(rundir)
640
	$(mkinstalldirs) -m 0700 $(DESTDIR)$(statedir)
641
	$(mkinstalldirs) -m 0755 $(DESTDIR)$(pkglibdir)
642

643
CLEANFILES = \
Dan Winship's avatar
Dan Winship committed
644
	$(BUILT_SOURCES)