summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-11-03 09:09:33 +0100
committerThomas Haller <thaller@redhat.com>2018-11-12 13:12:15 +0100
commit06ccf3a64d7d170ba213a4705f62691969af9a99 (patch)
tree061ce71bdb0c92235fb8d9866effb0619d1d9cae
parent201c153e25990f61421be9984ecca5bc71be5845 (diff)
downloadNetworkManager-06ccf3a64d7d170ba213a4705f62691969af9a99.tar.gz
build: move code for shared libs in Makefile.am around
Let's sort the code by the dependencies. The shared/ projects have the least dependencies. Move to the beginning.
-rw-r--r--Makefile.am124
1 files changed, 62 insertions, 62 deletions
diff --git a/Makefile.am b/Makefile.am
index a57dbe4438..5a190ea385 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -206,6 +206,68 @@ DISTCLEANFILES += $(polkit_policy_DATA)
###############################################################################
+noinst_LTLIBRARIES += shared/libcsiphash.la
+
+shared_libcsiphash_la_CPPFLAGS = \
+ $(CODE_COVERAGE_CFLAGS) \
+ $(SANITIZER_LIB_CFLAGS) \
+ $(NULL)
+
+shared_libcsiphash_la_SOURCES = \
+ shared/c-siphash/src/c-siphash.c \
+ shared/c-siphash/src/c-siphash.h
+
+###############################################################################
+
+noinst_LTLIBRARIES += shared/libcrbtree.la
+
+shared_libcrbtree_la_CFLAGS = $(AM_CFLAGS) -std=c11
+
+shared_libcrbtree_la_CPPFLAGS = \
+ $(CODE_COVERAGE_CFLAGS) \
+ $(SANITIZER_LIB_CFLAGS) \
+ $(NULL)
+
+shared_libcrbtree_la_SOURCES = \
+ shared/c-rbtree/src/c-rbtree.c \
+ shared/c-rbtree/src/c-rbtree.h \
+ shared/c-rbtree/src/c-rbtree-private.h
+
+###############################################################################
+
+noinst_LTLIBRARIES += shared/libnacd.la
+
+shared_libnacd_la_CFLAGS = $(AM_CFLAGS) -std=c11 -Wno-pointer-arith -Wno-vla
+shared_libnacd_la_LIBADD = shared/libcrbtree.la
+
+shared_libnacd_la_CPPFLAGS = \
+ -D_GNU_SOURCE \
+ -DSO_ATTACH_BPF=50 \
+ $(CODE_COVERAGE_CFLAGS) \
+ $(SANITIZER_LIB_CFLAGS) \
+ -I$(srcdir)/shared/c-list/src \
+ -I$(srcdir)/shared/c-siphash/src \
+ -I$(srcdir)/shared/c-rbtree/src \
+ $(NULL)
+
+shared_libnacd_la_SOURCES = \
+ shared/n-acd/src/n-acd.c \
+ shared/n-acd/src/n-acd.h \
+ shared/n-acd/src/n-acd-private.h \
+ shared/n-acd/src/n-acd-probe.c \
+ shared/n-acd/src/util/timer.c \
+ shared/n-acd/src/util/timer.h
+
+if WITH_EBPF
+shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf.c
+else
+shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf-fallback.c
+endif
+
+EXTRA_DIST += shared/c-list/src/c-list.h
+
+###############################################################################
+
check_programs += shared/nm-utils/tests/test-shared-general
shared_nm_utils_tests_test_shared_general_CPPFLAGS = \
@@ -1369,68 +1431,6 @@ noinst_LTLIBRARIES += \
###############################################################################
-noinst_LTLIBRARIES += shared/libcsiphash.la
-
-shared_libcsiphash_la_CPPFLAGS = \
- $(CODE_COVERAGE_CFLAGS) \
- $(SANITIZER_LIB_CFLAGS) \
- $(NULL)
-
-shared_libcsiphash_la_SOURCES = \
- shared/c-siphash/src/c-siphash.c \
- shared/c-siphash/src/c-siphash.h
-
-###############################################################################
-
-noinst_LTLIBRARIES += shared/libcrbtree.la
-
-shared_libcrbtree_la_CFLAGS = $(AM_CFLAGS) -std=c11
-
-shared_libcrbtree_la_CPPFLAGS = \
- $(CODE_COVERAGE_CFLAGS) \
- $(SANITIZER_LIB_CFLAGS) \
- $(NULL)
-
-shared_libcrbtree_la_SOURCES = \
- shared/c-rbtree/src/c-rbtree.c \
- shared/c-rbtree/src/c-rbtree.h \
- shared/c-rbtree/src/c-rbtree-private.h
-
-###############################################################################
-
-noinst_LTLIBRARIES += shared/libnacd.la
-
-shared_libnacd_la_CFLAGS = $(AM_CFLAGS) -std=c11 -Wno-pointer-arith -Wno-vla
-shared_libnacd_la_LIBADD = shared/libcrbtree.la
-
-shared_libnacd_la_CPPFLAGS = \
- -D_GNU_SOURCE \
- -DSO_ATTACH_BPF=50 \
- $(CODE_COVERAGE_CFLAGS) \
- $(SANITIZER_LIB_CFLAGS) \
- -I$(srcdir)/shared/c-list/src \
- -I$(srcdir)/shared/c-siphash/src \
- -I$(srcdir)/shared/c-rbtree/src \
- $(NULL)
-
-shared_libnacd_la_SOURCES = \
- shared/n-acd/src/n-acd.c \
- shared/n-acd/src/n-acd.h \
- shared/n-acd/src/n-acd-private.h \
- shared/n-acd/src/n-acd-probe.c \
- shared/n-acd/src/util/timer.c \
- shared/n-acd/src/util/timer.h
-
-if WITH_EBPF
-shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf.c
-else
-shared_libnacd_la_SOURCES += shared/n-acd/src/n-acd-bpf-fallback.c
-endif
-
-EXTRA_DIST += shared/c-list/src/c-list.h
-
-###############################################################################
-
src_libsystemd_nm_la_cppflags = \
$(dflt_cppflags) \
-I$(srcdir)/shared \