1# $FreeBSD$ 2 3.include "../libcrypto/Makefile.inc" 4 5LOPENSSL_SRC= ${.CURDIR}/../../../crypto/openssl/ssl 6 7.PATH: ${LOPENSSL_SRC} 8 9LIB= ssl 10SHLIB_MAJOR= 1 11 12MAINTAINER= kris 13 14SRCS= bio_ssl.c s23_clnt.c s23_lib.c s23_meth.c s23_pkt.c s23_srvr.c \ 15 s2_clnt.c s2_enc.c s2_lib.c s2_meth.c s2_pkt.c s2_srvr.c s3_both.c \ 16 s3_clnt.c s3_enc.c s3_lib.c s3_meth.c s3_pkt.c s3_srvr.c ssl_algs.c \ 17 ssl_asn1.c ssl_cert.c ssl_ciph.c ssl_err.c ssl_err2.c ssl_lib.c \ 18 ssl_rsa.c ssl_sess.c ssl_stat.c ssl_txt.c t1_clnt.c t1_enc.c \ 19 t1_lib.c t1_meth.c t1_srvr.c 20 21HDRS= ssl.h ssl2.h ssl23.h ssl3.h ssl_locl.h tls1.h 22 23.for h in ${HDRS} 24BUILD_HDRS_OPENSSL+= ${LOPENSSL_SRC}/${h} 25.endfor 26 27CRYPTOHDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \ 28 buffer/buffer.h cast/cast.h comp/comp.h conf/conf.h crypto.h \ 29 des/des.h dh/dh.h dsa/dsa.h ../e_os.h ../e_os2.h ebcdic.h \ 30 err/err.h evp/evp.h hmac/hmac.h lhash/lhash.h md2/md2.h \ 31 md5/md5.h mdc2/mdc2.h objects/objects.h opensslv.h pem/pem.h \ 32 pem/pem2.h pkcs12/pkcs12.h pkcs7/pkcs7.h rand/rand.h rc2/rc2.h \ 33 rc4/rc4.h rc5/rc5.h ripemd/ripemd.h rsa/rsa.h stack/safestack.h \ 34 sha/sha.h stack/stack.h tmdiff.h txt_db/txt_db.h x509/x509.h \ 35 x509/x509_vfy.h x509v3/x509v3.h 36 37.for h in ${CRYPTOHDRS} 38BUILD_HDRS_CRYPTO+= ${LCRYPTO_SRC}/${h} 39.endfor 40 41# this bogus header was the easiest way to get the openssl/ 42# directory populated 43SRCS+= openssl/headers-copied.h 44CLEANDIRS+= openssl 45 46openssl/opensslconf.h: ${.CURDIR}/../libcrypto/opensslconf-${MACHINE_ARCH}.h 47 @test -d openssl || mkdir -p openssl 48 cp ${.OODATE} ${.TARGET} 49 50openssl/headers-copied.h: openssl/opensslconf.h 51 @test -d openssl || mkdir -p openssl 52 ${INSTALL} ${COPY} -m 444 \ 53 ${BUILD_HDRS_OPENSSL} ${BUILD_HDRS_CRYPTO} \ 54 openssl 55 @touch ${.TARGET} 56 57beforeinstall: 58 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 59 ${BUILD_HDRS_OPENSSL} \ 60 ${DESTDIR}/usr/include/openssl 61 62.include <bsd.lib.mk> 63