2011-08-24 15:54:58 -07:00
|
|
|
# includes append to these:
|
|
|
|
|
SUFFIXES =
|
|
|
|
|
TESTS =
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
DISTCLEANFILES =
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
MAINTAINERCLEANFILES =
|
2011-08-24 15:54:58 -07:00
|
|
|
bin_PROGRAMS =
|
|
|
|
|
noinst_HEADERS =
|
|
|
|
|
lib_LTLIBRARIES =
|
|
|
|
|
man_MANS =
|
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
include_HEADERS =
|
|
|
|
|
nobase_include_HEADERS =
|
|
|
|
|
check_PROGRAMS =
|
|
|
|
|
EXTRA_HEADERS =
|
|
|
|
|
BUILT_SOURCES=
|
|
|
|
|
EXTRA_DIST=
|
2012-10-20 04:42:34 -04:00
|
|
|
dist_doc_DATA=
|
2015-04-18 08:35:47 -07:00
|
|
|
dist_noinst_SCRIPTS =
|
2015-09-28 10:06:30 -06:00
|
|
|
noinst_SCRIPTS =
|
2015-04-18 08:35:47 -07:00
|
|
|
check_SCRIPTS =
|
2020-08-21 14:59:19 +10:00
|
|
|
noinst_DATA =
|
2023-01-20 19:59:36 -05:00
|
|
|
ignore_files =
|
2020-09-09 20:48:40 -05:00
|
|
|
SUBDIRS_OPT =
|
|
|
|
|
DIST_SUBDIRS_OPT =
|
2011-02-05 11:14:47 -08:00
|
|
|
|
2021-08-27 23:03:14 -05:00
|
|
|
# allow supplementary or override flags to be passed at make time:
|
2023-01-25 23:45:21 -06:00
|
|
|
AM_CPPFLAGS += $(EXTRA_CPPFLAGS)
|
2021-08-27 23:03:14 -05:00
|
|
|
AM_CFLAGS += $(EXTRA_CFLAGS)
|
2023-01-25 23:45:21 -06:00
|
|
|
AM_CCASFLAGS += $(EXTRA_CCASFLAGS)
|
|
|
|
|
AM_LDFLAGS += $(EXTRA_LDFLAGS)
|
2021-08-27 23:03:14 -05:00
|
|
|
|
2012-10-26 00:35:52 -04:00
|
|
|
#includes additional rules from aminclude.am
|
2012-10-26 15:38:37 -07:00
|
|
|
@INC_AMINCLUDE@
|
2021-09-28 11:34:52 -05:00
|
|
|
DISTCLEANFILES+= aminclude.am \
|
|
|
|
|
.build_params
|
2012-10-26 00:35:52 -04:00
|
|
|
|
2021-02-05 07:25:07 -08:00
|
|
|
CLEANFILES+= ecc-key.der \
|
|
|
|
|
ecc-public-key.der \
|
|
|
|
|
cert.der \
|
2014-06-05 15:06:59 -06:00
|
|
|
cert.pem \
|
|
|
|
|
certecc.der \
|
|
|
|
|
certecc.pem \
|
|
|
|
|
certreq.der \
|
|
|
|
|
certreq.pem \
|
|
|
|
|
key.der \
|
|
|
|
|
key.pem \
|
2017-12-12 10:17:00 -07:00
|
|
|
ecc-key-pkcs8.der \
|
2014-06-05 15:06:59 -06:00
|
|
|
othercert.der \
|
|
|
|
|
othercert.pem \
|
|
|
|
|
pkcs7cert.der \
|
2018-09-21 15:35:41 -06:00
|
|
|
pkcs7authEnvelopedDataAES128GCM.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES128GCM_ECDH_SHA1KDF.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES128GCM_KEKRI.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES128GCM_ORI.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES128GCM_PWRI.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES192GCM.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF.der \
|
2018-09-24 16:42:12 -06:00
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_authAttribs.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_bothAttribs.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_fw_bothAttribs.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_unauthAttribs.der \
|
2018-09-21 15:35:41 -06:00
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA512KDF.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_ECDH_SHA512KDF_ukm.der \
|
2018-09-21 17:13:33 -06:00
|
|
|
pkcs7authEnvelopedDataAES256GCM_firmwarePkgData.der \
|
2018-09-21 15:35:41 -06:00
|
|
|
pkcs7authEnvelopedDataAES256GCM_IANDS.der \
|
|
|
|
|
pkcs7authEnvelopedDataAES256GCM_SKID.der \
|
2018-08-17 11:07:54 -06:00
|
|
|
pkcs7compressedData_data_zlib.der \
|
|
|
|
|
pkcs7compressedData_firmwarePkgData_zlib.der \
|
2016-12-09 17:22:09 -07:00
|
|
|
pkcs7encryptedDataAES128CBC.der \
|
|
|
|
|
pkcs7encryptedDataAES192CBC.der \
|
|
|
|
|
pkcs7encryptedDataAES256CBC_attribs.der \
|
|
|
|
|
pkcs7encryptedDataAES256CBC.der \
|
2018-08-17 10:52:18 -06:00
|
|
|
pkcs7encryptedDataAES256CBC_firmwarePkgData.der \
|
2016-12-09 17:22:09 -07:00
|
|
|
pkcs7encryptedDataAES256CBC_multi_attribs.der \
|
|
|
|
|
pkcs7encryptedDataDES3.der \
|
|
|
|
|
pkcs7encryptedDataDES.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC_ECDH.der \
|
|
|
|
|
pkcs7envelopedDataAES128CBC_ECDH_SHA1KDF.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC_ECDH_SHA256KDF.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC_ECDH_SHA512KDF.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC_ECDH_SHA512KDF_ukm.der \
|
2016-10-31 11:36:23 -06:00
|
|
|
pkcs7envelopedDataDES3.der \
|
|
|
|
|
pkcs7envelopedDataAES128CBC.der \
|
2018-09-12 13:23:35 -06:00
|
|
|
pkcs7envelopedDataAES128CBC_KEKRI.der \
|
2018-09-14 15:41:48 -06:00
|
|
|
pkcs7envelopedDataAES128CBC_PWRI.der \
|
2018-09-17 16:10:56 -06:00
|
|
|
pkcs7envelopedDataAES128CBC_ORI.der \
|
2016-10-31 11:36:23 -06:00
|
|
|
pkcs7envelopedDataAES192CBC.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC.der \
|
2018-09-18 10:12:28 -06:00
|
|
|
pkcs7envelopedDataAES256CBC_IANDS.der \
|
|
|
|
|
pkcs7envelopedDataAES256CBC_SKID.der \
|
2017-04-14 13:33:54 -06:00
|
|
|
pkcs7signedData_RSA_SHA.der \
|
|
|
|
|
pkcs7signedData_RSA_SHA_noattr.der \
|
|
|
|
|
pkcs7signedData_RSA_SHA224.der \
|
|
|
|
|
pkcs7signedData_RSA_SHA256.der \
|
2018-08-15 11:15:31 -06:00
|
|
|
pkcs7signedData_RSA_SHA256_firmwarePkgData.der \
|
2018-08-09 14:22:06 -06:00
|
|
|
pkcs7signedData_RSA_SHA256_custom_contentType.der \
|
2018-08-31 10:18:18 -06:00
|
|
|
pkcs7signedData_RSA_SHA256_with_ca_cert.der \
|
2018-08-14 15:28:25 -06:00
|
|
|
pkcs7signedData_RSA_SHA256_SKID.der \
|
2018-11-14 13:11:36 -07:00
|
|
|
pkcs7signedData_RSA_SHA256_detachedSig.der \
|
2017-04-14 13:33:54 -06:00
|
|
|
pkcs7signedData_RSA_SHA384.der \
|
|
|
|
|
pkcs7signedData_RSA_SHA512.der \
|
|
|
|
|
pkcs7signedData_ECDSA_SHA.der \
|
|
|
|
|
pkcs7signedData_ECDSA_SHA_noattr.der \
|
|
|
|
|
pkcs7signedData_ECDSA_SHA224.der \
|
|
|
|
|
pkcs7signedData_ECDSA_SHA256.der \
|
2018-08-15 11:15:31 -06:00
|
|
|
pkcs7signedData_ECDSA_SHA256_firmwarePkgData.der \
|
2018-08-09 14:22:06 -06:00
|
|
|
pkcs7signedData_ECDSA_SHA256_custom_contentType.der \
|
2018-08-14 15:28:25 -06:00
|
|
|
pkcs7signedData_ECDSA_SHA256_SKID.der \
|
2017-04-14 13:33:54 -06:00
|
|
|
pkcs7signedData_ECDSA_SHA384.der \
|
2018-10-10 13:46:11 -06:00
|
|
|
pkcs7signedData_ECDSA_SHA512.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_ECDSA_SHA256.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_ECDSA_SHA256_SKID.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_ECDSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_RSA_SHA256.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_RSA_SHA256_SKID.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_RSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedFirmwarePkgData_RSA_SHA256_with_ca_cert.der \
|
|
|
|
|
pkcs7signedCompressedFirmwarePkgData_ECDSA_SHA256.der \
|
|
|
|
|
pkcs7signedCompressedFirmwarePkgData_ECDSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedCompressedFirmwarePkgData_RSA_SHA256.der \
|
|
|
|
|
pkcs7signedCompressedFirmwarePkgData_RSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedEncryptedFirmwarePkgData_RSA_SHA256.der \
|
|
|
|
|
pkcs7signedEncryptedFirmwarePkgData_RSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedEncryptedFirmwarePkgData_ECDSA_SHA256.der \
|
2018-10-10 15:10:47 -06:00
|
|
|
pkcs7signedEncryptedFirmwarePkgData_ECDSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256.der \
|
|
|
|
|
pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256_noattr.der \
|
|
|
|
|
pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256.der \
|
2020-07-23 10:12:40 -07:00
|
|
|
pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256_noattr.der \
|
2021-02-22 16:33:18 +09:00
|
|
|
tests/test-log-dump-to-file.txt \
|
2021-09-28 11:34:52 -05:00
|
|
|
MyKeyLog.txt
|
2014-06-05 15:06:59 -06:00
|
|
|
|
2012-10-20 04:42:34 -04:00
|
|
|
exampledir = $(docdir)/example
|
|
|
|
|
dist_example_DATA=
|
2011-08-24 15:54:58 -07:00
|
|
|
|
2012-10-19 00:30:21 -04:00
|
|
|
ACLOCAL_AMFLAGS= -I m4
|
2011-08-24 15:54:58 -07:00
|
|
|
|
2024-03-27 13:31:14 -07:00
|
|
|
EXTRA_DIST+= .cyignore
|
2015-01-09 11:43:17 -07:00
|
|
|
EXTRA_DIST+= wolfssl.vcproj
|
|
|
|
|
EXTRA_DIST+= wolfssl.vcxproj
|
2024-10-21 14:05:51 -07:00
|
|
|
EXTRA_DIST+= wolfssl-VS2022.vcxproj
|
2015-01-09 11:43:17 -07:00
|
|
|
EXTRA_DIST+= wolfssl64.sln
|
2012-12-20 18:29:25 -08:00
|
|
|
EXTRA_DIST+= valgrind-error.sh
|
2020-08-10 13:15:20 +10:00
|
|
|
EXTRA_DIST+= valgrind-bash.supp
|
2019-06-25 11:38:09 -07:00
|
|
|
EXTRA_DIST+= fips-hash.sh
|
2013-01-28 17:15:28 -07:00
|
|
|
EXTRA_DIST+= gencertbuf.pl
|
2014-10-22 14:26:20 -06:00
|
|
|
EXTRA_DIST+= README.md
|
2018-06-21 12:22:27 -06:00
|
|
|
EXTRA_DIST+= README
|
2018-06-06 10:56:24 -07:00
|
|
|
EXTRA_DIST+= ChangeLog.md
|
2014-10-22 14:26:20 -06:00
|
|
|
EXTRA_DIST+= LICENSING
|
2015-02-26 13:48:57 -08:00
|
|
|
EXTRA_DIST+= INSTALL
|
2019-06-19 09:32:56 +09:00
|
|
|
EXTRA_DIST+= LPCExpresso.cproject
|
|
|
|
|
EXTRA_DIST+= LPCExpresso.project
|
2018-11-02 11:30:29 -07:00
|
|
|
EXTRA_DIST+= resource.h wolfssl.rc
|
2020-01-16 09:08:57 -08:00
|
|
|
EXTRA_DIST+= CMakeLists.txt
|
2025-06-20 11:24:58 -07:00
|
|
|
EXTRA_DIST+= CMakePresets.json
|
|
|
|
|
EXTRA_DIST+= CMakeSettings.json
|
2022-12-12 08:39:42 -08:00
|
|
|
EXTRA_DIST+= m4/ax_atomic.m4
|
2015-09-28 10:06:30 -06:00
|
|
|
|
2020-10-21 13:41:02 -05:00
|
|
|
include cmake/include.am
|
2015-11-19 20:51:32 -07:00
|
|
|
include wrapper/include.am
|
2014-12-29 10:27:03 -07:00
|
|
|
include wolfssl/include.am
|
2011-08-24 15:54:58 -07:00
|
|
|
include certs/include.am
|
|
|
|
|
include doc/include.am
|
2022-12-15 15:11:14 -05:00
|
|
|
include Docker/include.am
|
2011-02-08 12:52:19 -08:00
|
|
|
|
2011-04-26 17:45:41 -07:00
|
|
|
include src/include.am
|
2013-08-06 11:29:37 -07:00
|
|
|
include support/include.am
|
2014-12-29 10:27:03 -07:00
|
|
|
include wolfcrypt/benchmark/include.am
|
|
|
|
|
include wolfcrypt/src/include.am
|
|
|
|
|
include wolfcrypt/test/include.am
|
2015-10-14 19:13:45 -07:00
|
|
|
include examples/include.am
|
2011-04-26 17:45:41 -07:00
|
|
|
include testsuite/include.am
|
2011-12-14 09:20:46 -08:00
|
|
|
include tests/include.am
|
2011-04-26 17:45:41 -07:00
|
|
|
include sslSniffer/sslSnifferTest/include.am
|
2023-08-09 00:39:55 +02:00
|
|
|
include debian/include.am
|
2012-10-20 04:42:34 -04:00
|
|
|
include rpm/include.am
|
2020-08-24 13:50:18 -05:00
|
|
|
include linuxkm/include.am
|
2025-11-18 01:28:08 -06:00
|
|
|
include bsdkm/include.am
|
2023-03-02 23:34:51 -05:00
|
|
|
include zephyr/include.am
|
2023-02-08 19:04:53 -05:00
|
|
|
include RTOS/nuttx/include.am
|
2016-11-22 11:25:40 -08:00
|
|
|
|
2016-11-29 13:29:19 -08:00
|
|
|
# Exclude references to non-DFSG sources from build files
|
|
|
|
|
if !BUILD_DISTRO
|
2013-01-31 10:20:29 -07:00
|
|
|
include mqx/util_lib/Sources/include.am
|
2015-03-18 18:18:09 -06:00
|
|
|
include mqx/wolfcrypt_benchmark/Sources/include.am
|
|
|
|
|
include mqx/wolfcrypt_test/Sources/include.am
|
|
|
|
|
include mqx/wolfssl/include.am
|
|
|
|
|
include mqx/wolfssl_client/Sources/include.am
|
2013-12-02 15:31:48 -07:00
|
|
|
include mplabx/include.am
|
2015-02-19 22:07:10 +09:00
|
|
|
include mplabx/wolfcrypt_benchmark.X/nbproject/include.am
|
|
|
|
|
include mplabx/wolfcrypt_test.X/nbproject/include.am
|
|
|
|
|
include mplabx/wolfssl.X/nbproject/include.am
|
2013-03-20 10:14:06 -07:00
|
|
|
include mcapi/include.am
|
2015-02-19 22:07:10 +09:00
|
|
|
include mcapi/wolfcrypt_mcapi.X/nbproject/include.am
|
|
|
|
|
include mcapi/wolfcrypt_test.X/nbproject/include.am
|
|
|
|
|
include mcapi/wolfssl.X/nbproject/include.am
|
2013-03-28 11:12:19 -06:00
|
|
|
include mcapi/zlib.X/nbproject/include.am
|
2014-07-29 16:34:12 -07:00
|
|
|
include tirtos/include.am
|
2015-06-20 14:57:31 -07:00
|
|
|
include IDE/include.am
|
2016-11-22 11:25:40 -08:00
|
|
|
endif
|
2015-04-18 08:35:47 -07:00
|
|
|
include scripts/include.am
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2020-08-17 11:49:09 -05:00
|
|
|
if BUILD_LINUXKM
|
2020-09-09 20:48:40 -05:00
|
|
|
# rather than setting $SUBDIRS here directly, we set an auxiliary variable.
|
2023-01-25 23:45:21 -06:00
|
|
|
# autotools sees the SUBDIRS assignment here even if BUILD_LINUXKM is false,
|
2020-09-09 20:48:40 -05:00
|
|
|
# at least for purposes of recursing for "make distdir", which we don't want to happen.
|
|
|
|
|
SUBDIRS_OPT += linuxkm
|
|
|
|
|
DIST_SUBDIRS_OPT += linuxkm
|
|
|
|
|
|
2024-07-16 14:24:37 -05:00
|
|
|
export build_triplet host_triplet CC AS LD \
|
|
|
|
|
KERNEL_ROOT KERNEL_ARCH KERNEL_EXTRA_CFLAGS \
|
2023-01-25 23:45:21 -06:00
|
|
|
EXTRA_CFLAGS EXTRA_CPPFLAGS EXTRA_CCASFLAGS EXTRA_LDFLAGS \
|
|
|
|
|
AM_CPPFLAGS CPPFLAGS AM_CFLAGS CFLAGS \
|
|
|
|
|
AM_CCASFLAGS CCASFLAGS \
|
wolfcrypt/src/aes.c: in wc_AesSetKeyLocal(), rework support for WC_FLAG_DONT_USE_AESNI (fixes WC_C_DYNAMIC_FALLBACK).
wolfssl/wolfcrypt/settings.h: in WOLFSSL_LINUXKM section, #ifdef LINUXKM_LKCAPI_REGISTER, #define WOLFSSL_TEST_SUBROUTINE to nothing, and #define WC_TEST_EXPORT_SUBTESTS.
linuxkm/lkcapi_glue.c:
* add check_skcipher_driver_masking() and check_aead_driver_masking(),
* use _masking() checks in all linuxkm_test_*().
* add !WOLFSSL_AESGCM_STREAM implementation of linuxkm_test_aesgcm().
* add implementations of linuxkm_test_aesctr(), linuxkm_test_aesofb(), and linuxkm_test_aesecb()
* remove incomplete+disabled AES-CCM shim implementation.
linuxkm/module_hooks.c: pull in wolfcrypt/test/test.h if LINUXKM_LKCAPI_REGISTER.
linuxkm/Makefile: build wolfcrypt/test/test.o if ENABLED_LINUXKM_LKCAPI_REGISTER.
Makefile.am: add ENABLED_LINUXKM_LKCAPI_REGISTER to exports in BUILD_LINUXKM section.
configure.ac: add AC_SUBST([ENABLED_LINUXKM_LKCAPI_REGISTER]); in ENABLED_LINUXKM_DEFAULTS set up, remove `-DWOLFSSL_TEST_SUBROUTINE=static` from AM_CFLAGS adds; fix whitespace.
.wolfssl_known_macro_extras: add WC_WANT_FLAG_DONT_USE_AESNI.
wolfcrypt/test/test.c: add `|| defined(WC_TEST_EXPORT_SUBTESTS)` to outermost gate, add wc_test_ prefix to render_error_message() and export it,
wolfcrypt/test/test.h: add prototype for wc_test_render_error_message(), and #ifdef WC_TEST_EXPORT_SUBTESTS, add prototypes for all the subtests.
2025-04-01 01:17:10 -05:00
|
|
|
src_libwolfssl_la_OBJECTS ENABLED_CRYPT_TESTS ENABLED_LINUXKM_LKCAPI_REGISTER \
|
|
|
|
|
ENABLED_LINUXKM_PIE ENABLED_ASM \
|
2021-08-19 11:15:52 -05:00
|
|
|
CFLAGS_FPU_DISABLE CFLAGS_FPU_ENABLE CFLAGS_SIMD_DISABLE CFLAGS_SIMD_ENABLE \
|
2020-09-08 23:09:34 -05:00
|
|
|
CFLAGS_AUTO_VECTORIZE_DISABLE CFLAGS_AUTO_VECTORIZE_ENABLE \
|
|
|
|
|
ASFLAGS_FPU_DISABLE_SIMD_ENABLE ASFLAGS_FPU_ENABLE_SIMD_DISABLE \
|
2025-11-18 01:28:08 -06:00
|
|
|
ASFLAGS_FPUSIMD_DISABLE ASFLAGS_FPUSIMD_ENABLE ENABLED_KERNEL_BENCHMARKS
|
2020-11-04 14:13:39 -06:00
|
|
|
|
|
|
|
|
module:
|
2021-08-19 11:15:52 -05:00
|
|
|
+$(MAKE) -C linuxkm libwolfssl.ko
|
2020-11-04 14:13:39 -06:00
|
|
|
|
2025-09-16 14:38:51 -05:00
|
|
|
module-update-fips-hash:
|
|
|
|
|
+$(MAKE) -C linuxkm module-update-fips-hash
|
|
|
|
|
|
2020-11-04 14:13:39 -06:00
|
|
|
clean_module:
|
2021-08-19 11:15:52 -05:00
|
|
|
+$(MAKE) -C linuxkm clean
|
2020-11-04 14:13:39 -06:00
|
|
|
|
|
|
|
|
install_module modules_install:
|
2021-08-19 11:15:52 -05:00
|
|
|
+$(MAKE) -C linuxkm modules_install
|
2020-11-04 14:13:39 -06:00
|
|
|
|
2020-08-17 11:49:09 -05:00
|
|
|
endif
|
|
|
|
|
|
2025-11-18 01:28:08 -06:00
|
|
|
if BUILD_BSDKM
|
|
|
|
|
SUBDIRS_OPT += bsdkm
|
|
|
|
|
DIST_SUBDIRS_OPT += bsdkm
|
|
|
|
|
|
|
|
|
|
.MAKE.EXPORTED = build_triplet host_triplet CC AS LD \
|
|
|
|
|
KERNEL_ROOT BSDKM_EXPORT_SYMS KERNEL_EXTRA_CFLAGS \
|
|
|
|
|
EXTRA_CFLAGS EXTRA_CPPFLAGS EXTRA_CCASFLAGS EXTRA_LDFLAGS \
|
|
|
|
|
AM_CPPFLAGS CPPFLAGS AM_CFLAGS CFLAGS \
|
|
|
|
|
AM_CCASFLAGS CCASFLAGS \
|
|
|
|
|
src_libwolfssl_la_OBJECTS ENABLED_CRYPT_TESTS
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
2012-12-04 21:28:18 -08:00
|
|
|
if USE_VALGRIND
|
|
|
|
|
TESTS_ENVIRONMENT=./valgrind-error.sh
|
|
|
|
|
endif
|
|
|
|
|
|
2014-03-06 21:34:33 -08:00
|
|
|
TEST_EXTENSIONS=.test
|
2014-07-14 15:19:31 -07:00
|
|
|
TESTS += $(check_PROGRAMS)
|
2015-04-18 08:35:47 -07:00
|
|
|
|
|
|
|
|
check_SCRIPTS+= $(dist_noinst_SCRIPTS)
|
|
|
|
|
TESTS += $(check_SCRIPTS)
|
|
|
|
|
|
2011-08-24 15:54:58 -07:00
|
|
|
test: check
|
2014-03-07 14:29:37 -08:00
|
|
|
tests/unit.log: testsuite/testsuite.log
|
2020-09-16 22:38:40 -05:00
|
|
|
scripts/unit.log: testsuite/testsuite.log
|
2011-04-29 15:20:23 -07:00
|
|
|
|
2015-01-05 16:58:28 -07:00
|
|
|
DISTCLEANFILES+= wolfssl-config
|
2012-12-06 10:01:01 -08:00
|
|
|
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/async.h
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/fips.h
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/intel/quickassist.h
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/intel/quickassist_mem.h
|
|
|
|
|
|
2020-09-09 20:48:40 -05:00
|
|
|
SUBDIRS=$(SUBDIRS_OPT)
|
|
|
|
|
DIST_SUBDIRS=$(DIST_SUBDIRS_OPT)
|
|
|
|
|
|
2012-10-19 00:30:21 -04:00
|
|
|
maintainer-clean-local:
|
|
|
|
|
-rm Makefile.in
|
|
|
|
|
-rm aclocal.m4
|
2012-10-26 00:35:52 -04:00
|
|
|
-rm build-aux/compile
|
2012-10-19 00:30:21 -04:00
|
|
|
-rm build-aux/config.guess
|
|
|
|
|
-rm build-aux/config.sub
|
|
|
|
|
-rm build-aux/depcomp
|
|
|
|
|
-rm build-aux/install-sh
|
|
|
|
|
-rm build-aux/ltmain.sh
|
|
|
|
|
-rm build-aux/missing
|
|
|
|
|
-rmdir build-aux
|
|
|
|
|
-rm configure
|
|
|
|
|
-rm config.log
|
|
|
|
|
-rm config.status
|
|
|
|
|
-rm config.in
|
|
|
|
|
-rm m4/libtool.m4
|
|
|
|
|
-rm m4/ltoptions.m4
|
|
|
|
|
-rm m4/ltsugar.m4
|
|
|
|
|
-rm m4/ltversion.m4
|
|
|
|
|
-rm m4/lt~obsolete.m4
|
2015-01-01 07:33:07 -07:00
|
|
|
-rm support/wolfssl.pc
|
2012-10-19 00:30:21 -04:00
|
|
|
find . -type f -name '*~' -exec rm -f '{}' \;
|
|
|
|
|
-rm -f @PACKAGE@-*.tar.gz
|
|
|
|
|
-rm -f @PACKAGE@-*.rpm
|
|
|
|
|
|
2011-02-05 11:14:47 -08:00
|
|
|
# !!!! first line of rule has to start with a hard (real) tab, not spaces
|
2011-09-28 12:10:07 -07:00
|
|
|
egs:
|
|
|
|
|
$(MAKE) examples/client/client; \
|
|
|
|
|
$(MAKE) examples/echoclient/echoclient;\
|
|
|
|
|
$(MAKE) examples/server/server; \
|
|
|
|
|
$(MAKE) examples/echoserver/echoserver;
|
|
|
|
|
|
2015-02-23 12:23:16 -08:00
|
|
|
wc_egs:
|
|
|
|
|
$(MAKE) wolfcrypt/test/testwolfcrypt; \
|
|
|
|
|
$(MAKE) wolfcrypt/benchmark/benchmark;
|
2011-08-24 15:54:58 -07:00
|
|
|
|
2012-10-26 02:06:06 -04:00
|
|
|
install-exec-local: install-generic-config
|
|
|
|
|
|
|
|
|
|
install-generic-config:
|
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
|
|
|
|
$(INSTALL_SCRIPT) @GENERIC_CONFIG@ $(DESTDIR)$(bindir)
|
|
|
|
|
|
2013-01-15 13:21:26 -08:00
|
|
|
uninstall-local:
|
|
|
|
|
-rm -f $(DESTDIR)$(bindir)/@GENERIC_CONFIG@
|
|
|
|
|
|
2011-08-24 15:54:58 -07:00
|
|
|
merge-clean:
|
|
|
|
|
@find ./ | $(GREP) \.gcda | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.gcno | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.gz | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.orig | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.rej | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.rpm | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.THIS | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.OTHER | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \.BASE | xargs rm -f
|
|
|
|
|
@find ./ | $(GREP) \~$$ | xargs rm -f
|
2018-04-20 11:07:57 -07:00
|
|
|
|
2024-04-23 11:26:27 -04:00
|
|
|
%.o: %.cu
|
|
|
|
|
$(NVCC) -dc $(CUDAFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
|
|
.cu.lo:
|
|
|
|
|
$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) --compile -o $@ $< -static
|