1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= ssl 6SHLIB_MAJOR= 30 7VERSION_MAP= ${.CURDIR}/Version.map 8PACKAGE= openssl-lib 9 10NO_LINT= 11 12PCFILES= libssl.pc openssl.pc 13 14.include "../libcrypto/Makefile.inc" 15 16SRCS= bio_ssl.c d1_lib.c d1_msg.c d1_srtp.c methods.c pqueue.c 17SRCS+= s3_cbc.c s3_enc.c s3_lib.c s3_msg.c ssl_asn1.c ssl_cert.c ssl_ciph.c 18SRCS+= ssl_conf.c ssl_err.c ssl_err_legacy.c ssl_init.c ssl_lib.c ssl_mcnf.c 19SRCS+= ssl_rsa.c ssl_rsa_legacy.c ssl_sess.c ssl_stat.c ssl_txt.c ssl_utst.c 20SRCS+= t1_enc.c t1_lib.c t1_trce.c tls_depr.c tls_srp.c tls13_enc.c 21 22# crypto 23SRCS+= packet.c sparse_array.c 24 25# record 26SRCS+= dtls1_bitmap.c rec_layer_d1.c rec_layer_s3.c ssl3_buffer.c 27SRCS+= ssl3_record.c ssl3_record_tls13.c tls_pad.c 28 29# statem 30SRCS+= extensions.c extensions_clnt.c extensions_cust.c extensions_srvr.c 31SRCS+= statem.c statem_clnt.c statem_dtls.c statem_lib.c statem_srvr.c 32 33.if ${MK_OPENSSL_KTLS} != "no" 34SRCS+= ktls.c 35.else 36CFLAGS+=-DOPENSSL_NO_KTLS 37.endif 38 39LIBADD= crypto 40 41CFLAGS+= -I${LCRYPTO_SRC}/ssl 42CFLAGS+= -I${.OBJDIR:H}/libcrypto 43 44.include <bsd.lib.mk> 45 46PICFLAG+= -DOPENSSL_PIC 47 48.PATH: ${LCRYPTO_SRC}/crypto \ 49 ${LCRYPTO_SRC}/ssl \ 50 ${LCRYPTO_SRC}/ssl/record \ 51 ${LCRYPTO_SRC}/ssl/statem 52