diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-03-02 16:16:48 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-03-02 16:16:48 +0100 |
commit | 8ff6ad8bed5e9abbbf38ec91efc01c137d6bb267 (patch) | |
tree | 8d56c1817e19cee63b464ece35d2637effa2b195 | |
parent | a93f9d12211825754ef7e687ab6eb91b3ed44630 (diff) | |
download | hardware_replicant_libsamsung-ipc-8ff6ad8bed5e9abbbf38ec91efc01c137d6bb267.tar.gz hardware_replicant_libsamsung-ipc-8ff6ad8bed5e9abbbf38ec91efc01c137d6bb267.tar.bz2 hardware_replicant_libsamsung-ipc-8ff6ad8bed5e9abbbf38ec91efc01c137d6bb267.zip |
make libsamsung-ipc-test standalone
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | samsung-ipc/Makefile.am | 2 | ||||
-rw-r--r-- | samsung-ipc/tests/Makefile.am | 69 |
4 files changed, 70 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index f036c81..45669d8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,7 @@ NULL = SUBDIRS = \ samsung-ipc \ + samsung-ipc/tests \ include \ tools \ $(NULL) diff --git a/configure.ac b/configure.ac index 8be122c..d59ef0f 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,7 @@ AC_CONFIG_FILES([ samsung-ipc.pc include/Makefile samsung-ipc/Makefile + samsung-ipc/tests/Makefile tools/Makefile ]) AC_OUTPUT diff --git a/samsung-ipc/Makefile.am b/samsung-ipc/Makefile.am index da7680c..4e4be65 100644 --- a/samsung-ipc/Makefile.am +++ b/samsung-ipc/Makefile.am @@ -84,5 +84,3 @@ libsamsung_ipc_la_LIBADD = \ # Without that we might have errors like this one during autogen.sh: # error: object 'ipc.$(OBJEXT)' created both with libtool and without libsamsung_ipc_CPPFLAGS = ${AM_CPPFLAGS} - -include tests/Makefile.am diff --git a/samsung-ipc/tests/Makefile.am b/samsung-ipc/tests/Makefile.am index 28c11cf..591dfc8 100644 --- a/samsung-ipc/tests/Makefile.am +++ b/samsung-ipc/tests/Makefile.am @@ -1,4 +1,16 @@ -check_PROGRAMS = \ +NULL = + +AM_CFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/samsung-ipc \ + $(OPENSSL_CFLAGS) \ + $(NULL) + +if WANT_DEBUG +AM_CFLAGS += -ggdb -O0 -DDEBUG +endif + +bin_PROGRAMS = \ libsamsung-ipc-test \ $(NULL) @@ -6,6 +18,61 @@ libsamsung_ipc_test_SOURCES = \ $(top_srcdir)/samsung-ipc/tests/main.c \ $(top_srcdir)/samsung-ipc/tests/partitions/android.c \ $(top_srcdir)/samsung-ipc/tests/partitions/android.h \ + $(top_srcdir)/samsung-ipc/ipc.c \ + $(top_srcdir)/samsung-ipc/ipc.h \ + $(top_srcdir)/samsung-ipc/ipc_utils.c \ + $(top_srcdir)/samsung-ipc/utils.c \ + $(top_srcdir)/samsung-ipc/call.c \ + $(top_srcdir)/samsung-ipc/sms.c \ + $(top_srcdir)/samsung-ipc/sec.c \ + $(top_srcdir)/samsung-ipc/net.c \ + $(top_srcdir)/samsung-ipc/misc.c \ + $(top_srcdir)/samsung-ipc/svc.c \ + $(top_srcdir)/samsung-ipc/gprs.c \ + $(top_srcdir)/samsung-ipc/rfs.c \ + $(top_srcdir)/samsung-ipc/gen.c \ + $(top_srcdir)/samsung-ipc/devices/ipc_devices.c \ + $(top_srcdir)/samsung-ipc/devices/ipc_devices.h \ + $(top_srcdir)/samsung-ipc/devices/crespo/crespo.c \ + $(top_srcdir)/samsung-ipc/devices/crespo/crespo.h \ + $(top_srcdir)/samsung-ipc/devices/crespo/crespo_modem_ctl.h \ + $(top_srcdir)/samsung-ipc/devices/aries/aries.c \ + $(top_srcdir)/samsung-ipc/devices/aries/aries.h \ + $(top_srcdir)/samsung-ipc/devices/aries/onedram.h \ + $(top_srcdir)/samsung-ipc/devices/aries/phonet.h \ + $(top_srcdir)/samsung-ipc/devices/galaxys2/galaxys2.c \ + $(top_srcdir)/samsung-ipc/devices/galaxys2/galaxys2.h \ + $(top_srcdir)/samsung-ipc/devices/maguro/maguro.c \ + $(top_srcdir)/samsung-ipc/devices/maguro/maguro.h \ + $(top_srcdir)/samsung-ipc/devices/piranha/piranha.c \ + $(top_srcdir)/samsung-ipc/devices/piranha/piranha.h \ + $(top_srcdir)/samsung-ipc/devices/i9300/i9300.c \ + $(top_srcdir)/samsung-ipc/devices/i9300/i9300.h \ + $(top_srcdir)/samsung-ipc/devices/n7100/n7100.c \ + $(top_srcdir)/samsung-ipc/devices/n7100/n7100.h \ + $(top_srcdir)/samsung-ipc/devices/n5100/n5100.c \ + $(top_srcdir)/samsung-ipc/devices/n5100/n5100.h \ + $(top_srcdir)/samsung-ipc/devices/herolte/herolte.c \ + $(top_srcdir)/samsung-ipc/devices/herolte/herolte.h \ + $(top_srcdir)/samsung-ipc/devices/generic/generic.c \ + $(top_srcdir)/samsung-ipc/devices/generic/generic.h \ + $(top_srcdir)/samsung-ipc/modems/xmm616/xmm616.c \ + $(top_srcdir)/samsung-ipc/modems/xmm616/xmm616.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626.c \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_hsic.c \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_hsic.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_kernel_smdk4412.c \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_kernel_smdk4412.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_mipi.c \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_mipi.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_modem_if.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_modem_link_device_hsic.h \ + $(top_srcdir)/samsung-ipc/modems/xmm626/xmm626_modem_prj.h \ + $(top_srcdir)/samsung-ipc/partitions/android/android.c \ + $(top_srcdir)/samsung-ipc/partitions/android/android.h \ + $(top_srcdir)/samsung-ipc/partitions/toc/toc.c \ + $(top_srcdir)/samsung-ipc/partitions/toc/toc.h \ $(NULL) libsamsung_ipc_test_SOURCES += $(libsamsung_ipc_la_SOURCES) |