mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-08 00:03:38 -04:00
Silent rule;NTRU build;Darwin test program build updates
This commit is contained in:
parent
baab63ab88
commit
f6d08ccccb
@ -3,22 +3,23 @@
|
||||
autoreconf -i
|
||||
enable_disable_str=
|
||||
if [[ ${USE_OPENSSL} == 1 ]];then
|
||||
enable_disable_str="--enable-openssl"
|
||||
enable_disable_str=" --enable-openssl"
|
||||
fi
|
||||
|
||||
if [[ ${AES_NI} == 0 ]];then
|
||||
enable_disable_str=${enable_disable_str}" --disable-aes-ni"
|
||||
enable_disable_str+=" --disable-aes-ni"
|
||||
fi
|
||||
|
||||
if [[ ${ENABLE_CODE_MCBITS} == 1 ]];then
|
||||
enable_disable_str="--enable-mcbits"
|
||||
enable_disable_str+=" --enable-mcbits"
|
||||
fi
|
||||
|
||||
if [[ ${ENABLE_NTRU} == 1 ]];then
|
||||
enable_disable_str="--enable-ntru"
|
||||
enable_disable_str+=" --enable-ntru"
|
||||
./download-and-build-ntru.sh
|
||||
fi
|
||||
|
||||
./configure ${enable_disable_str}
|
||||
./configure --enable-silent-rules ${enable_disable_str}
|
||||
make clean
|
||||
make
|
||||
make test
|
||||
|
14
Makefile.am
14
Makefile.am
@ -67,8 +67,15 @@ endif
|
||||
endif
|
||||
|
||||
|
||||
test:
|
||||
$(foreach s,$(ALLDIRS),make test -s -C $(s);)
|
||||
test: clean-tests
|
||||
make
|
||||
if USE_NTRU
|
||||
if ON_DARWIN
|
||||
install_name_tool -change `otool -L ./test_kex | grep "/usr/local" | awk -F ' ' '{ print $$1 }'` external/NTRUEncrypt-master/.libs/libntruencrypt.0.dylib ./test_kex
|
||||
install_name_tool -change `otool -L ./test_aes | grep "/usr/local" | awk -F ' ' '{ print $$1 }'` external/NTRUEncrypt-master/.libs/libntruencrypt.0.dylib ./test_aes
|
||||
install_name_tool -change `otool -L ./test_rand | grep "/usr/local" | awk -F ' ' '{ print $$1 }'` external/NTRUEncrypt-master/.libs/libntruencrypt.0.dylib ./test_rand
|
||||
endif
|
||||
endif
|
||||
./test_kex
|
||||
./test_rand
|
||||
./test_aes
|
||||
@ -98,6 +105,9 @@ endif
|
||||
clean-local:
|
||||
rm -f liboqs.a
|
||||
|
||||
clean-tests:
|
||||
rm -f test_kex test_rand test_aes
|
||||
|
||||
prettyprint:
|
||||
find src -name '*.c' -o -name '*.h' | xargs $(CLANGFORMAT) -style=file -i
|
||||
|
||||
|
@ -77,6 +77,7 @@ AC_CANONICAL_HOST
|
||||
case $host_os in
|
||||
darwin* )
|
||||
OPENSSL_DIR=/usr/local/opt/openssl
|
||||
AM_CONDITIONAL([ON_DARWIN], [test xtrue = xtrue])
|
||||
;;
|
||||
linux*)
|
||||
OPENSSL_DIR=/usr
|
||||
@ -126,6 +127,8 @@ AC_SUBST(USE_OPENSSL)
|
||||
AC_SUBST(USE_AES_NI)
|
||||
AC_SUBST(USE_NTRU)
|
||||
AC_SUBST(USE_MCBITS)
|
||||
AC_SUBST(ON_DARWIN)
|
||||
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
src/common/Makefile
|
||||
|
Loading…
x
Reference in New Issue
Block a user