aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/common/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/common/Makefile.am')
-rw-r--r--samsung-ipc/common/Makefile.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/samsung-ipc/common/Makefile.am b/samsung-ipc/common/Makefile.am
index 801dfb9..631c31e 100644
--- a/samsung-ipc/common/Makefile.am
+++ b/samsung-ipc/common/Makefile.am
@@ -1,3 +1,17 @@
+# To be able to test internal functions of libsamsung-ipc we need to give
+# access to them to a test program (libsamsung-ipc-test). To do that, we
+# simply re-included all the library source code inside that test program.
+#
+# To achieve that, This Makefile.am is included by both samsung-ipc/Makefile.am
+# which has rules to build the libsamsung-ipc library and
+# samsung-ipc/test/Makefile.am which has rules to build the test utility
+# (libsamsung-ipc-test).
+#
+# This way both Makefile.am have access to libsamsung_ipc_la_SOURCES but
+# only samsung-ipc/Makefile.am uses it to build the library.
+
+libsamsung_ipc_la_SOURCES = $(NULL)
+
libsamsung_ipc_la_SOURCES += \
$(top_srcdir)/samsung-ipc/ipc.c \
$(top_srcdir)/samsung-ipc/ipc.h \
@@ -13,3 +27,7 @@ libsamsung_ipc_la_SOURCES += \
$(top_srcdir)/samsung-ipc/rfs.c \
$(top_srcdir)/samsung-ipc/gen.c \
$(NULL)
+
+include $(top_srcdir)/samsung-ipc/devices/Makefile.am
+include $(top_srcdir)/samsung-ipc/modems/Makefile.am
+include $(top_srcdir)/samsung-ipc/partitions/Makefile.am