File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed
Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1-
21SUFFIXES =
32TESTS =
43noinst_PROGRAMS =
54noinst_HEADERS =
65check_PROGRAMS =
76dist_noinst_SCRIPTS =
87DISTCLEANFILES =
8+ pkginclude_HEADERS =
99
1010ACLOCAL_AMFLAGS = -I m4
1111
@@ -22,3 +22,17 @@ bench_LDADD = libwolfengine.la
2222DISTCLEANFILES += .libs/bench
2323
2424test : check
25+
26+ # By default, make distcheck will only add wolfEngine/ as an include directory.
27+ # So, for example, a file like unit.h that has #include
28+ # <wolfengine/we_logging.h> won't be able to find we_logging.h, because
29+ # wolfEngine/include isn't an include directory. We add it here.
30+ #
31+ # The OpenSSL lib and include directories won't be visible to make distcheck
32+ # either because make distcheck runs ./configure with no other options. If
33+ # OpenSSL isn't installed in a standard location, this naked configure command
34+ # will fail to find it. We tell it where to find the include and lib directory
35+ # for OpenSSL here.
36+ AM_DISTCHECK_CONFIGURE_FLAGS=CPPFLAGS ="-I@abs_top_srcdir@/include \
37+ @OPENSSL_INCLUDES@" \
38+ LDFLAGS="@OPENSSL_LDFLAGS@"
Original file line number Diff line number Diff line change @@ -24,6 +24,21 @@ USER_CFLAGS="$CFLAGS"
2424AC_PROG_CC
2525AC_LANG ( C )
2626
27+ # shared library versioning
28+ WOLFENGINE_LIBRARY_VERSION=1:0:0
29+ # | | |
30+ # +------+ | +---+
31+ # | | |
32+ # current:revision:age
33+ # | | |
34+ # | | +- increment if interfaces have been added
35+ # | | set to zero if interfaces have been removed
36+ # | | or changed
37+ # | +- increment if source code has changed
38+ # | set to zero if current is incremented
39+ # +- increment if interfaces have been added, removed or changed
40+ AC_SUBST ( [ WOLFENGINE_LIBRARY_VERSION] )
41+
2742LIBS="$LIBS -ldl"
2843
2944AC_CHECK_HEADERS ( [ openssl/engine.h] )
Original file line number Diff line number Diff line change 55noinst_HEADERS += include/wolfengine/we_internal.h \
66 include/wolfengine/we_openssl_bc.h
77
8- pkginclude_HEADERS = include/wolfengine/we_wolfengine.h \
9- include/wolfengine/we_logging.h \
10- include/wolfengine/we_fips.h
8+ pkginclude_HEADERS + = include/wolfengine/we_wolfengine.h \
9+ include/wolfengine/we_logging.h \
10+ include/wolfengine/we_fips.h
Original file line number Diff line number Diff line change 22# included from Top Level Makefile.am
33# All paths should be given relative to the root
44
5+ libwolfengine_la_LDFLAGS = ${AM_LDFLAGS} -no-undefined -version-info ${WOLFENGINE_LIBRARY_VERSION}
6+
57libwolfengine_la_SOURCES =
68libwolfengine_la_SOURCES += src/we_aes_block.c
79libwolfengine_la_SOURCES += src/we_aes_cbc_hmac.c
You can’t perform that action at this time.
0 commit comments