Repository navigation
Expand file tree
/
Copy pathMakefile.am
More file actions
89 lines (76 loc) · 3.3 KB
/
Copy pathMakefile.am
File metadata and controls
89 lines (76 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
SUFFIXES =
TESTS =
noinst_PROGRAMS =
noinst_HEADERS =
check_PROGRAMS =
dist_noinst_SCRIPTS =
DISTCLEANFILES =
CLEANFILES =
pkginclude_HEADERS =
EXTRA_DIST =
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libwolfengine.la
include src/include.am
include include/include.am
include test/include.am
include scripts/include.am
include windows/include.am
include examples/include.am
include rpm/include.am
noinst_PROGRAMS += bench
bench_SOURCES = bench.c
bench_LDADD = libwolfengine.la
DISTCLEANFILES += .libs/bench
test: check
# By default, make distcheck will only add wolfEngine/ as an include directory.
# So, for example, a file like unit.h that has #include
# <wolfengine/we_logging.h> won't be able to find we_logging.h, because
# wolfEngine/include isn't an include directory. We add it here.
#
# The OpenSSL lib and include directories won't be visible to make distcheck
# either because make distcheck runs ./configure with no other options. If
# OpenSSL isn't installed in a standard location, this naked configure command
# will fail to find it. We tell it where to find the include and lib directory
# for OpenSSL here.
#
# The '--with-wolfssl' doesn't get propagated during a distcheck either, but it
# is necessary when they are installed somewhere other than /usr/local.
AM_DISTCHECK_CONFIGURE_FLAGS=CPPFLAGS="-I@abs_top_srcdir@/include" --with-openssl=@OPENSSL_INSTALL_DIR@ --with-wolfssl=@WOLFSSL_INSTALL_DIR@
EXTRA_DIST += README.md \
engine.conf \
ChangeLog.md
# SBOM generation (CRA compliance). The recipe and the generator are the
# vendored wolfssl-compliance-tooling snapshot in tools/sbom/ (pinned by
# tools/sbom/.wolfssl-compliance-tooling-rev); wolfEngine just declares what it
# is (a libwolfengine shared library that links both wolfSSL and OpenSSL) and
# includes it. The wolfSSL dependency version comes from pkg-config, or from a
# wolfssl source tree with `make sbom WOLFSSL_DIR=/path/to/wolfssl`.
SBOM_PKGNAME = wolfengine
SBOM_LICENSE_FILE = $(srcdir)/COPYING
SBOM_DEP_WOLFSSL = yes
SBOM_DEP_OPENSSL = yes
# wolfEngine is GPLv3-or-later (per the per-file source headers: "either version
# 3 of the License, or (at your option) any later version") or commercial. Pin
# the header-accurate SPDX id here so the SBOM is correct regardless of the
# gen-sbom version's licence detection; commercial licensees can override it
# (e.g. LicenseRef-wolfSSL-Commercial).
SBOM_LICENSE_OVERRIDE ?= GPL-3.0-or-later
# wolfEngine declares AC_CONFIG_HEADERS([include/config.h]) and carries its
# feature macros (-DWE_HAVE_*, -DWE_NO_DYNAMIC_ENGINE, ...) in AM_CFLAGS, so
# point the SBOM build-options capture at the real config header.
SBOM_CONFIG_H = $(abs_builddir)/include/config.h
EXTRA_DIST += tools/sbom/README.md \
tools/sbom/VERSION \
tools/sbom/.wolfssl-compliance-tooling-rev \
tools/sbom/gen-sbom \
tools/sbom/sbom-driver \
tools/sbom/sbom-driver.py \
tools/sbom/sbom.am \
tools/sbom/validate_sbom.py \
tools/sbom/build/sbom.cmake \
tools/sbom/build/sbom.mk \
tools/sbom/frontends/compdb_sbom.py \
tools/sbom/frontends/iar_sbom.py \
tools/sbom/frontends/zephyr_sbom.py
include tools/sbom/sbom.am