diff mbox series

[4/5] Makefile: Package ccan files

Message ID 20180716063216.20107-5-amitay@ozlabs.org
State Accepted
Headers show
Series [1/5] Makefile: Include header files for each target | expand

Commit Message

Amitay Isaacs July 16, 2018, 6:32 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 Makefile.am | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
diff mbox series

Patch

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      " $@;