From 018495c87f1de3b18bdcc4a838ef6b6ab2341b75 Mon Sep 17 00:00:00 2001 From: Dmitry Kasatkin Date: Fri, 17 Jan 2014 18:20:22 +0200 Subject: [PATCH] Initial library skeleton Signed-off-by: Dmitry Kasatkin --- INSTALL | 8 ++++---- configure.ac | 2 +- src/Makefile.am | 10 +++++++++- src/libevm.c | 6 ++++++ src/libevm.h | 7 +++++++ 5 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 src/libevm.c create mode 100644 src/libevm.h diff --git a/INSTALL b/INSTALL index a1e89e1..007e939 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,7 @@ Installation Instructions ************************* -Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, +Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, @@ -309,9 +309,10 @@ causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to -an Autoconf bug. Until the bug is fixed you can use this workaround: +an Autoconf limitation. Until the limitation is lifted, you can use +this workaround: - CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== @@ -367,4 +368,3 @@ operates. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. - diff --git a/configure.ac b/configure.ac index 00e1cb3..09398f0 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.65]) AC_INIT(ima-evm-utils, 0.6, d.kasatkin@samsung.com) -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) +AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/src/Makefile.am b/src/Makefile.am index 6779baf..18174d5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,10 +1,18 @@ +lib_LTLIBRARIES = libevm.la + +libevm_la_SOURCES = libevm.c +libevm_la_CPPFLAGS = $(OPENSSL_CFLAGS) +# current[:revision[:age]] +# result: [current-age].age.revision +libevm_la_LDFLAGS = -version-info 0:0:0 +libevm_la_LIBADD = $(OPENSSL_LIBS) bin_PROGRAMS = evmctl evmctl_SOURCES = evmctl.c evmctl_CPPFLAGS = $(OPENSSL_CFLAGS) evmctl_LDFLAGS = $(LDFLAGS_READLINE) -evmctl_LDADD = $(OPENSSL_LIBS) -lkeyutils +evmctl_LDADD = $(OPENSSL_LIBS) -lkeyutils libevm.la INCLUDES = -I$(top_srcdir) -include config.h diff --git a/src/libevm.c b/src/libevm.c new file mode 100644 index 0000000..c343297 --- /dev/null +++ b/src/libevm.c @@ -0,0 +1,6 @@ +#include + +void ima_func(void) +{ +} + diff --git a/src/libevm.h b/src/libevm.h new file mode 100644 index 0000000..fd05e1a --- /dev/null +++ b/src/libevm.h @@ -0,0 +1,7 @@ +#ifndef _LIBEVM_H +#define _LIBEVM_H + +void ima_func(void); + +#endif +