[Pdbg] [PATCH 4/5] Makefile: Package ccan files

Amitay Isaacs amitay at ozlabs.org
Mon Jul 16 16:32:15 AEST 2018


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 739ab23..a24a857 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -50,7 +50,7 @@ pdbg_SOURCES = \
 	src/parsers.h \
 	src/progress.h
 
-pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la \
+pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la libccan.a \
 	-L.libs -lrt
 
 pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive
@@ -102,6 +102,20 @@ libpdbg_la_SOURCES = \
 	libpdbg/libpdbg.h \
 	libpdbg/target.h
 
+noinst_LIBRARIES = libccan.a
+
+libccan_a_SOURCES = \
+	ccan/array_size/array_size.h \
+	ccan/build_assert/build_assert.h \
+	ccan/check_type/check_type.h \
+	ccan/container_of/container_of.h \
+	ccan/cppmagic/cppmagic.h \
+	ccan/list/list.c \
+	ccan/list/list.h \
+	ccan/short_types/short_types.h \
+	ccan/str/str.c \
+	ccan/str/str.h
+
 M4_V = $(M4_V_$(V))
 M4_V_ = $(M4_V_$(AM_DEFAULT_VERBOSITY))
 M4_V_0 = @echo "  M4      " $@;
-- 
2.17.1



More information about the Pdbg mailing list