diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-01-11 15:02:40 +0000 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-01-15 13:21:41 +0000 |
commit | 8793ed52b9c5f9b8319c7cc5ee7e22ee65ea5b4f (patch) | |
tree | 2d23158d9c3336ff1995282c4263fc30137b6b1f | |
parent | 471c4808283e47ea8c957d365041454f3556ee1e (diff) |
fastrpc: move to automake system.
Move to automake system to make it managable!
Thierry Escande ("Added adsprpcd")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r-- | Makefile | 54 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rwxr-xr-x | autogen.sh | 6 | ||||
-rw-r--r-- | configure.ac | 30 | ||||
-rwxr-xr-x | gitcompile | 17 | ||||
-rw-r--r-- | include/AEEBufBound.h (renamed from inc/AEEBufBound.h) | 0 | ||||
-rw-r--r-- | include/AEEQList.h (renamed from inc/AEEQList.h) | 0 | ||||
-rw-r--r-- | include/AEEStdDef.h (renamed from inc/AEEStdDef.h) | 0 | ||||
-rw-r--r-- | include/AEEStdErr.h (renamed from inc/AEEStdErr.h) | 0 | ||||
-rw-r--r-- | include/AEEVaList.h (renamed from inc/AEEVaList.h) | 0 | ||||
-rw-r--r-- | include/AEEatomic.h (renamed from inc/AEEatomic.h) | 0 | ||||
-rw-r--r-- | include/AEEstd.h (renamed from inc/AEEstd.h) | 0 | ||||
-rw-r--r-- | include/adsp_current_process.h (renamed from inc/adsp_current_process.h) | 0 | ||||
-rw-r--r-- | include/adsp_default_listener.h (renamed from inc/adsp_default_listener.h) | 0 | ||||
-rw-r--r-- | include/adsp_listener.h (renamed from inc/adsp_listener.h) | 0 | ||||
-rw-r--r-- | include/apps_mem.h (renamed from inc/apps_mem.h) | 0 | ||||
-rw-r--r-- | include/apps_remotectl.h (renamed from inc/apps_remotectl.h) | 0 | ||||
-rw-r--r-- | include/apps_std.h (renamed from inc/apps_std.h) | 0 | ||||
-rw-r--r-- | include/fastrpc_apps_user.h (renamed from inc/fastrpc_apps_user.h) | 0 | ||||
-rw-r--r-- | include/fastrpc_internal.h (renamed from inc/fastrpc_internal.h) | 0 | ||||
-rw-r--r-- | include/listener.h (renamed from inc/listener.h) | 0 | ||||
-rw-r--r-- | include/listener_buf.h (renamed from inc/listener_buf.h) | 0 | ||||
-rw-r--r-- | include/mod_table_imp.h (renamed from inc/mod_table_imp.h) | 0 | ||||
-rw-r--r-- | include/pthread_rw_mutex.h (renamed from inc/pthread_rw_mutex.h) | 0 | ||||
-rw-r--r-- | include/qtest_stdlib.h (renamed from inc/qtest_stdlib.h) | 0 | ||||
-rw-r--r-- | include/remote.h (renamed from inc/remote.h) | 0 | ||||
-rw-r--r-- | include/remote64.h (renamed from inc/remote64.h) | 0 | ||||
-rw-r--r-- | include/remotectl.h (renamed from inc/remotectl.h) | 0 | ||||
-rw-r--r-- | include/rpcmem.h (renamed from inc/rpcmem.h) | 0 | ||||
-rw-r--r-- | include/sbuf.h (renamed from inc/sbuf.h) | 0 | ||||
-rw-r--r-- | include/shared.h (renamed from inc/shared.h) | 0 | ||||
-rw-r--r-- | include/uthash.h (renamed from inc/uthash.h) | 0 | ||||
-rw-r--r-- | include/verify.h (renamed from inc/verify.h) | 0 | ||||
-rw-r--r-- | include/version.h (renamed from inc/version.h) | 0 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/lib/AEEsmath.h (renamed from src/AEEsmath.h) | 0 | ||||
-rw-r--r-- | src/lib/BufBound.c (renamed from src/BufBound.c) | 0 | ||||
-rw-r--r-- | src/lib/Makefile.am | 26 | ||||
-rw-r--r-- | src/lib/adsp_current_process_stub.c (renamed from src/adsp_current_process_stub.c) | 0 | ||||
-rw-r--r-- | src/lib/adsp_listener_stub.c (renamed from src/adsp_listener_stub.c) | 0 | ||||
-rw-r--r-- | src/lib/apps_mem_imp.c (renamed from src/apps_mem_imp.c) | 0 | ||||
-rw-r--r-- | src/lib/apps_mem_skel.c (renamed from src/apps_mem_skel.c) | 0 | ||||
-rw-r--r-- | src/lib/apps_remotectl_skel.c (renamed from src/apps_remotectl_skel.c) | 0 | ||||
-rw-r--r-- | src/lib/apps_std_imp.c (renamed from src/apps_std_imp.c) | 0 | ||||
-rw-r--r-- | src/lib/apps_std_skel.c (renamed from src/apps_std_skel.c) | 0 | ||||
-rw-r--r-- | src/lib/atomic.c (renamed from src/atomic.c) | 0 | ||||
-rw-r--r-- | src/lib/cae.c (renamed from src/cae.c) | 0 | ||||
-rw-r--r-- | src/lib/fastrpc_apps_user.c (renamed from src/fastrpc_apps_user.c) | 0 | ||||
-rw-r--r-- | src/lib/listener.c (renamed from src/listener.c) | 0 | ||||
-rw-r--r-- | src/lib/remotectl_stub.c (renamed from src/remotectl_stub.c) | 0 | ||||
-rw-r--r-- | src/lib/rpcmem.c (renamed from src/rpcmem.c) | 0 | ||||
-rw-r--r-- | src/lib/smath.c (renamed from src/smath.c) | 0 | ||||
-rw-r--r-- | src/lib/std.c (renamed from src/std.c) | 0 | ||||
-rw-r--r-- | src/lib/std_SwapBytes.c (renamed from src/std_SwapBytes.c) | 0 | ||||
-rw-r--r-- | src/lib/std_dtoa.c (renamed from src/std_dtoa.c) | 0 | ||||
-rw-r--r-- | src/lib/std_dtoa.h (renamed from src/std_dtoa.h) | 0 | ||||
-rw-r--r-- | src/lib/std_mem.c (renamed from src/std_mem.c) | 0 | ||||
-rw-r--r-- | src/lib/std_path.c (renamed from src/std_path.c) | 0 | ||||
-rw-r--r-- | src/lib/std_strlprintf.c (renamed from src/std_strlprintf.c) | 0 | ||||
-rw-r--r-- | src/utils/adsp_default_listener_stub.c (renamed from src/adsp_default_listener_stub.c) | 0 |
60 files changed, 83 insertions, 54 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 659bd01..0000000 --- a/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# --------------------------------------------------------------------------------- -# Common definitons -# --------------------------------------------------------------------------------- -.PHONY: all clean - -CFLAGS = -g -O3 -Iinc -fPIC -fno-short-enums -D_DEBUG -DARM_ARCH_7 -DUSE_SYSLOG -LDFLAGS = -ldl -lpthread -lm -shared -TARGET := libadsprpc.so - -# --------------------------------------------------------------------------------- -# Make the shared library (libadsprpc) -# --------------------------------------------------------------------------------- - -SOURCES = \ - src/fastrpc_apps_user.c \ - src/remotectl_stub.c \ - src/listener.c \ - src/adsp_current_process_stub.c \ - src/apps_std_skel.c \ - src/apps_std_imp.c \ - src/apps_mem_imp.c \ - src/apps_mem_skel.c \ - src/rpcmem.c \ - src/apps_remotectl_skel.c \ - src/std.c \ - src/std_mem.c \ - src/std_path.c \ - src/std_dtoa.c \ - src/std_strlprintf.c \ - src/BufBound.c \ - src/std_SwapBytes.c \ - src/smath.c \ - src/atomic.c \ - src/cae.c - -OBJFILES := $(patsubst %.c,%.o,$(SOURCES)) -DEPFILES := $(patsubst %.o,%.d,$(OBJFILES)) - -include $(dep) - -all: $(TARGET) - -$(TARGET): $(OBJFILES) - $(CC) ${LDFLAGS} -o $@ $^ - -%.d: %.c - @$(CC) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ - -.c.o: - @echo "(CC) $@" - @$(CC) $(CFLAGS) -MMD -MP -c $< -o $@ - -clean: - rm -rf $(OBJFILES) $(DEPFILES) $(TARGET) diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..26226b0 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = src + +ACLOCAL_AMFLAGS = -I m4 diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..87fd847 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +autoreconf --verbose --force --install || { + echo 'autogen.sh failed'; + exit 1; +} diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..9c28e43 --- /dev/null +++ b/configure.ac @@ -0,0 +1,30 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.63]) +AC_INIT([libadspprc.so], [0.0.1]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) + +AM_INIT_AUTOMAKE(1.10) +LT_INIT(disable-static) + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_MAKE_SET +AM_PROG_CC_C_O + +# Checks for libraries. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([ +Makefile +src/Makefile +src/lib/Makefile]) +AC_OUTPUT diff --git a/gitcompile b/gitcompile new file mode 100755 index 0000000..0098413 --- /dev/null +++ b/gitcompile @@ -0,0 +1,17 @@ +#!/bin/bash + +libtoolize --force --copy --automake +aclocal $ACLOCAL_FLAGS +# save original files to avoid stupid modifications by gettextize +autoheader +automake --foreign --copy --add-missing +touch depcomp # for older automake +autoconf +export CFLAGS='-O2 -Wall -pipe -g' +echo "CFLAGS=$CFLAGS" +echo "./configure $@" +./configure $@ || exit 1 +unset CFLAGS +if [ -z "$GITCOMPILE_NO_MAKE" ]; then + make +fi diff --git a/inc/AEEBufBound.h b/include/AEEBufBound.h index 4146ba6..4146ba6 100644 --- a/inc/AEEBufBound.h +++ b/include/AEEBufBound.h diff --git a/inc/AEEQList.h b/include/AEEQList.h index f3346e0..f3346e0 100644 --- a/inc/AEEQList.h +++ b/include/AEEQList.h diff --git a/inc/AEEStdDef.h b/include/AEEStdDef.h index 1baefd2..1baefd2 100644 --- a/inc/AEEStdDef.h +++ b/include/AEEStdDef.h diff --git a/inc/AEEStdErr.h b/include/AEEStdErr.h index c93ac49..c93ac49 100644 --- a/inc/AEEStdErr.h +++ b/include/AEEStdErr.h diff --git a/inc/AEEVaList.h b/include/AEEVaList.h index 3bf3204..3bf3204 100644 --- a/inc/AEEVaList.h +++ b/include/AEEVaList.h diff --git a/inc/AEEatomic.h b/include/AEEatomic.h index 2911455..2911455 100644 --- a/inc/AEEatomic.h +++ b/include/AEEatomic.h diff --git a/inc/AEEstd.h b/include/AEEstd.h index 2cfc653..2cfc653 100644 --- a/inc/AEEstd.h +++ b/include/AEEstd.h diff --git a/inc/adsp_current_process.h b/include/adsp_current_process.h index 7be2948..7be2948 100644 --- a/inc/adsp_current_process.h +++ b/include/adsp_current_process.h diff --git a/inc/adsp_default_listener.h b/include/adsp_default_listener.h index e9351e5..e9351e5 100644 --- a/inc/adsp_default_listener.h +++ b/include/adsp_default_listener.h diff --git a/inc/adsp_listener.h b/include/adsp_listener.h index a307400..a307400 100644 --- a/inc/adsp_listener.h +++ b/include/adsp_listener.h diff --git a/inc/apps_mem.h b/include/apps_mem.h index f92a754..f92a754 100644 --- a/inc/apps_mem.h +++ b/include/apps_mem.h diff --git a/inc/apps_remotectl.h b/include/apps_remotectl.h index 41539e2..41539e2 100644 --- a/inc/apps_remotectl.h +++ b/include/apps_remotectl.h diff --git a/inc/apps_std.h b/include/apps_std.h index 72a68f6..72a68f6 100644 --- a/inc/apps_std.h +++ b/include/apps_std.h diff --git a/inc/fastrpc_apps_user.h b/include/fastrpc_apps_user.h index 31b4a1b..31b4a1b 100644 --- a/inc/fastrpc_apps_user.h +++ b/include/fastrpc_apps_user.h diff --git a/inc/fastrpc_internal.h b/include/fastrpc_internal.h index 0e42595..0e42595 100644 --- a/inc/fastrpc_internal.h +++ b/include/fastrpc_internal.h diff --git a/inc/listener.h b/include/listener.h index b85a8e2..b85a8e2 100644 --- a/inc/listener.h +++ b/include/listener.h diff --git a/inc/listener_buf.h b/include/listener_buf.h index 757aae1..757aae1 100644 --- a/inc/listener_buf.h +++ b/include/listener_buf.h diff --git a/inc/mod_table_imp.h b/include/mod_table_imp.h index 80a0f7b..80a0f7b 100644 --- a/inc/mod_table_imp.h +++ b/include/mod_table_imp.h diff --git a/inc/pthread_rw_mutex.h b/include/pthread_rw_mutex.h index b3947d6..b3947d6 100644 --- a/inc/pthread_rw_mutex.h +++ b/include/pthread_rw_mutex.h diff --git a/inc/qtest_stdlib.h b/include/qtest_stdlib.h index 315c261..315c261 100644 --- a/inc/qtest_stdlib.h +++ b/include/qtest_stdlib.h diff --git a/inc/remote.h b/include/remote.h index 37670bd..37670bd 100644 --- a/inc/remote.h +++ b/include/remote.h diff --git a/inc/remote64.h b/include/remote64.h index e16b255..e16b255 100644 --- a/inc/remote64.h +++ b/include/remote64.h diff --git a/inc/remotectl.h b/include/remotectl.h index 1b4b2ff..1b4b2ff 100644 --- a/inc/remotectl.h +++ b/include/remotectl.h diff --git a/inc/rpcmem.h b/include/rpcmem.h index 82de2d1..82de2d1 100644 --- a/inc/rpcmem.h +++ b/include/rpcmem.h diff --git a/inc/sbuf.h b/include/sbuf.h index 611f535..611f535 100644 --- a/inc/sbuf.h +++ b/include/sbuf.h diff --git a/inc/shared.h b/include/shared.h index b05742f..b05742f 100644 --- a/inc/shared.h +++ b/include/shared.h diff --git a/inc/uthash.h b/include/uthash.h index 73f5006..73f5006 100644 --- a/inc/uthash.h +++ b/include/uthash.h diff --git a/inc/verify.h b/include/verify.h index 663d496..663d496 100644 --- a/inc/verify.h +++ b/include/verify.h diff --git a/inc/version.h b/include/version.h index f89814d..f89814d 100644 --- a/inc/version.h +++ b/include/version.h diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..0262e4d --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = lib diff --git a/src/AEEsmath.h b/src/lib/AEEsmath.h index 491b92f..491b92f 100644 --- a/src/AEEsmath.h +++ b/src/lib/AEEsmath.h diff --git a/src/BufBound.c b/src/lib/BufBound.c index ab85e86..ab85e86 100644 --- a/src/BufBound.c +++ b/src/lib/BufBound.c diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am new file mode 100644 index 0000000..f8d43df --- /dev/null +++ b/src/lib/Makefile.am @@ -0,0 +1,26 @@ +adsprpcdir = $(libdir) + +adsprpc_LTLIBRARIES = libadsprpc.la +libadsprpc_la_SOURCES = fastrpc_apps_user.c \ + remotectl_stub.c \ + listener.c \ + adsp_current_process_stub.c \ + apps_std_skel.c \ + apps_std_imp.c \ + apps_mem_imp.c \ + apps_mem_skel.c \ + rpcmem.c \ + apps_remotectl_skel.c \ + std.c \ + std_mem.c \ + std_path.c \ + std_dtoa.c \ + std_strlprintf.c \ + BufBound.c \ + std_SwapBytes.c \ + smath.c \ + atomic.c \ + cae.c + +libadsprpc_la_LDFLAGS = -ldl -lpthread -lm -shared +libadsprpc_la_CFLAGS = -I$(top_srcdir)/include -O3 -Iinc -fPIC -fno-short-enums -D_DEBUG -DARM_ARCH_7 -DUSE_SYSLOG diff --git a/src/adsp_current_process_stub.c b/src/lib/adsp_current_process_stub.c index ab11e21..ab11e21 100644 --- a/src/adsp_current_process_stub.c +++ b/src/lib/adsp_current_process_stub.c diff --git a/src/adsp_listener_stub.c b/src/lib/adsp_listener_stub.c index 900da9a..900da9a 100644 --- a/src/adsp_listener_stub.c +++ b/src/lib/adsp_listener_stub.c diff --git a/src/apps_mem_imp.c b/src/lib/apps_mem_imp.c index d50d0ad..d50d0ad 100644 --- a/src/apps_mem_imp.c +++ b/src/lib/apps_mem_imp.c diff --git a/src/apps_mem_skel.c b/src/lib/apps_mem_skel.c index 13be7a8..13be7a8 100644 --- a/src/apps_mem_skel.c +++ b/src/lib/apps_mem_skel.c diff --git a/src/apps_remotectl_skel.c b/src/lib/apps_remotectl_skel.c index 603a0f1..603a0f1 100644 --- a/src/apps_remotectl_skel.c +++ b/src/lib/apps_remotectl_skel.c diff --git a/src/apps_std_imp.c b/src/lib/apps_std_imp.c index 2c84c8c..2c84c8c 100644 --- a/src/apps_std_imp.c +++ b/src/lib/apps_std_imp.c diff --git a/src/apps_std_skel.c b/src/lib/apps_std_skel.c index bd5873b..bd5873b 100644 --- a/src/apps_std_skel.c +++ b/src/lib/apps_std_skel.c diff --git a/src/atomic.c b/src/lib/atomic.c index 9084638..9084638 100644 --- a/src/atomic.c +++ b/src/lib/atomic.c diff --git a/src/cae.c b/src/lib/cae.c index 8c9c4f7..8c9c4f7 100644 --- a/src/cae.c +++ b/src/lib/cae.c diff --git a/src/fastrpc_apps_user.c b/src/lib/fastrpc_apps_user.c index a3d3571..a3d3571 100644 --- a/src/fastrpc_apps_user.c +++ b/src/lib/fastrpc_apps_user.c diff --git a/src/listener.c b/src/lib/listener.c index 5455195..5455195 100644 --- a/src/listener.c +++ b/src/lib/listener.c diff --git a/src/remotectl_stub.c b/src/lib/remotectl_stub.c index 3b4ee21..3b4ee21 100644 --- a/src/remotectl_stub.c +++ b/src/lib/remotectl_stub.c diff --git a/src/rpcmem.c b/src/lib/rpcmem.c index a2504eb..a2504eb 100644 --- a/src/rpcmem.c +++ b/src/lib/rpcmem.c diff --git a/src/smath.c b/src/lib/smath.c index 75d2e71..75d2e71 100644 --- a/src/smath.c +++ b/src/lib/smath.c diff --git a/src/std.c b/src/lib/std.c index 276594e..276594e 100644 --- a/src/std.c +++ b/src/lib/std.c diff --git a/src/std_SwapBytes.c b/src/lib/std_SwapBytes.c index 8a99a89..8a99a89 100644 --- a/src/std_SwapBytes.c +++ b/src/lib/std_SwapBytes.c diff --git a/src/std_dtoa.c b/src/lib/std_dtoa.c index 880f3c6..880f3c6 100644 --- a/src/std_dtoa.c +++ b/src/lib/std_dtoa.c diff --git a/src/std_dtoa.h b/src/lib/std_dtoa.h index 5a439b6..5a439b6 100644 --- a/src/std_dtoa.h +++ b/src/lib/std_dtoa.h diff --git a/src/std_mem.c b/src/lib/std_mem.c index 430b45a..430b45a 100644 --- a/src/std_mem.c +++ b/src/lib/std_mem.c diff --git a/src/std_path.c b/src/lib/std_path.c index 0e82f5c..0e82f5c 100644 --- a/src/std_path.c +++ b/src/lib/std_path.c diff --git a/src/std_strlprintf.c b/src/lib/std_strlprintf.c index b2cc036..b2cc036 100644 --- a/src/std_strlprintf.c +++ b/src/lib/std_strlprintf.c diff --git a/src/adsp_default_listener_stub.c b/src/utils/adsp_default_listener_stub.c index aa19e0c..aa19e0c 100644 --- a/src/adsp_default_listener_stub.c +++ b/src/utils/adsp_default_listener_stub.c |