Initial library skeleton
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 17 Jan 2014 16:20:22 +0000 (18:20 +0200)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 17 Jan 2014 16:43:44 +0000 (18:43 +0200)
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
INSTALL
configure.ac
src/Makefile.am
src/libevm.c [new file with mode: 0644]
src/libevm.h [new file with mode: 0644]

diff --git a/INSTALL b/INSTALL
index a1e89e1..007e939 100644 (file)
--- 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.
-
index 00e1cb3..09398f0 100644 (file)
@@ -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])
  
index 6779baf..18174d5 100644 (file)
@@ -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 (file)
index 0000000..c343297
--- /dev/null
@@ -0,0 +1,6 @@
+#include <libevm.h>
+
+void ima_func(void)
+{
+}
+
diff --git a/src/libevm.h b/src/libevm.h
new file mode 100644 (file)
index 0000000..fd05e1a
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _LIBEVM_H
+#define _LIBEVM_H
+
+void ima_func(void);
+
+#endif
+