Makefile.am 165 KB
Newer Older
1
include $(GLIB_MAKEFILE)
2
-include $(INTROSPECTION_MAKEFILE)
3
include Makefile.vapigen
4

5 6
@GNOME_CODE_COVERAGE_RULES@

7 8
@NM_LOG_COMPILER@

9 10
###############################################################################

11 12
AUTOMAKE_OPTIONS = subdir-objects

13
noinst_LTLIBRARIES =
14
check_LTLIBRARIES =
15
noinst_PROGRAMS =
16
noinst_LIBRARIES =
17
check_PROGRAMS =
18
noinst_DATA =
19
sbin_PROGRAMS =
20
bin_PROGRAMS =
21
libexec_PROGRAMS =
22
lib_LTLIBRARIES =
23
pkglib_LTLIBRARIES =
24
core_plugins =
25
service_DATA =
26
man_MANS =
27
examples_DATA =
28
CLEANFILES =
29
DISTCLEANFILES =
30
EXTRA_DIST =
31
EXTRA_LTLIBRARIES =
32
dist_hook =
33 34
dist_dependencies =
dist_configure_check =
35
install_data_hook =
36
install_exec_hook =
37
uninstall_hook =
38
TESTS =
39
BUILT_SOURCES =
40
GLIB_GENERATED =
41 42
man_pages =
man_pages_autogen =
43
check_programs =
44
check_programs_norun =
45
check_ltlibraries =
46
check_local =
47
VAPIGEN_VAPIS =
48
dbusservice_DATA =
49
dbusactivation_DATA =
50 51 52 53 54 55 56 57 58 59

INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS =
INTROSPECTION_COMPILER_ARGS =
# Pass SANITIZER_ENV where a command that uses built libraries is
# executed, to suppress possible errors
INTROSPECTION_SCANNER_ENV = $(SANITIZER_ENV)

libnmincludedir = $(includedir)/libnm
libnminclude_HEADERS =
60
nodist_libnminclude_HEADERS =
61 62 63

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
64

65 66 67
pppd_plugindir = $(PPPD_PLUGIN_DIR)
pppd_plugin_LTLIBRARIES =

68 69 70
vapidir = $(datadir)/vala/vapi
vapi_DATA =

71 72
examplesdir = $(docdir)/examples

73 74 75
rundir=$(runstatedir)/NetworkManager
statedir=$(localstatedir)/lib/NetworkManager

76 77
dbusactivationdir = $(datadir)/dbus-1/system-services

78 79
servicedir = $(datadir)/dbus-1/system-services

80 81
completiondir = $(datadir)/bash-completion/completions

82 83 84
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM

85
SUBDIRS = \
86
	. \
87 88
	po

89
if HAVE_DOCS
90 91

SUBDIRS += \
92 93 94 95 96 97 98 99 100
	docs/libnm \
	docs/api

if WITH_LEGACY_LIBRARIES
SUBDIRS += \
	docs/libnm-util \
	docs/libnm-glib
endif

101 102
endif

103 104
###############################################################################

105 106 107 108 109 110 111 112
set_sanitizer_env = \
	[ -n "$(SANITIZER_ENV)" ] && export $(SANITIZER_ENV) ; \
	if [ -n "$(1)" ] && echo $(CFLAGS) | grep -e -fsanitize=address ; then \
		export LD_PRELOAD="$${LD_PRELOAD}:$$(ldd $(1) | grep libasan\.so\.. -o | head -n 1)"; \
	fi

check_so_symbols = \
	$(call set_sanitizer_env,$(1)); \
113
	LD_BIND_NOW=1 LD_PRELOAD=$${LD_PRELOAD}:$(1) $(builddir)/src/NetworkManager --version >/dev/null
114 115 116

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

117 118 119 120 121 122 123 124 125
DISTCHECK_CONFIGURE_FLAGS = \
	--enable-tests=yes \
	--with-valgrind=no \
	--enable-gtk-doc \
	--enable-more-warnings=error \
	--with-udev-dir=$$dc_install_base/lib/udev \
	--with-wext=no \
	--enable-ifcfg-rh \
	--enable-ifupdown \
126 127
	--enable-ifnet \
	--disable-dependency-tracking
128

129
dist-configure-check:
130
	@echo "*** 'make dist' requires '--enable-gtk-doc --enable-introspection --with-libnm-glib'. ***"
131
	@false
132
if !BUILD_DOCS
133 134 135 136
dist_configure_check += dist-configure-check
endif
if !WITH_LEGACY_LIBRARIES
dist_configure_check += dist-configure-check
137 138
endif

139
dist: $(dist_configure_check) $(dist_dependencies)
140

141
DISTCLEANFILES += intltool-extract intltool-merge intltool-update
142 143 144

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

145
pkgconfig_DATA += NetworkManager.pc
146 147

###############################################################################
148

149 150 151
polkit_policydir = $(datadir)/polkit-1/actions

dist_polkit_policy_in_in_files = \
152
	data/org.freedesktop.NetworkManager.policy.in.in
153 154 155 156 157 158 159 160 161

polkit_policy_DATA = $(dist_polkit_policy_in_in_files:.policy.in.in=.policy)

@INTLTOOL_POLICY_RULE@

DISTCLEANFILES += $(polkit_policy_DATA)

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

162 163 164 165 166 167 168 169 170 171 172 173
noinst_LTLIBRARIES += \
	introspection/libnmdbus.la

# gdbus-codegen 2.38 will emit code that requires glib 2.38, which
# will then cause availability warnings if we define
# GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32.
#
# This is fixed in GLib 2.40 (it emits code that takes
# GLIB_VERSION_MAX_ALLOWED into account), so this workaround can go
# away when we depend on that.
introspection_libnmdbus_la_CPPFLAGS = $(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(GLIB_CFLAGS))

174
introspection_sources = \
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
	introspection/org.freedesktop.NetworkManager.AccessPoint.c \
	introspection/org.freedesktop.NetworkManager.AccessPoint.h \
	introspection/org.freedesktop.NetworkManager.Connection.Active.c \
	introspection/org.freedesktop.NetworkManager.Connection.Active.h \
	introspection/org.freedesktop.NetworkManager.AgentManager.c \
	introspection/org.freedesktop.NetworkManager.AgentManager.h \
	introspection/org.freedesktop.NetworkManager.Checkpoint.c \
	introspection/org.freedesktop.NetworkManager.Checkpoint.h \
	introspection/org.freedesktop.NetworkManager.Device.Adsl.c \
	introspection/org.freedesktop.NetworkManager.Device.Adsl.h \
	introspection/org.freedesktop.NetworkManager.Device.Bond.c \
	introspection/org.freedesktop.NetworkManager.Device.Bond.h \
	introspection/org.freedesktop.NetworkManager.Device.Bridge.c \
	introspection/org.freedesktop.NetworkManager.Device.Bridge.h \
	introspection/org.freedesktop.NetworkManager.Device.Bluetooth.c \
	introspection/org.freedesktop.NetworkManager.Device.Bluetooth.h \
191 192
	introspection/org.freedesktop.NetworkManager.Device.Dummy.c \
	introspection/org.freedesktop.NetworkManager.Device.Dummy.h \
193 194 195 196 197 198 199 200
	introspection/org.freedesktop.NetworkManager.Device.Wired.c \
	introspection/org.freedesktop.NetworkManager.Device.Wired.h \
	introspection/org.freedesktop.NetworkManager.Device.Generic.c \
	introspection/org.freedesktop.NetworkManager.Device.Generic.h \
	introspection/org.freedesktop.NetworkManager.Device.Infiniband.c \
	introspection/org.freedesktop.NetworkManager.Device.Infiniband.h \
	introspection/org.freedesktop.NetworkManager.Device.IPTunnel.c \
	introspection/org.freedesktop.NetworkManager.Device.IPTunnel.h \
201 202
	introspection/org.freedesktop.NetworkManager.Device.Macsec.c \
	introspection/org.freedesktop.NetworkManager.Device.Macsec.h \
203 204 205 206 207 208
	introspection/org.freedesktop.NetworkManager.Device.Macvlan.c \
	introspection/org.freedesktop.NetworkManager.Device.Macvlan.h \
	introspection/org.freedesktop.NetworkManager.Device.Modem.c \
	introspection/org.freedesktop.NetworkManager.Device.Modem.h \
	introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.c \
	introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.h \
209 210
	introspection/org.freedesktop.NetworkManager.Device.OvsInterface.c \
	introspection/org.freedesktop.NetworkManager.Device.OvsInterface.h \
211 212
	introspection/org.freedesktop.NetworkManager.Device.OvsPort.c \
	introspection/org.freedesktop.NetworkManager.Device.OvsPort.h \
213 214
	introspection/org.freedesktop.NetworkManager.Device.OvsBridge.c \
	introspection/org.freedesktop.NetworkManager.Device.OvsBridge.h \
Beniamino Galvani's avatar
Beniamino Galvani committed
215 216
	introspection/org.freedesktop.NetworkManager.Device.Ppp.c \
	introspection/org.freedesktop.NetworkManager.Device.Ppp.h \
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
	introspection/org.freedesktop.NetworkManager.Device.Statistics.c \
	introspection/org.freedesktop.NetworkManager.Device.Statistics.h \
	introspection/org.freedesktop.NetworkManager.Device.Team.c \
	introspection/org.freedesktop.NetworkManager.Device.Team.h \
	introspection/org.freedesktop.NetworkManager.Device.Tun.c \
	introspection/org.freedesktop.NetworkManager.Device.Tun.h \
	introspection/org.freedesktop.NetworkManager.Device.Veth.c \
	introspection/org.freedesktop.NetworkManager.Device.Veth.h \
	introspection/org.freedesktop.NetworkManager.Device.Vlan.c \
	introspection/org.freedesktop.NetworkManager.Device.Vlan.h \
	introspection/org.freedesktop.NetworkManager.Device.Vxlan.c \
	introspection/org.freedesktop.NetworkManager.Device.Vxlan.h \
	introspection/org.freedesktop.NetworkManager.Device.Wireless.c \
	introspection/org.freedesktop.NetworkManager.Device.Wireless.h \
	introspection/org.freedesktop.NetworkManager.Device.WiMax.c \
	introspection/org.freedesktop.NetworkManager.Device.WiMax.h \
	introspection/org.freedesktop.NetworkManager.Device.c \
	introspection/org.freedesktop.NetworkManager.Device.h \
	introspection/org.freedesktop.NetworkManager.DHCP4Config.c \
	introspection/org.freedesktop.NetworkManager.DHCP4Config.h \
	introspection/org.freedesktop.NetworkManager.DHCP6Config.c \
	introspection/org.freedesktop.NetworkManager.DHCP6Config.h \
239 240
	introspection/org.freedesktop.NetworkManager.DnsManager.c \
	introspection/org.freedesktop.NetworkManager.DnsManager.h \
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
	introspection/org.freedesktop.NetworkManager.IP4Config.c \
	introspection/org.freedesktop.NetworkManager.IP4Config.h \
	introspection/org.freedesktop.NetworkManager.IP6Config.c \
	introspection/org.freedesktop.NetworkManager.IP6Config.h \
	introspection/org.freedesktop.NetworkManager.c \
	introspection/org.freedesktop.NetworkManager.h \
	introspection/org.freedesktop.NetworkManager.PPP.c \
	introspection/org.freedesktop.NetworkManager.PPP.h \
	introspection/org.freedesktop.NetworkManager.SecretAgent.c \
	introspection/org.freedesktop.NetworkManager.SecretAgent.h \
	introspection/org.freedesktop.NetworkManager.Settings.Connection.c \
	introspection/org.freedesktop.NetworkManager.Settings.Connection.h \
	introspection/org.freedesktop.NetworkManager.Settings.c \
	introspection/org.freedesktop.NetworkManager.Settings.h \
	introspection/org.freedesktop.NetworkManager.VPN.Connection.c \
	introspection/org.freedesktop.NetworkManager.VPN.Connection.h \
	introspection/org.freedesktop.NetworkManager.VPN.Plugin.c \
	introspection/org.freedesktop.NetworkManager.VPN.Plugin.h
259

260 261
nodist_introspection_libnmdbus_la_SOURCES = $(introspection_sources)

262
DBUS_INTERFACE_DOCS = \
263 264 265 266 267 268 269 270 271 272 273 274
	docs/api/dbus-org.freedesktop.NetworkManager.AccessPoint.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Connection.Active.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Checkpoint.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Team.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.DHCP6Config.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Wireless.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.VPN.Connection.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.SecretAgent.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.VPN.Plugin.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Bluetooth.xml \
275
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Dummy.xml \
276 277 278
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Vxlan.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Settings.Connection.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Bond.xml \
279
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Macsec.xml \
280 281 282 283 284 285 286 287 288 289
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Macvlan.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.PPP.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Vlan.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Adsl.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.AgentManager.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.WiMax.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.IPTunnel.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Tun.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Bridge.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.OlpcMesh.xml \
290
	docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsInterface.xml \
291
	docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsPort.xml \
292
	docs/api/dbus-org.freedesktop.NetworkManager.Device.OvsBridge.xml \
Beniamino Galvani's avatar
Beniamino Galvani committed
293
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Ppp.xml \
294 295 296 297 298 299 300 301 302
	docs/api/dbus-org.freedesktop.NetworkManager.DHCP4Config.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Generic.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Infiniband.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Modem.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.IP6Config.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Veth.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Settings.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Wired.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.IP4Config.xml \
303 304
	docs/api/dbus-org.freedesktop.NetworkManager.Device.Statistics.xml \
	docs/api/dbus-org.freedesktop.NetworkManager.DnsManager.xml
305 306

introspection/%.c: introspection/%.xml
307
	@$(MKDIR_P) introspection/
308 309 310
	$(AM_V_GEN) gdbus-codegen \
		--generate-c-code $(basename $@) \
		--generate-docbook docs/api/dbus \
311 312
		--c-namespace NMDBus \
		--interface-prefix org.freedesktop.NetworkManager \
313
		$<
314

315 316
introspection/%.h: introspection/%.c
	$()
317

318 319
docs/api/dbus-%.xml: introspection/%.c
	$()
320

321
dbusinterfacesdir = $(datadir)/dbus-1/interfaces
322

323
dbusinterfaces_DATA = \
324 325 326 327 328 329 330 331
	introspection/org.freedesktop.NetworkManager.AccessPoint.xml \
	introspection/org.freedesktop.NetworkManager.Connection.Active.xml \
	introspection/org.freedesktop.NetworkManager.AgentManager.xml \
	introspection/org.freedesktop.NetworkManager.Checkpoint.xml \
	introspection/org.freedesktop.NetworkManager.Device.Adsl.xml \
	introspection/org.freedesktop.NetworkManager.Device.Bond.xml \
	introspection/org.freedesktop.NetworkManager.Device.Bridge.xml \
	introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml \
332
	introspection/org.freedesktop.NetworkManager.Device.Dummy.xml \
333 334 335 336
	introspection/org.freedesktop.NetworkManager.Device.Wired.xml \
	introspection/org.freedesktop.NetworkManager.Device.Generic.xml \
	introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml \
	introspection/org.freedesktop.NetworkManager.Device.IPTunnel.xml \
337
	introspection/org.freedesktop.NetworkManager.Device.Macsec.xml \
338 339 340
	introspection/org.freedesktop.NetworkManager.Device.Macvlan.xml \
	introspection/org.freedesktop.NetworkManager.Device.Modem.xml \
	introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml \
341
	introspection/org.freedesktop.NetworkManager.Device.OvsInterface.xml \
342
	introspection/org.freedesktop.NetworkManager.Device.OvsPort.xml \
343
	introspection/org.freedesktop.NetworkManager.Device.OvsBridge.xml \
Beniamino Galvani's avatar
Beniamino Galvani committed
344
	introspection/org.freedesktop.NetworkManager.Device.Ppp.xml \
345 346 347 348 349 350 351 352 353 354 355
	introspection/org.freedesktop.NetworkManager.Device.Statistics.xml \
	introspection/org.freedesktop.NetworkManager.Device.Team.xml \
	introspection/org.freedesktop.NetworkManager.Device.Tun.xml \
	introspection/org.freedesktop.NetworkManager.Device.Veth.xml \
	introspection/org.freedesktop.NetworkManager.Device.Vlan.xml \
	introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml \
	introspection/org.freedesktop.NetworkManager.Device.Wireless.xml \
	introspection/org.freedesktop.NetworkManager.Device.WiMax.xml \
	introspection/org.freedesktop.NetworkManager.Device.xml \
	introspection/org.freedesktop.NetworkManager.DHCP4Config.xml \
	introspection/org.freedesktop.NetworkManager.DHCP6Config.xml \
356
	introspection/org.freedesktop.NetworkManager.DnsManager.xml \
357 358 359 360 361 362 363 364 365 366
	introspection/org.freedesktop.NetworkManager.IP4Config.xml \
	introspection/org.freedesktop.NetworkManager.IP6Config.xml \
	introspection/org.freedesktop.NetworkManager.xml \
	introspection/org.freedesktop.NetworkManager.PPP.xml \
	introspection/org.freedesktop.NetworkManager.SecretAgent.xml \
	introspection/org.freedesktop.NetworkManager.Settings.Connection.xml \
	introspection/org.freedesktop.NetworkManager.Settings.xml \
	introspection/org.freedesktop.NetworkManager.VPN.Connection.xml \
	introspection/org.freedesktop.NetworkManager.VPN.Plugin.xml \
	introspection/org.freedesktop.NetworkManager.WiMax.Nsp.xml
367

368 369
CLEANFILES += $(introspection_sources)
CLEANFILES += $(DBUS_INTERFACE_DOCS)
370

371 372 373 374 375 376
$(dispatcher_libnm_dispatcher_core_la_OBJECTS): $(introspection_sources)
$(dispatcher_nm_dispatcher_OBJECTS):            $(introspection_sources)
$(libnm_libnm_la_OBJECTS):                      $(introspection_sources)
$(src_libNetworkManager_la_OBJECTS):            $(introspection_sources)
$(src_libNetworkManagerBase_la_OBJECTS):        $(introspection_sources)

377 378 379
EXTRA_DIST += \
	$(dbusinterfaces_DATA)

380 381
###############################################################################

382
libnm_core_lib_h_pub_real = \
383 384 385 386 387 388 389 390 391 392 393 394 395 396
	shared/nm-version-macros.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 \
397
	libnm-core/nm-setting-dummy.h \
398 399 400 401 402 403 404
	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 \
405
	libnm-core/nm-setting-macsec.h \
406 407
	libnm-core/nm-setting-macvlan.h \
	libnm-core/nm-setting-olpc-mesh.h \
408
	libnm-core/nm-setting-ovs-bridge.h \
409
	libnm-core/nm-setting-ovs-interface.h \
410
	libnm-core/nm-setting-ovs-patch.h \
411
	libnm-core/nm-setting-ovs-port.h \
412 413 414 415 416 417 418
	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 \
Thomas Haller's avatar
Thomas Haller committed
419
	libnm-core/nm-setting-user.h \
420 421 422 423 424 425 426 427 428 429 430 431 432 433
	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
434
libnm_core_lib_h_pub_mkenums = \
435 436
	libnm-core/nm-core-enum-types.h
libnm_core_lib_h_priv = \
Thomas Haller's avatar
Thomas Haller committed
437
	shared/nm-utils/c-list-util.h \
438
	shared/nm-utils/nm-dedup-multi.h \
439
	shared/nm-utils/nm-enum-utils.h \
440
	shared/nm-utils/nm-hash-utils.h \
441
	shared/nm-utils/nm-shared-utils.h \
442
	shared/nm-utils/nm-random-utils.h \
443
	shared/nm-utils/nm-udev-utils.h \
444
	shared/nm-utils/siphash24.h \
445
	shared/nm-meta-setting.h \
446 447 448 449 450 451 452 453 454
	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
455
libnm_core_lib_c_real = \
Thomas Haller's avatar
Thomas Haller committed
456
	shared/nm-utils/c-list-util.c \
457
	shared/nm-utils/nm-dedup-multi.c \
458
	shared/nm-utils/nm-enum-utils.c \
459
	shared/nm-utils/nm-hash-utils.c \
460
	shared/nm-utils/nm-shared-utils.c \
461
	shared/nm-utils/nm-random-utils.c \
462
	shared/nm-utils/nm-udev-utils.c \
463
	shared/nm-meta-setting.c \
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
	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 \
481
	libnm-core/nm-setting-dummy.c \
482 483 484 485 486 487 488
	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 \
489
	libnm-core/nm-setting-macsec.c \
490 491
	libnm-core/nm-setting-macvlan.c \
	libnm-core/nm-setting-olpc-mesh.c \
492
	libnm-core/nm-setting-ovs-bridge.c \
493
	libnm-core/nm-setting-ovs-interface.c \
494
	libnm-core/nm-setting-ovs-patch.c \
495
	libnm-core/nm-setting-ovs-port.c \
496 497 498 499 500 501 502
	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 \
Thomas Haller's avatar
Thomas Haller committed
503
	libnm-core/nm-setting-user.c \
504 505 506 507 508 509 510 511 512 513 514 515
	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
516
libnm_core_lib_c_mkenums = \
517 518 519 520
	libnm-core/nm-core-enum-types.c

libnminclude_HEADERS += \
	$(libnm_core_lib_h_pub_real)
521

522
nodist_libnminclude_HEADERS += \
523
	$(libnm_core_lib_h_pub_mkenums)
524 525 526

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

527
dflt_cppflags_libnm_core = \
528 529 530 531
	-I$(srcdir)/shared \
	-I$(builddir)/shared \
	-I$(srcdir)/libnm-core \
	-I$(builddir)/libnm-core \
532
	$(CODE_COVERAGE_CFLAGS) \
533 534
	$(GLIB_CFLAGS) \
	$(LIBUDEV_CFLAGS)
535 536 537 538

if WITH_JANSSON
dflt_cppflags_libnm_core += $(JANSSON_CFLAGS)
endif
539 540 541 542 543 544 545 546 547

if WITH_GNUTLS
dflt_cppflags_libnm_core += $(GNUTLS_CFLAGS)
endif

if WITH_NSS
dflt_cppflags_libnm_core += $(NSS_CFLAGS)
endif

548 549 550
noinst_LTLIBRARIES += libnm-core/libnm-core.la

GLIB_GENERATED += \
551 552
	$(libnm_core_lib_h_pub_mkenums) \
	$(libnm_core_lib_c_mkenums)
553
nm_core_enum_types_sources = $(libnm_core_lib_h_pub_real)
554

555 556
nm_core_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "nm-default.h"\n'

557 558
libnm-core/nm-core-enum-types.h.stamp:                                      libnm-core/.dirstamp
libnm-core/nm-core-enum-types.c.stamp:                                      libnm-core/.dirstamp
559

560 561 562 563 564 565 566 567 568 569 570
$(dispatcher_libnm_dispatcher_core_la_OBJECTS):                             $(libnm_core_lib_h_pub_mkenums)
$(dispatcher_nm_dispatcher_OBJECTS):                                        $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_libnm_core_la_OBJECTS):                                        $(libnm_core_lib_h_pub_mkenums)
$(libnm_libnm_la_OBJECTS):                                                  $(libnm_core_lib_h_pub_mkenums)
$(libnm_tests_libnm_vpn_plugin_utils_test_la_OBJECTS):                      $(libnm_core_lib_h_pub_mkenums)
$(src_NetworkManager_OBJECTS):                                              $(libnm_core_lib_h_pub_mkenums)
$(src_devices_adsl_libnm_device_plugin_adsl_la_OBJECTS):                    $(libnm_core_lib_h_pub_mkenums)
$(src_devices_bluetooth_libnm_device_plugin_bluetooth_la_OBJECTS):          $(libnm_core_lib_h_pub_mkenums)
$(src_devices_team_libnm_device_plugin_team_la_OBJECTS):                    $(libnm_core_lib_h_pub_mkenums)
$(src_devices_wifi_libnm_device_plugin_wifi_la_OBJECTS):                    $(libnm_core_lib_h_pub_mkenums)
$(src_devices_wwan_libnm_device_plugin_wwan_la_OBJECTS):                    $(libnm_core_lib_h_pub_mkenums)
571

572
libnm_core_libnm_core_la_CPPFLAGS = \
573
	$(dflt_cppflags_libnm_core) \
574 575 576 577 578 579
	-DG_LOG_DOMAIN=\""libnm"\" \
	-DLOCALEDIR=\"$(datadir)/locale\" \
	-DNMCONFDIR=\"$(nmconfdir)\" \
	-DNMLIBDIR=\"$(nmlibdir)\" \
	-DNMPLUGINDIR=\"$(pkglibdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
580
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB
581 582

libnm_core_libnm_core_la_SOURCES = \
583 584 585 586 587
	$(libnm_core_lib_h_pub_real) \
	$(libnm_core_lib_h_priv) \
	$(libnm_core_lib_c_real)

nodist_libnm_core_libnm_core_la_SOURCES = \
588 589
	$(libnm_core_lib_h_pub_mkenums) \
	$(libnm_core_lib_c_mkenums)
590 591 592

libnm_core_libnm_core_la_LIBADD = \
	$(GLIB_LIBS) \
593 594
	$(UUID_LIBS) \
	$(LIBUDEV_LIBS)
595 596 597 598

if WITH_JANSSON
libnm_core_libnm_core_la_LIBADD += $(JANSSON_LIBS)
endif
599 600 601 602 603

libnm_core_libnm_core_la_LDFLAGS = \
	$(CODE_COVERAGE_LDFLAGS)

if WITH_GNUTLS
604
libnm_core_lib_c_real += libnm-core/crypto_gnutls.c
605 606 607 608
libnm_core_libnm_core_la_LIBADD += $(GNUTLS_LIBS)
endif

if WITH_NSS
609
libnm_core_lib_c_real += libnm-core/crypto_nss.c
610 611 612
libnm_core_libnm_core_la_LIBADD += $(NSS_LIBS)
endif

613 614 615 616
EXTRA_DIST += \
	libnm-core/crypto_gnutls.c \
	libnm-core/crypto_nss.c

617
libnm-core/nm-vpn-dbus-types.xml: libnm-core/nm-vpn-dbus-interface.h tools/enums-to-docbook.pl
618
	@$(MKDIR_P) libnm-core/
619
	$(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-vpn-dbus-types' 'VPN Plugin D-Bus API Types' $< >$@
620

621
libnm-core/nm-dbus-types.xml: libnm-core/nm-dbus-interface.h tools/enums-to-docbook.pl
622
	@$(MKDIR_P) libnm-core/
623
	$(AM_V_GEN) @PERL@ $(srcdir)/tools/enums-to-docbook.pl 'nm-dbus-types' 'NetworkManager D-Bus API Types' $< >$@
624 625 626 627 628

BUILT_SOURCES += \
	libnm-core/nm-vpn-dbus-types.xml \
	libnm-core/nm-dbus-types.xml

629 630 631 632
dist_dependencies += \
	libnm-core/nm-vpn-dbus-types.xml \
	libnm-core/nm-dbus-types.xml

633 634
###############################################################################

635
check_programs += \
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650
	libnm-core/tests/test-compare \
	libnm-core/tests/test-crypto \
	libnm-core/tests/test-general \
	libnm-core/tests/test-keyfile \
	libnm-core/tests/test-secrets \
	libnm-core/tests/test-setting-8021x \
	libnm-core/tests/test-setting-bond \
	libnm-core/tests/test-setting-dcb \
	libnm-core/tests/test-settings-defaults

GLIB_GENERATED += \
	libnm-core/tests/nm-core-tests-enum-types.h \
	libnm-core/tests/nm-core-tests-enum-types.c
nm_core_tests_enum_types_sources = libnm-core/tests/test-general-enums.h

651 652 653
libnm-core/tests/nm-core-tests-enum-types.h.stamp: libnm-core/tests/.dirstamp
libnm-core/tests/nm-core-tests-enum-types.c.stamp: libnm-core/tests/.dirstamp

654 655
$(libnm_core_tests_test_general_OBJECTS): libnm-core/tests/nm-core-tests-enum-types.h

656
libnm_core_tests_cppflags = \
657
	$(dflt_cppflags_libnm_core) \
658
	-I$(srcdir)/libnm-core/tests \
659
	-I$(builddir)/libnm-core/tests \
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
	-DTEST_CERT_DIR=\"$(abs_srcdir)/libnm-core/tests/certs\"

libnm_core_tests_test_compare_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_crypto_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_general_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_keyfile_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_secrets_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_setting_8021x_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_setting_bond_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_setting_dcb_CPPFLAGS = $(libnm_core_tests_cppflags)
libnm_core_tests_test_settings_defaults_CPPFLAGS = $(libnm_core_tests_cppflags)

libnm_core_tests_test_general_SOURCES = \
	libnm-core/tests/test-general-enums.h \
	libnm-core/tests/test-general.c

676 677 678 679
nodist_libnm_core_tests_test_general_SOURCES = \
	libnm-core/tests/nm-core-tests-enum-types.c \
	libnm-core/tests/nm-core-tests-enum-types.h

680 681 682 683 684 685 686 687 688 689 690 691 692 693
libnm_core_tests_ldadd = \
	libnm-core/libnm-core.la \
	$(GLIB_LIBS)

libnm_core_tests_test_compare_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_crypto_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_general_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_keyfile_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_secrets_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_setting_8021x_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_setting_bond_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_setting_dcb_LDADD = $(libnm_core_tests_ldadd)
libnm_core_tests_test_settings_defaults_LDADD = $(libnm_core_tests_ldadd)

694 695 696 697 698 699 700 701 702 703
$(libnm_core_tests_test_compare_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_crypto_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_general_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_keyfile_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_secrets_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_setting_8021x_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_setting_bond_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_setting_dcb_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_core_tests_test_settings_defaults_OBJECTS): $(libnm_core_lib_h_pub_mkenums)

704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733
# test-cert.p12 created with:
#
# openssl pkcs12 -export \
#	-in test_key_and_cert.pem \
#	-inkey test_key_and_cert.pem \
#	-certfile test_ca_cert.pem \
#	-name "test-pkcs12" \
#	-out test-cert.p12

EXTRA_DIST += \
	libnm-core/tests/certs/ca-no-ending-newline.pem \
	libnm-core/tests/certs/pkcs8-decrypted.der \
	libnm-core/tests/certs/pkcs8-enc-key.pem \
	libnm-core/tests/certs/pkcs8-noenc-key.pem \
	libnm-core/tests/certs/test2_ca_cert.pem \
	libnm-core/tests/certs/test2-cert.p12 \
	libnm-core/tests/certs/test2_key_and_cert.pem \
	libnm-core/tests/certs/test-aes-key.pem \
	libnm-core/tests/certs/test_ca_cert.der \
	libnm-core/tests/certs/test_ca_cert.pem \
	libnm-core/tests/certs/test-ca-cert.pem \
	libnm-core/tests/certs/test-cert.p12 \
	libnm-core/tests/certs/test_key_and_cert.pem \
	libnm-core/tests/certs/test-key-and-cert.pem \
	libnm-core/tests/certs/test-key-only-decrypted.der \
	libnm-core/tests/certs/test-key-only-decrypted.pem \
	libnm-core/tests/certs/test-key-only.pem

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

734
libnm_lib_h_pub_real = \
735 736 737 738
	shared/nm-version-macros.h \
	libnm/NetworkManager.h \
	libnm/nm-access-point.h \
	libnm/nm-active-connection.h \
739
	libnm/nm-checkpoint.h \
740 741 742 743 744
	libnm/nm-client.h \
	libnm/nm-device-adsl.h \
	libnm/nm-device-bond.h \
	libnm/nm-device-bridge.h \
	libnm/nm-device-bt.h \
745
	libnm/nm-device-dummy.h \
746 747 748 749
	libnm/nm-device-ethernet.h \
	libnm/nm-device-generic.h \
	libnm/nm-device-infiniband.h \
	libnm/nm-device-ip-tunnel.h \
750
	libnm/nm-device-macsec.h \
751 752 753
	libnm/nm-device-macvlan.h \
	libnm/nm-device-modem.h \
	libnm/nm-device-olpc-mesh.h \
754
	libnm/nm-device-ovs-interface.h \
755
	libnm/nm-device-ovs-port.h \
756
	libnm/nm-device-ovs-bridge.h \
Beniamino Galvani's avatar
Beniamino Galvani committed
757
	libnm/nm-device-ppp.h \
758 759 760 761 762 763 764 765 766 767 768 769 770 771 772
	libnm/nm-device-team.h \
	libnm/nm-device-tun.h \
	libnm/nm-device-vlan.h \
	libnm/nm-device-vxlan.h \
	libnm/nm-device-wifi.h \
	libnm/nm-device-wimax.h \
	libnm/nm-device.h \
	libnm/nm-dhcp-config.h \
	libnm/nm-ip-config.h \
	libnm/nm-object.h \
	libnm/nm-remote-connection.h \
	libnm/nm-types.h \
	libnm/nm-vpn-connection.h \
	libnm/nm-vpn-editor.h \
	libnm/nm-wimax-nsp.h
773
libnm_lib_h_pub_nointrospect = \
774 775 776
	libnm/nm-secret-agent-old.h \
	libnm/nm-vpn-plugin-old.h \
	libnm/nm-vpn-service-plugin.h
777
libnm_lib_h_pub_mkenums = \
778 779
	libnm/nm-enum-types.h
libnm_lib_h_priv = \
780
	libnm/nm-libnm-utils.h \
781 782 783 784
	libnm/nm-dbus-helpers.h \
	libnm/nm-device-private.h \
	libnm/nm-dhcp4-config.h \
	libnm/nm-dhcp6-config.h \
785
	libnm/nm-dns-manager.h \
786 787 788 789 790 791
	libnm/nm-ip4-config.h \
	libnm/nm-ip6-config.h \
	libnm/nm-manager.h \
	libnm/nm-object-private.h \
	libnm/nm-remote-connection-private.h \
	libnm/nm-remote-settings.h
792
libnm_lib_c_real = \
793 794
	libnm/nm-access-point.c \
	libnm/nm-active-connection.c \
795
	libnm/nm-checkpoint.c \
796 797 798 799 800 801
	libnm/nm-client.c \
	libnm/nm-dbus-helpers.c \
	libnm/nm-device-adsl.c \
	libnm/nm-device-bond.c \
	libnm/nm-device-bridge.c \
	libnm/nm-device-bt.c \
802
	libnm/nm-device-dummy.c \
803 804 805 806
	libnm/nm-device-ethernet.c \
	libnm/nm-device-generic.c \
	libnm/nm-device-infiniband.c \
	libnm/nm-device-ip-tunnel.c \
807
	libnm/nm-device-macsec.c \
808 809 810
	libnm/nm-device-macvlan.c \
	libnm/nm-device-modem.c \
	libnm/nm-device-olpc-mesh.c \
811
	libnm/nm-device-ovs-interface.c \
812
	libnm/nm-device-ovs-port.c \
813
	libnm/nm-device-ovs-bridge.c \
Beniamino Galvani's avatar
Beniamino Galvani committed
814
	libnm/nm-device-ppp.c \
815 816 817 818 819 820 821 822 823 824
	libnm/nm-device-team.c \
	libnm/nm-device-tun.c \
	libnm/nm-device-vlan.c \
	libnm/nm-device-vxlan.c \
	libnm/nm-device-wifi.c \
	libnm/nm-device-wimax.c \
	libnm/nm-device.c \
	libnm/nm-dhcp-config.c \
	libnm/nm-dhcp4-config.c \
	libnm/nm-dhcp6-config.c \
825
	libnm/nm-dns-manager.c \
826 827 828 829 830 831 832 833 834 835 836 837 838
	libnm/nm-ip-config.c \
	libnm/nm-ip4-config.c \
	libnm/nm-ip6-config.c \
	libnm/nm-manager.c \
	libnm/nm-object.c \
	libnm/nm-remote-connection.c \
	libnm/nm-remote-settings.c \
	libnm/nm-secret-agent-old.c \
	libnm/nm-vpn-connection.c \
	libnm/nm-vpn-plugin-old.c \
	libnm/nm-vpn-editor.c \
	libnm/nm-vpn-service-plugin.c \
	libnm/nm-wimax-nsp.c
839
libnm_lib_c_mkenums = \
840 841
	libnm/nm-enum-types.c

842 843 844 845 846 847 848 849
libnm_lib_cppflags = \
	$(dflt_cppflags_libnm_core) \
	-I$(srcdir)/libnm \
	-I$(builddir)/libnm \
	-DG_LOG_DOMAIN=\""libnm"\" \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
	-DNMRUNDIR=\"$(nmrundir)\"

850 851 852 853 854
libnminclude_HEADERS += \
	$(libnm_lib_h_pub_real) \
	$(libnm_lib_h_pub_nointrospect)

nodist_libnminclude_HEADERS += \
855
	$(libnm_lib_h_pub_mkenums)
856 857 858

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

859
noinst_LTLIBRARIES += libnm/libnm-utils.la
860 861

libnm_libnm_utils_la_CPPFLAGS = \
862
	$(INTROSPECTION_CFLAGS) \
863 864 865 866 867 868 869 870 871 872 873 874 875 876
	$(libnm_lib_cppflags)

libnm_libnm_utils_la_SOURCES = \
	libnm/nm-libnm-utils.c

libnm_libnm_utils_la_LIBADD = \
	libnm-core/libnm-core.la \
	introspection/libnmdbus.la \
	$(GLIB_LIBS)

$(libnm_libnm_utils_la_OBJECTS) : $(libnm_lib_h_pub_mkenums)

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

877 878 879
lib_LTLIBRARIES += libnm/libnm.la

GLIB_GENERATED += \
880 881
	$(libnm_lib_h_pub_mkenums) \
	$(libnm_lib_c_mkenums)
882
nm_enum_types_sources = \
883
	$(libnm_lib_h_pub_mkenums) \
884 885 886 887 888
	$(libnm_lib_h_pub_real) \
	$(libnm_lib_h_pub_nointrospect)
nm_enum_types_MKENUMS_H_FLAGS = --identifier-prefix NM --fhead '\#include <nm-core-enum-types.h>\n'
nm_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "nm-default.h"\n'

889 890 891 892
$(dispatcher_nm_dispatcher_OBJECTS):                    $(libnm_lib_h_pub_mkenums)
$(dispatcher_libnm_dispatcher_core_la_OBJECTS):         $(libnm_lib_h_pub_mkenums)
$(libnm_libnm_la_OBJECTS):                              $(libnm_lib_h_pub_mkenums)
$(libnm_tests_libnm_vpn_plugin_utils_test_la_OBJECTS):  $(libnm_core_lib_h_pub_mkenums)
893

894
libnm_libnm_la_CPPFLAGS = \
895 896
	$(libnm_lib_cppflags) \
	$(LIBUDEV_CFLAGS)
897 898

libnm_libnm_la_SOURCES = \
899 900 901 902 903 904
	$(libnm_lib_h_pub_real) \
	$(libnm_lib_h_pub_nointrospect) \
	$(libnm_lib_h_priv) \
	$(libnm_lib_c_real)

nodist_libnm_libnm_la_SOURCES = \
905 906
	$(libnm_lib_h_pub_mkenums) \
	$(libnm_lib_c_mkenums)
907 908 909 910 911

EXTRA_libnm_libnm_la_DEPENDENCIES = \
	libnm/libnm.ver

libnm_libnm_la_LIBADD = \
912
	libnm/libnm-utils.la \
913 914 915
	$(DL_LIBS) \
	$(GLIB_LIBS) \
	$(UUID_LIBS) \
916
	$(LIBUDEV_LIBS)
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940

libnm_libnm_la_LDFLAGS = \
	-Wl,--version-script="$(srcdir)/libnm/libnm.ver" \
	$(CODE_COVERAGE_LDFLAGS) \
	-version-info "1:0:1"

check-local-exports-libnm: libnm/libnm.la
	$(srcdir)/tools/check-exports.sh "$(builddir)/libnm/.libs/libnm.so" "$(srcdir)/libnm/libnm.ver"

check_local += check-local-exports-libnm

pkgconfig_DATA += libnm/libnm.pc

DISTCLEANFILES += \
	libnm/libnm.pc

EXTRA_DIST += \
	libnm/libnm.pc.in \
	libnm/libnm.ver


if HAVE_INTROSPECTION
libnm/NM-1.0.gir: libnm/libnm.la
libnm_NM_1_0_gir_INCLUDES = Gio-2.0
941
libnm_NM_1_0_gir_PACKAGES = gio-2.0
942 943 944
libnm_NM_1_0_gir_EXPORT_PACKAGES = libnm
libnm_NM_1_0_gir_CFLAGS = $(libnm_libnm_la_CPPFLAGS)
libnm_NM_1_0_gir_LIBS = libnm/libnm.la
945
libnm_NM_1_0_gir_FILES = \
946
	$(libnm_core_lib_h_pub_mkenums) \
947
	$(libnm_core_lib_h_pub_real) \
948
	$(libnm_core_lib_c_mkenums) \
949
	$(libnm_core_lib_c_real) \
950
	$(libnm_lib_h_pub_mkenums) \
951 952
	$(libnm_lib_h_pub_real) \
	$(libnm_lib_h_pub_nointrospect) \
953
	$(libnm_lib_c_mkenums) \
954
	$(libnm_lib_c_real)
955 956
libnm_NM_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=NM --symbol-prefix=nm

957 958 959 960
libnm/libnm.typelib: libnm/libnm.gir
	$(INTROSPECTION_COMPILER) --includedir=$(srcdir)/libnm-core --includedir=$(builddir)/libnm-core --includedir=$(srcdir)/libnm --includedir=$(builddir)/libnm $< -o $@

INTROSPECTION_GIRS += libnm/NM-1.0.gir
961 962 963

if WITH_FAKE_TYPELIBS

964
libnm/fake-typelib/NetworkManager.typelib: libnm/fake-typelib/NetworkManager.gir libnm/fake-typelib/.dirstamp
965 966
	$(AM_V_GEN)  $(INTROSPECTION_COMPILER) $< -o $@

967
libnm/fake-typelib/NMClient.typelib: libnm/fake-typelib/NMClient.gir libnm/fake-typelib/.dirstamp
968 969 970
	$(AM_V_GEN) $(INTROSPECTION_COMPILER) $< -o $@

libnm/fake-typelib/typelibs.c: libnm/fake-typelib/typelibs.gresource.xml libnm/fake-typelib/NetworkManager.typelib libnm/fake-typelib/NMClient.typelib
971
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< --target=$@ --sourcedir=$(builddir)/libnm/fake-typelib --generate-source --manual-register
972

973
nodist_libnm_libnm_utils_la_SOURCES = \
974 975
	libnm/fake-typelib/typelibs.c

976 977 978 979
CLEANFILES += \
	libnm/fake-typelib/typelibs.c \
	libnm/fake-typelib/NMClient.typelib \
	libnm/fake-typelib/NetworkManager.typelib
980 981
endif

982 983
endif

984 985 986 987 988
EXTRA_DIST += \
	libnm/fake-typelib/NetworkManager.gir \
	libnm/fake-typelib/NMClient.gir \
	libnm/fake-typelib/typelibs.gresource.xml

989
if HAVE_INTROSPECTION
990 991 992

libnm_noinst_data = \
	libnm/nm-property-docs.xml \
993 994 995 996
	libnm/nm-settings-docs-overrides.xml \
	libnm/nm-settings-docs.xml \
	libnm/nm-settings-keyfile-docs.xml \
	libnm/nm-settings-ifcfg-rh-docs.xml
997 998 999

noinst_DATA += $(libnm_noinst_data)

1000
libnm_docs_sources = $(libnm_core_lib_c_real)
1001

1002
libnm/nm-settings-docs-overrides.xml: libnm/generate-plugin-docs.pl $(libnm_docs_sources)
1003
	$(AM_V_GEN) $(srcdir)/libnm/generate-plugin-docs.pl dbus "$(srcdir)" $@
1004 1005 1006 1007 1008

# When the python scripts loads libnm and the address sanitizers is
# enabled, we must LD_PRELOAD libasan otherwise it will complain that
# it was not loaded as initial library.
libnm/nm-property-docs.xml: libnm/generate-setting-docs.py $(libnm_docs_sources) | libnm/NM-1.0.gir libnm/NM-1.0.typelib libnm/libnm.la
1009
	$(AM_V_GEN) \
1010 1011 1012
	export GI_TYPELIB_PATH=$(abs_builddir)/libnm$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}; \
	export LD_LIBRARY_PATH=$(abs_builddir)/libnm/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}; \
	$(call set_sanitizer_env,$(abs_builddir)/libnm/.libs/libnm.so); \
1013
	"$(PYTHON)" \
1014 1015 1016 1017
	$(srcdir)/libnm/generate-setting-docs.py \
		--gir $(builddir)/libnm/NM-1.0.gir \
		--output $@

1018
libnm/nm-settings-docs.xml: libnm/generate-setting-docs.py libnm/nm-settings-docs-overrides.xml $(libnm_docs_sources) | libnm/NM-1.0.gir libnm/NM-1.0.typelib libnm/libnm.la
1019
	$(AM_V_GEN) \
1020 1021 1022
	export GI_TYPELIB_PATH=$(abs_builddir)/libnm$${GI_TYPELIB_PATH:+:$$GI_TYPELIB_PATH}; \
	export LD_LIBRARY_PATH=$(abs_builddir)/libnm/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}; \
	$(call set_sanitizer_env,$(abs_builddir)/libnm/.libs/libnm.so); \
1023
	"$(PYTHON)" \
1024 1025
	$(srcdir)/libnm/generate-setting-docs.py \
		--gir $(builddir)/libnm/NM-1.0.gir \
1026
		--overrides $(word 2,$^) \
1027 1028
		--output $@

1029
libnm/nm-settings-keyfile-docs.xml: libnm/generate-plugin-docs.pl $(libnm_docs_sources)
1030
	$(AM_V_GEN) $(srcdir)/libnm/generate-plugin-docs.pl keyfile "$(srcdir)" $@
1031
libnm/nm-settings-ifcfg-rh-docs.xml: libnm/generate-plugin-docs.pl $(libnm_docs_sources)
1032
	$(AM_V_GEN) $(srcdir)/libnm/generate-plugin-docs.pl ifcfg-rh "$(srcdir)" $@
1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043

EXTRA_DIST += $(libnm_noinst_data)

endif

EXTRA_DIST += \
	libnm/generate-setting-docs.py \
	libnm/generate-plugin-docs.pl

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

1044
libnm_tests_programs = \
1045
	libnm/tests/test-general \
1046 1047 1048 1049
	libnm/tests/test-nm-client \
	libnm/tests/test-remote-settings-client \
	libnm/tests/test-secret-agent

1050
check_programs += $(libnm_tests_programs)
1051 1052

libnm_tests_cppflags = \
1053
	$(dflt_cppflags_libnm_core) \
1054 1055
	-I$(srcdir)/libnm \
	-I$(builddir)/libnm \
1056
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
1057
	-DTEST_NM_SERVICE=\"$(abs_srcdir)/tools/test-networkmanager-service.py\"
1058 1059

libnm_tests_ldadd = \
1060
	libnm/libnm.la \
1061 1062
	$(GLIB_LIBS)

1063
libnm_tests_test_general_CPPFLAGS = $(libnm_tests_cppflags)
1064 1065 1066 1067
libnm_tests_test_nm_client_CPPFLAGS = $(libnm_tests_cppflags)
libnm_tests_test_remote_settings_client_CPPFLAGS = $(libnm_tests_cppflags)
libnm_tests_test_secret_agent_CPPFLAGS = $(libnm_tests_cppflags)

1068
libnm_tests_test_general_SOURCES = \
1069
	shared/nm-utils/nm-compat.c \
1070 1071
	libnm/tests/test-general.c

1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086
libnm_tests_test_nm_client_SOURCES = \
	shared/nm-test-utils-impl.c \
	shared/nm-test-libnm-utils.h \
	libnm/tests/test-nm-client.c

libnm_tests_test_remote_settings_client_SOURCES = \
	shared/nm-test-utils-impl.c \
	shared/nm-test-libnm-utils.h \
	libnm/tests/test-remote-settings-client.c

libnm_tests_test_secret_agent_SOURCES = \
	shared/nm-test-utils-impl.c \
	shared/nm-test-libnm-utils.h \
	libnm/tests/test-secret-agent.c

1087 1088 1089
libnm_tests_test_general_LDADD = \
	libnm/libnm-utils.la \
	$(libnm_tests_ldadd)
1090 1091 1092 1093
libnm_tests_test_nm_client_LDADD = $(libnm_tests_ldadd)
libnm_tests_test_remote_settings_client_LDADD = $(libnm_tests_ldadd)
libnm_tests_test_secret_agent_LDADD = $(libnm_tests_ldadd)

1094
$(libnm_tests_test_general_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
1095 1096 1097 1098
$(libnm_tests_test_nm_client_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_tests_test_remote_settings_client_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(libnm_tests_test_secret_agent_OBJECTS): $(libnm_core_lib_h_pub_mkenums)

1099 1100 1101 1102
###############################################################################

# just test, that we can build "nm-vpn-plugin-utils.c"

1103
check_ltlibraries += libnm/tests/libnm-vpn-plugin-utils-test.la
1104 1105

libnm_tests_libnm_vpn_plugin_utils_test_la_SOURCES = \
1106 1107
	shared/nm-utils/nm-vpn-plugin-utils.c \
	shared/nm-utils/nm-vpn-plugin-utils.h
1108 1109

libnm_tests_libnm_vpn_plugin_utils_test_la_CFLAGS = \
1110 1111 1112 1113 1114 1115 1116
	-I$(srcdir)/shared \
	-I$(builddir)/shared \
	-I$(srcdir)/libnm-core \
	-I$(builddir)/libnm-core \
	-I$(srcdir)/libnm \
	-I$(builddir)/libnm \
	$(GLIB_CFLAGS)
1117 1118

libnm_tests_libnm_vpn_plugin_utils_test_la_LIBADD = \
1119
	$(GLIB_LIBS)
1120

1121 1122 1123 1124 1125
###############################################################################
# src/
###############################################################################

src_cppflags = \
1126
	$(dflt_cppflags_libnm_core) \
1127 1128
	-I$(srcdir)/src \
	-I$(builddir)/src \
1129
	\
1130
	-DPREFIX=\"$(prefix)\" \
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149
	-DG_LOG_DOMAIN=\""NetworkManager"\" \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
	\
	-DBINDIR=\"$(bindir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DLOCALSTATEDIR=\"$(localstatedir)\" \
	-DRUNSTATEDIR=\"$(runstatedir)\" \
	-DSBINDIR=\"$(sbindir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DRUNDIR=\"$(rundir)\" \
	\
	-DNMCONFDIR=\"$(nmconfdir)\" \
	-DNMLOCALEDIR=\"$(datadir)/locale\" \
	-DNMPLUGINDIR=\"$(pkglibdir)\" \
	-DNMRUNDIR=\"$(nmrundir)\" \
	-DNMSTATEDIR=\"$(nmstatedir)\" \
	-DNMLIBDIR=\"$(nmlibdir)\" \
	\
1150
	-DDHCPCANON_PATH=\"$(DHCPCANON_PATH)\" \
1151 1152 1153
	-DDHCLIENT_PATH=\"$(DHCLIENT_PATH)\" \
	-DDHCPCD_PATH=\"$(DHCPCD_PATH)\" \
	\
1154
	$(LIBUDEV_CFLAGS) \
1155 1156
	$(LIBNL_CFLAGS) \
	$(LIBNDP_CFLAGS) \
1157
	$(LIBPSL_CFLAGS) \
1158
	$(LIBCURL_CFLAGS) \
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180
	$(SELINUX_CFLAGS) \
	$(LIBAUDIT_CFLAGS) \
	$(SYSTEMD_LOGIN_CFLAGS) \
	$(SYSTEMD_JOURNAL_CFLAGS) \
	\
	$(NULL)

src_ldflags = $(CODE_COVERAGE_LDFLAGS)

sbin_PROGRAMS += \
	src/NetworkManager

libexec_PROGRAMS += \
	src/nm-iface-helper

noinst_LTLIBRARIES += \
	src/libNetworkManagerBase.la \
	src/libNetworkManager.la \
	src/libsystemd-nm.la

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

1181
src_libsystemd_nm_la_cppflags = \
1182 1183 1184 1185
	-I$(srcdir)/shared \
	-I$(builddir)/shared \
	-I$(srcdir)/libnm-core \
	-I$(builddir)/libnm-core \
1186
	-I$(srcdir)/src \
1187
	-I$(srcdir)/src/systemd/sd-adapt \
1188
	-I$(srcdir)/shared/nm-utils \
1189 1190 1191 1192
	-I$(srcdir)/src/systemd/src/systemd \
	-I$(srcdir)/src/systemd/src/basic \
	-I$(srcdir)/src/systemd/src/shared \
	-I$(srcdir)/src/systemd/src/libsystemd-network \
1193
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD \
1194 1195
	$(GLIB_CFLAGS) \
	$(CODE_COVERAGE_CFLAGS)
1196 1197

src_libsystemd_nm_la_libadd = \
1198 1199
	$(GLIB_LIBS) \
	$(CODE_COVERAGE_LDFLAGS)
1200

1201 1202 1203 1204 1205
src_libsystemd_nm_la_SOURCES = \
	src/systemd/nm-sd.c \
	src/systemd/nm-sd.h \
	src/systemd/sd-adapt/nm-sd-adapt.c \
	src/systemd/sd-adapt/nm-sd-adapt.h \
1206
	src/systemd/sd-adapt/architecture.h \
1207
	src/systemd/sd-adapt/btrfs-util.h \
1208 1209 1210 1211 1212 1213
	src/systemd/sd-adapt/build.h \
	src/systemd/sd-adapt/cgroup-util.h \
	src/systemd/sd-adapt/condition.h \
	src/systemd/sd-adapt/conf-parser.h \
	src/systemd/sd-adapt/def.h \
	src/systemd/sd-adapt/dirent-util.h \
1214
	src/systemd/sd-adapt/env-util.h \
1215
	src/systemd/sd-adapt/errno-list.h \
1216
	src/systemd/sd-adapt/format-util.h \
1217
	src/systemd/sd-adapt/gunicode.h \
1218
	src/systemd/sd-adapt/ioprio.h \
1219
	src/systemd/sd-adapt/khash.h \
1220 1221 1222
	src/systemd/sd-adapt/libudev.h \
	src/systemd/sd-adapt/missing.h \
	src/systemd/sd-adapt/mkdir.h \
1223
	src/systemd/sd-adapt/raw-clone.h \
1224 1225 1226 1227 1228 1229
	src/systemd/sd-adapt/sd-daemon.h \
	src/systemd/sd-adapt/stat-util.h \
	src/systemd/sd-adapt/udev-util.h \
	src/systemd/sd-adapt/udev.h \
	src/systemd/sd-adapt/user-util.h \
	src/systemd/sd-adapt/virt.h \
1230
	src/systemd/sd-adapt/glob-util.h \
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
	src/systemd/src/basic/alloc-util.c \
	src/systemd/src/basic/alloc-util.h \
	src/systemd/src/basic/async.h \
	src/systemd/src/basic/escape.c \
	src/systemd/src/basic/escape.h \
	src/systemd/src/basic/ether-addr-util.c \
	src/systemd/src/basic/ether-addr-util.h \
	src/systemd/src/basic/extract-word.c \
	src/systemd/src/basic/extract-word.h \
	src/systemd/src/basic/fd-util.c \
	src/systemd/src/basic/fd-util.h \
	src/systemd/src/basic/fileio.c \
	src/systemd/src/basic/fileio.h \
	src/systemd/src/basic/fs-util.c \
	src/systemd/src/basic/fs-util.h \
	src/systemd/src/basic/hash-funcs.c \
	src/systemd/src/basic/hash-funcs.h \
	src/systemd/src/basic/hashmap.c \
	src/systemd/src/basic/hashmap.h \
	src/systemd/src/basic/hexdecoct.c \
	src/systemd/src/basic/hexdecoct.h \
	src/systemd/src/basic/hostname-util.c \
	src/systemd/src/basic/hostname-util.h \
	src/systemd/src/basic/in-addr-util.c \
	src/systemd/src/basic/in-addr-util.h \
	src/systemd/src/basic/io-util.c \
	src/systemd/src/basic/io-util.h \
	src/systemd/src/basic/list.h \
	src/systemd/src/basic/log.h \
	src/systemd/src/basic/macro.h \
	src/systemd/src/basic/mempool.c \
	src/systemd/src/basic/mempool.h \
	src/systemd/src/basic/parse-util.c \
	src/systemd/src/basic/parse-util.h \
	src/systemd/src/basic/path-util.c \
	src/systemd/src/basic/path-util.h \
	src/systemd/src/basic/prioq.c \
	src/systemd/src/basic/prioq.h \
1269 1270
	src/systemd/src/basic/process-util.c \
	src/systemd/src/basic/process-util.h \
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
	src/systemd/src/basic/random-util.c \
	src/systemd/src/basic/random-util.h \
	src/systemd/src/basic/refcnt.h \
	src/systemd/src/basic/set.h \
	src/systemd/src/basic/signal-util.h \
	src/systemd/src/basic/socket-util.c \
	src/systemd/src/basic/socket-util.h \
	src/systemd/src/basic/sparse-endian.h \
	src/systemd/src/basic/stdio-util.h \
	src/systemd/src/basic/string-table.c \
	src/systemd/src/basic/string-table.h \
	src/systemd/src/basic/string-util.c \
	src/systemd/src/basic/string-util.h \
	src/systemd/src/basic/strv.c \
	src/systemd/src/basic/strv.h \
	src/systemd/src/basic/time-util.c \
	src/systemd/src/basic/time-util.h \
	src/systemd/src/basic/umask-util.h \
	src/systemd/src/basic/utf8.c \
	src/systemd/src/basic/utf8.h \
	src/systemd/src/basic/util.c \
	src/systemd/src/basic/util.h \
	src/systemd/src/libsystemd-network/arp-util.c \
	src/systemd/src/libsystemd-network/arp-util.h \
	src/systemd/src/libsystemd-network/dhcp-identifier.c \
	src/systemd/src/libsystemd-network/dhcp-identifier.h \
	src/systemd/src/libsystemd-network/dhcp-internal.h \
	src/systemd/src/libsystemd-network/dhcp-lease-internal.h \
	src/systemd/src/libsystemd-network/dhcp-network.c \
	src/systemd/src/libsystemd-network/dhcp-option.c \
	src/systemd/src/libsystemd-network/dhcp-packet.c \
	src/systemd/src/libsystemd-network/dhcp-protocol.h \
	src/systemd/src/libsystemd-network/dhcp6-internal.h \
	src/systemd/src/libsystemd-network/dhcp6-lease-internal.h \
	src/systemd/src/libsystemd-network/dhcp6-network.c \
	src/systemd/src/libsystemd-network/dhcp6-option.c \
	src/systemd/src/libsystemd-network/dhcp6-protocol.h \
	src/systemd/src/libsystemd-network/lldp-internal.h \
	src/systemd/src/libsystemd-network/lldp-neighbor.c \
	src/systemd/src/libsystemd-network/lldp-neighbor.h \
	src/systemd/src/libsystemd-network/lldp-network.c \
	src/systemd/src/libsystemd-network/lldp-network.h \
	src/systemd/src/libsystemd-network/network-internal.c \
	src/systemd/src/libsystemd-network/network-internal.h \
	src/systemd/src/libsystemd-network/sd-dhcp-client.c \
	src/systemd/src/libsystemd-network/sd-dhcp-lease.c \
	src/systemd/src/libsystemd-network/sd-dhcp6-client.c \
	src/systemd/src/libsystemd-network/sd-dhcp6-lease.c \
	src/systemd/src/libsystemd-network/sd-ipv4acd.c \
	src/systemd/src/libsystemd-network/sd-ipv4ll.c \
	src/systemd/src/libsystemd-network/sd-lldp.c \
	src/systemd/src/libsystemd/sd-event/sd-event.c \
	src/systemd/src/libsystemd/sd-id128/id128-util.c \
	src/systemd/src/libsystemd/sd-id128/id128-util.h \
	src/systemd/src/libsystemd/sd-id128/sd-id128.c \
	src/systemd/src/shared/dns-domain.c \
	src/systemd/src/shared/dns-domain.h \
	src/systemd/src/systemd/_sd-common.h \
	src/systemd/src/systemd/sd-dhcp-client.h \
	src/systemd/src/systemd/sd-dhcp-lease.h \
	src/systemd/src/systemd/sd-dhcp6-client.h \
	src/systemd/src/systemd/sd-dhcp6-lease.h \
	src/systemd/src/systemd/sd-event.h \
	src/systemd/src/systemd/sd-id128.h \
	src/systemd/src/systemd/sd-ipv4acd.h \
	src/systemd/src/systemd/sd-ipv4ll.h \
	src/systemd/src/systemd/sd-lldp.h \
	src/systemd/src/systemd/sd-ndisc.h

1340 1341
src_libsystemd_nm_la_CPPFLAGS = $(src_libsystemd_nm_la_cppflags)
src_libsystemd_nm_la_LIBADD = $(src_libsystemd_nm_la_libadd)
1342
$(src_libsystemd_nm_la_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
1343 1344 1345 1346 1347 1348

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

src_libNetworkManagerBase_la_CPPFLAGS = $(src_cppflags)

src_libNetworkManagerBase_la_SOURCES = \
1349
	\
1350 1351 1352
	src/nm-core-utils.c \
	src/nm-core-utils.h \
	src/nm-logging.c \
1353 1354 1355 1356 1357 1358 1359 1360 1361