summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-26 23:16:34 +0100
committerTom Gundersen <teg@jklm.no>2014-02-26 23:16:34 +0100
commit911f4d4d60eae3cfa5b8ca122169f3ca21da4afc (patch)
treec7aef3a79e1a9ef99f57370bec6e4edf666d7e06 /Makefile.am
parentaef831369cd2a7a1bd4a58dd96ff8628ed6a85f9 (diff)
build-sys: networkd - simplify makefile fragment
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am31
1 files changed, 13 insertions, 18 deletions
diff --git a/Makefile.am b/Makefile.am
index dd067f6d00..eaf6c6317e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4012,8 +4012,16 @@ rootlibexec_PROGRAMS += \
systemd-networkd
systemd_networkd_SOURCES = \
+ src/network/networkd.c
+
+systemd_networkd_LDADD = \
+ libsystemd-networkd-core.la
+
+noinst_LTLIBRARIES += \
+ libsystemd-networkd-core.la
+
+libsystemd_networkd_core_la_SOURCES = \
src/network/networkd.h \
- src/network/networkd.c \
src/network/networkd-link.c \
src/network/networkd-netdev.c \
src/network/networkd-network.c \
@@ -4021,11 +4029,11 @@ systemd_networkd_SOURCES = \
src/network/networkd-route.c \
src/network/networkd-manager.c
-nodist_systemd_networkd_SOURCES = \
+nodist_libsystemd_networkd_core_la_SOURCES = \
src/network/networkd-network-gperf.c \
src/network/networkd-netdev-gperf.c
-systemd_networkd_LDADD = \
+libsystemd_networkd_core_la_LIBADD = \
libudev-internal.la \
libsystemd-internal.la \
libsystemd-dhcp.la \
@@ -4039,23 +4047,10 @@ GENERAL_ALIASES += \
$(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service
test_network_SOURCES = \
- src/network/test-network.c \
- src/network/networkd.h \
- src/network/networkd-link.c \
- src/network/networkd-netdev.c \
- src/network/networkd-network.c \
- src/network/networkd-address.c \
- src/network/networkd-route.c \
- src/network/networkd-manager.c \
- src/network/networkd-network-gperf.c \
- src/network/networkd-netdev-gperf.c
+ src/network/test-network.c
test_network_LDADD = \
- libudev-internal.la \
- libsystemd-internal.la \
- libsystemd-dhcp.la \
- libsystemd-label.la \
- libsystemd-shared.la
+ libsystemd-networkd-core.la
tests += \
test-network