Initial library skeleton

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
This commit is contained in:
Dmitry Kasatkin 2014-01-17 18:20:22 +02:00
parent 3dc656bc6f
commit 018495c87f
5 changed files with 27 additions and 6 deletions

View File

@ -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.

View 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])

View 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

6
src/libevm.c Normal file
View File

@ -0,0 +1,6 @@
#include <libevm.h>
void ima_func(void)
{
}

7
src/libevm.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef _LIBEVM_H
#define _LIBEVM_H
void ima_func(void);
#endif