Prepare library split

This commit is contained in:
Manuel Pégourié-Gonnard 2015-06-24 11:54:19 +02:00
parent bae389b4d4
commit 463e09d64b
2 changed files with 110 additions and 97 deletions

View file

@ -2,7 +2,7 @@ option(USE_STATIC_MBEDTLS_LIBRARY "Build mbed TLS static library." ON)
option(USE_SHARED_MBEDTLS_LIBRARY "Build mbed TLS shared library." OFF) option(USE_SHARED_MBEDTLS_LIBRARY "Build mbed TLS shared library." OFF)
option(LINK_WITH_PTHREAD "Explicitly link mbed TLS library to pthread." OFF) option(LINK_WITH_PTHREAD "Explicitly link mbed TLS library to pthread." OFF)
set(src set(src_crypto
aes.c aes.c
aesni.c aesni.c
arc4.c arc4.c
@ -13,17 +13,15 @@ set(src
blowfish.c blowfish.c
camellia.c camellia.c
ccm.c ccm.c
certs.c
cipher.c cipher.c
cipher_wrap.c cipher_wrap.c
ctr_drbg.c ctr_drbg.c
debug.c
des.c des.c
dhm.c dhm.c
ecp.c
ecp_curves.c
ecdh.c ecdh.c
ecdsa.c ecdsa.c
ecp.c
ecp_curves.c
entropy.c entropy.c
entropy_poll.c entropy_poll.c
error.c error.c
@ -31,20 +29,18 @@ set(src
havege.c havege.c
hmac_drbg.c hmac_drbg.c
md.c md.c
md_wrap.c
md2.c md2.c
md4.c md4.c
md5.c md5.c
md_wrap.c
memory_buffer_alloc.c memory_buffer_alloc.c
net.c
oid.c oid.c
padlock.c padlock.c
pem.c pem.c
pkcs5.c
pkcs11.c
pkcs12.c
pk.c pk.c
pk_wrap.c pk_wrap.c
pkcs12.c
pkcs5.c
pkparse.c pkparse.c
pkwrite.c pkwrite.c
platform.c platform.c
@ -53,25 +49,41 @@ set(src
sha1.c sha1.c
sha256.c sha256.c
sha512.c sha512.c
ssl_cache.c
ssl_cookie.c
ssl_ticket.c
ssl_ciphersuites.c
ssl_cli.c
ssl_srv.c
ssl_tls.c
threading.c threading.c
timing.c
version.c version.c
version_features.c version_features.c
xtea.c
)
set(src_x509
certs.c
pkcs11.c
x509.c x509.c
x509_crt.c
x509_crl.c
x509_csr.c
x509_create.c x509_create.c
x509_crl.c
x509_crt.c
x509_csr.c
x509write_crt.c x509write_crt.c
x509write_csr.c x509write_csr.c
xtea.c )
set(src_tls
debug.c
net.c
ssl_cache.c
ssl_ciphersuites.c
ssl_cli.c
ssl_cookie.c
ssl_srv.c
ssl_ticket.c
ssl_tls.c
timing.c
)
set(src
${src_crypto}
${src_x509}
${src_tls}
) )
if(WIN32) if(WIN32)

View file

@ -42,34 +42,35 @@ ifdef WINDOWS_BUILD
DLEXT=dll DLEXT=dll
endif endif
OBJS= aes.o aesni.o arc4.o \ OBJS_CRYPTO= aes.o aesni.o arc4.o \
asn1parse.o \ asn1parse.o asn1write.o base64.o \
asn1write.o base64.o bignum.o \ bignum.o blowfish.o camellia.o \
blowfish.o camellia.o ccm.o \ ccm.o cipher.o cipher_wrap.o \
certs.o cipher.o cipher_wrap.o \ ctr_drbg.o des.o dhm.o \
ctr_drbg.o debug.o des.o \ ecdh.o ecdsa.o ecp.o \
dhm.o ecdh.o ecdsa.o \ ecp_curves.o entropy.o entropy_poll.o \
ecp.o ecp_curves.o \
entropy.o entropy_poll.o \
error.o gcm.o havege.o \ error.o gcm.o havege.o \
hmac_drbg.o \ hmac_drbg.o md.o md2.o \
md.o md_wrap.o md2.o \ md4.o md5.o md_wrap.o \
md4.o md5.o \ memory_buffer_alloc.o oid.o \
memory_buffer_alloc.o net.o \ padlock.o pem.o pk.o \
oid.o padlock.o pem.o \ pk_wrap.o pkcs12.o pkcs5.o \
pkcs5.o pkcs11.o pkcs12.o \ pkparse.o pkwrite.o platform.o \
pk.o pk_wrap.o pkparse.o \ ripemd160.o rsa.o sha1.o \
pkwrite.o platform.o ripemd160.o \ sha256.o sha512.o threading.o \
rsa.o sha1.o sha256.o \ timing.o version.o \
sha512.o ssl_cache.o ssl_cli.o \ version_features.o xtea.o
ssl_cookie.o ssl_ticket.o \
ssl_srv.o ssl_ciphersuites.o \ OBJS_X509= certs.o pkcs11.o x509.o \
ssl_tls.o threading.o timing.o \ x509_create.o x509_crl.o x509_crt.o \
version.o version_features.o \ x509_csr.o x509write_crt.o x509write_csr.o
x509.o x509_create.o \
x509_crl.o x509_crt.o x509_csr.o \ OBJS_TLS= debug.o net.o ssl_cache.o \
x509write_crt.o x509write_csr.o \ ssl_ciphersuites.o ssl_cli.o \
xtea.o ssl_cookie.o ssl_srv.o ssl_ticket.o \
ssl_tls.o
OBJS=$(OBJS_CRYPTO) $(OBJS_X509) $(OBJS_TLS)
.SILENT: .SILENT: