The samsung-ipc/Makefile.am became pretty big.

Because of that, it's It's better to split it to have one
Makefile.am per subdirectory.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 samsung-ipc/Makefile.am         | 39 +++------------------------------
 samsung-ipc/devices/Makefile.am | 25 +++++++++++++++++++++
 samsung-ipc/modems/Makefile.am  | 15 +++++++++++++
 3 files changed, 43 insertions(+), 36 deletions(-)
 create mode 100644 samsung-ipc/devices/Makefile.am
 create mode 100644 samsung-ipc/modems/Makefile.am

diff --git a/samsung-ipc/Makefile.am b/samsung-ipc/Makefile.am
index fd865f5..cd3fcf4 100644
--- a/samsung-ipc/Makefile.am
+++ b/samsung-ipc/Makefile.am
@@ -18,42 +18,6 @@ libsamsung_ipc_la_SOURCES = \
        ipc.c \
        ipc.h \
        ipc_utils.c \
-       modems/xmm616/xmm616.c \
-       modems/xmm616/xmm616.h \
-       modems/xmm626/xmm626.c \
-       modems/xmm626/xmm626.h \
-       modems/xmm626/xmm626_hsic.c \
-       modems/xmm626/xmm626_hsic.h \
-       modems/xmm626/xmm626_kernel_smdk4412.c \
-       modems/xmm626/xmm626_kernel_smdk4412.h \
-       modems/xmm626/xmm626_mipi.c \
-       modems/xmm626/xmm626_mipi.h \
-       modems/xmm626/xmm626_modem_if.h \
-       modems/xmm626/xmm626_modem_link_device_hsic.h \
-       modems/xmm626/xmm626_modem_prj.h \
-       devices/ipc_devices.c \
-       devices/ipc_devices.h \
-       devices/crespo/crespo.c \
-       devices/crespo/crespo.h \
-       devices/crespo/crespo_modem_ctl.h \
-       devices/aries/aries.c \
-       devices/aries/aries.h \
-       devices/aries/onedram.h \
-       devices/aries/phonet.h \
-       devices/galaxys2/galaxys2.c \
-       devices/galaxys2/galaxys2.h \
-       devices/maguro/maguro.c \
-       devices/maguro/maguro.h \
-       devices/piranha/piranha.c \
-       devices/piranha/piranha.h \
-       devices/i9300/i9300.c \
-       devices/i9300/i9300.h \
-       devices/n7100/n7100.c \
-       devices/n7100/n7100.h \
-       devices/n5100/n5100.c \
-       devices/n5100/n5100.h \
-       devices/herolte/herolte.c \
-       devices/herolte/herolte.h \
        utils.c \
        call.c \
        sms.c \
@@ -66,6 +30,9 @@ libsamsung_ipc_la_SOURCES = \
        gen.c \
        $(NULL)
 
+include devices/Makefile.am
+include modems/Makefile.am
+
 libsamsung_ipc_la_LIBADD = \
        $(OPENSSL_LIBS) \
        $(NULL)
diff --git a/samsung-ipc/devices/Makefile.am b/samsung-ipc/devices/Makefile.am
new file mode 100644
index 0000000..8257be3
--- /dev/null
+++ b/samsung-ipc/devices/Makefile.am
@@ -0,0 +1,25 @@
+libsamsung_ipc_la_SOURCES += \
+       devices/ipc_devices.c \
+       devices/ipc_devices.h \
+       devices/crespo/crespo.c \
+       devices/crespo/crespo.h \
+       devices/crespo/crespo_modem_ctl.h \
+       devices/aries/aries.c \
+       devices/aries/aries.h \
+       devices/aries/onedram.h \
+       devices/aries/phonet.h \
+       devices/galaxys2/galaxys2.c \
+       devices/galaxys2/galaxys2.h \
+       devices/maguro/maguro.c \
+       devices/maguro/maguro.h \
+       devices/piranha/piranha.c \
+       devices/piranha/piranha.h \
+       devices/i9300/i9300.c \
+       devices/i9300/i9300.h \
+       devices/n7100/n7100.c \
+       devices/n7100/n7100.h \
+       devices/n5100/n5100.c \
+       devices/n5100/n5100.h \
+       devices/herolte/herolte.c \
+       devices/herolte/herolte.h \
+       $(NULL)
diff --git a/samsung-ipc/modems/Makefile.am b/samsung-ipc/modems/Makefile.am
new file mode 100644
index 0000000..f59258a
--- /dev/null
+++ b/samsung-ipc/modems/Makefile.am
@@ -0,0 +1,15 @@
+libsamsung_ipc_la_SOURCES += \
+       modems/xmm616/xmm616.c \
+       modems/xmm616/xmm616.h \
+       modems/xmm626/xmm626.c \
+       modems/xmm626/xmm626.h \
+       modems/xmm626/xmm626_hsic.c \
+       modems/xmm626/xmm626_hsic.h \
+       modems/xmm626/xmm626_kernel_smdk4412.c \
+       modems/xmm626/xmm626_kernel_smdk4412.h \
+       modems/xmm626/xmm626_mipi.c \
+       modems/xmm626/xmm626_mipi.h \
+       modems/xmm626/xmm626_modem_if.h \
+       modems/xmm626/xmm626_modem_link_device_hsic.h \
+       modems/xmm626/xmm626_modem_prj.h \
+       $(NULL)
-- 
2.30.1

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to