# # Top-level Makefile for building various versions of MatrixSSL. # # Copyright (c) 2016 INSIDE Secure Corporation. All Rights Reserved. # # # A list of the most important build targets provided by this Makefile: # Make command Description # make all Default target: Build all software using current # MatrixSSL configuration # make libs Build MatrixSSL libraries using current # MatrixSSL configuration # make tests Build MatrixSSL test programs using current # MatrixSSL configuration # make apps Build MatrixSSL example programs using current # MatrixSSL configuration # make check-config Apply default configuration if not present. # make *-config (Specify *) select one of prepackaged configurations # from configs directory. # # Additional targets for MatrixSSL Open Source and Commercial Editions # # make all-tls Build MatrixSSL using options suitable for most # TLS use cases and the MatrixSSL stock crypto. # make all-noecc Build MatrixSSL using options that disable ECC, # using the MatrixSSL stock crypto. # make all-rsaonly Build MatrixSSL using options that disable ECC and DH, # using the MatrixSSL stock crypto. # # Additional targets for MatrixSSL FIPS Edition # # make all-fips Compile MatrixSSL FIPS Edition with default # configuration. # make all-cl-nonfips Compile MatrixSSL FIPS Edition using CL library in # non-FIPS Mode of operation. # make all-combined Compile MatrixSSL FIPS Edition allowing run-time # selection of FIPS or non-FIPS mode. # make all-combined-default-nonfips The same than make all combined, but # non-FIPS mode is the default. # # default: all util: all-utils CONFIG_EXTRA_DEPENDENCIES= # Use default config if no config is being used. check-config: $(CONFIG_EXTRA_DEPENDENCIES) @if [ ! -e core/coreConfig.h ];then \ cp configs/default/coreConfig.h core/coreConfig.h;\ echo NOTE: Using default configuration from configs/default/coreConfig.h.;\ fi @if [ ! -e crypto/cryptoConfig.h ];then \ cp configs/default/cryptoConfig.h crypto/cryptoConfig.h;\ echo NOTE: Using default configuration from configs/default/cryptoConfig.h.;\ fi @if [ ! -e matrixssl/matrixsslConfig.h ];then \ cp configs/default/matrixsslConfig.h matrixssl/matrixsslConfig.h;\ echo NOTE: Using default configuration from configs/default/matrixsslConfig.h.;\ fi clean-config: rm -f core/coreConfig.h crypto/cryptoConfig.h matrixssl/matrixsslConfig.h # Apply any of pre-existing configurations from configs directory %-config: configs/% $(CONFIG_EXTRA_DEPENDENCIES) @echo Using $