1# $FreeBSD$ 2 3LIB= crypto 4SHLIB_MAJOR= 3 5 6NOLINT= true 7 8.if exists(Makefile.man) 9.include "Makefile.man" 10.endif 11.if defined(NOTYET) 12MAN+= config.5 des_modes.7 13.endif 14 15.include "Makefile.inc" 16 17# base sources 18SRCS+= cpt_err.c cryptlib.c cversion.c ebcdic.c ex_data.c mem.c mem_clr.c \ 19 mem_dbg.c o_time.c tmdiff.c uid.c 20 21# aes 22SRCS+= aes_cbc.c aes_cfb.c aes_core.c aes_ctr.c aes_ecb.c aes_misc.c aes_ofb.c 23 24# asn1 25SRCS+= a_bitstr.c a_bool.c a_bytes.c a_d2i_fp.c a_digest.c \ 26 a_dup.c a_enum.c a_gentm.c a_hdr.c a_i2d_fp.c a_int.c \ 27 a_mbstr.c a_meth.c a_object.c a_octet.c a_print.c \ 28 a_set.c a_sign.c a_strex.c a_strnid.c a_time.c a_type.c \ 29 a_utctm.c a_utf8.c a_verify.c asn1_err.c asn1_lib.c \ 30 asn1_par.c asn_moid.c asn_pack.c d2i_pr.c d2i_pu.c \ 31 evp_asn1.c f_enum.c f_int.c f_string.c i2d_pr.c i2d_pu.c \ 32 n_pkey.c nsseq.c p5_pbe.c p5_pbev2.c p8_pkey.c t_bitst.c \ 33 t_crl.c t_pkey.c t_req.c t_spki.c t_x509.c t_x509a.c \ 34 tasn_dec.c tasn_enc.c tasn_fre.c tasn_new.c tasn_typ.c \ 35 tasn_utl.c x_algor.c x_attrib.c x_bignum.c x_crl.c \ 36 x_exten.c x_info.c x_long.c x_name.c x_pkey.c x_pubkey.c \ 37 x_req.c x_sig.c x_spki.c x_val.c x_x509.c x_x509a.c 38 39# bf 40SRCS+= bf_cfb64.c bf_ecb.c bf_enc.c bf_ofb64.c bf_skey.c 41 42# bio 43SRCS+= b_dump.c b_print.c b_sock.c bf_buff.c bf_lbuf.c bf_nbio.c \ 44 bf_null.c bio_cb.c bio_err.c bio_lib.c bss_acpt.c bss_bio.c \ 45 bss_conn.c bss_fd.c bss_file.c bss_log.c bss_mem.c \ 46 bss_null.c bss_sock.c 47 48# bn 49SRCS+= bn_add.c bn_asm.c bn_blind.c bn_ctx.c bn_div.c bn_err.c bn_exp.c \ 50 bn_exp2.c bn_gcd.c bn_kron.c bn_lib.c bn_mod.c bn_mont.c \ 51 bn_mpi.c bn_mul.c bn_prime.c bn_print.c bn_rand.c bn_recp.c \ 52 bn_shift.c bn_sqr.c bn_sqrt.c bn_word.c 53 54# buffer 55SRCS+= buf_err.c buffer.c 56 57# cast 58SRCS+= c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c 59 60# comp 61SRCS+= c_rle.c c_zlib.c comp_err.c comp_lib.c 62 63# conf 64SRCS+= conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c conf_sap.c 65 66# des 67SRCS+= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \ 68 des_enc.c des_old.c des_old2.c ecb3_enc.c ecb_enc.c ede_cbcm_enc.c \ 69 enc_read.c enc_writ.c fcrypt.c fcrypt_b.c ofb64ede.c ofb64enc.c \ 70 ofb_enc.c pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c \ 71 rpc_enc.c set_key.c str2key.c xcbc_enc.c 72 73# dh 74SRCS+= dh_asn1.c dh_check.c dh_err.c dh_gen.c dh_key.c dh_lib.c 75 76# dsa 77SRCS+= dsa_asn1.c dsa_err.c dsa_gen.c dsa_key.c dsa_lib.c dsa_ossl.c dsa_sign.c dsa_vrf.c 78 79# dso 80SRCS+= dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c dso_openssl.c 81 82# ec 83SRCS+= ec_cvt.c ec_err.c ec_lib.c ec_mult.c ecp_mont.c ecp_nist.c \ 84 ecp_recp.c ecp_smpl.c 85 86# engine 87SRCS+= eng_all.c eng_cnf.c eng_ctrl.c eng_dyn.c eng_err.c eng_fat.c \ 88 eng_init.c eng_lib.c eng_list.c eng_openssl.c eng_pkey.c \ 89 eng_table.c hw_4758_cca.c hw_4758_cca_err.c hw_aep.c hw_aep_err.c \ 90 hw_atalla.c hw_atalla_err.c hw_cryptodev.c hw_cswift.c \ 91 hw_cswift_err.c hw_ncipher.c hw_ncipher_err.c hw_nuron.c \ 92 hw_nuron_err.c hw_sureware.c hw_sureware_err.c hw_ubsec.c \ 93 hw_ubsec_err.c tb_cipher.c tb_dh.c tb_digest.c tb_dsa.c tb_rand.c \ 94 tb_rsa.c 95 96# err 97SRCS+= err.c err_all.c err_prn.c 98 99# evp 100SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \ 101 digest.c e_aes.c e_bf.c e_cast.c e_des.c e_des3.c e_idea.c \ 102 e_null.c e_rc2.c e_rc4.c e_rc5.c e_xcbc_d.c encode.c evp_acnf.c \ 103 evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c evp_pkey.c \ 104 m_dss.c m_dss1.c m_md2.c m_md4.c m_md5.c m_mdc2.c m_null.c \ 105 m_ripemd.c m_sha.c m_sha1.c names.c openbsd_hw.c p5_crpt.c \ 106 p5_crpt2.c p_dec.c p_enc.c p_lib.c p_open.c p_seal.c p_sign.c \ 107 p_verify.c 108 109# hmac 110SRCS+= hmac.c 111 112# idea 113.if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES 114SRCS+= i_cbc.c i_cfb64.c i_ecb.c i_ofb64.c i_skey.c 115.endif 116 117# krb5 118#SRCS+= krb5_asn.c 119 120# lhash 121SRCS+= lh_stats.c lhash.c 122 123# md2 124SRCS+= md2_dgst.c md2_one.c 125 126# md4 127SRCS+= md4_dgst.c md4_one.c 128 129# md5 130SRCS+= md5_dgst.c md5_one.c 131 132# mdc2 133SRCS+= mdc2_one.c mdc2dgst.c 134 135# objects 136SRCS+= o_names.c obj_dat.c obj_err.c obj_lib.c 137 138# ocsp 139SRCS+= ocsp_asn.c ocsp_cl.c ocsp_err.c ocsp_ext.c ocsp_ht.c \ 140 ocsp_lib.c ocsp_prn.c ocsp_srv.c ocsp_vfy.c 141 142# pem 143SRCS+= pem_all.c pem_err.c pem_info.c pem_lib.c pem_oth.c pem_pk8.c \ 144 pem_pkey.c pem_seal.c pem_sign.c pem_x509.c pem_xaux.c 145 146# pkcs12 147SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c \ 148 p12_decr.c p12_init.c p12_key.c p12_kiss.c p12_mutl.c \ 149 p12_npas.c p12_p8d.c p12_p8e.c p12_utl.c pk12err.c 150 151# pkcs7 152SRCS+= example.c pk7_asn1.c pk7_attr.c pk7_dgst.c pk7_doit.c \ 153 pk7_lib.c pk7_mime.c pk7_smime.c pkcs7err.c 154 155# rand 156SRCS+= md_rand.c rand_egd.c rand_err.c rand_lib.c rand_unix.c randfile.c 157 158# rc2 159SRCS+= rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c 160 161# rc4 162SRCS+= rc4_enc.c rc4_skey.c 163 164# rc5 165SRCS+= rc5_ecb.c rc5_enc.c rc5_skey.c rc5cfb64.c rc5ofb64.c 166 167# ripemd 168SRCS+= rmd_dgst.c rmd_one.c 169 170# rsa 171SRCS+= rsa_asn1.c rsa_chk.c rsa_eay.c rsa_err.c rsa_gen.c rsa_lib.c \ 172 rsa_none.c rsa_null.c rsa_oaep.c rsa_pk1.c rsa_saos.c \ 173 rsa_sign.c rsa_ssl.c 174 175# sha 176SRCS+= sha1_one.c sha1dgst.c sha_dgst.c sha_one.c 177 178# stack 179SRCS+= stack.c 180 181# threads 182SRCS+= th-lock.c 183 184# txt_db 185SRCS+= txt_db.c 186 187# ui 188SRCS+= ui_compat.c ui_err.c ui_lib.c ui_openssl.c ui_util.c 189 190# x509 191SRCS+= by_dir.c by_file.c x509_att.c x509_cmp.c x509_d2.c \ 192 x509_def.c x509_err.c x509_ext.c x509_lu.c x509_obj.c \ 193 x509_r2x.c x509_req.c x509_set.c x509_trs.c x509_txt.c \ 194 x509_v3.c x509_vfy.c x509cset.c x509name.c x509rset.c \ 195 x509spki.c x509type.c x_all.c 196 197# x509v3 198SRCS+= v3_akey.c v3_akeya.c v3_alt.c v3_bcons.c v3_bitst.c \ 199 v3_conf.c v3_cpols.c v3_crld.c v3_enum.c v3_extku.c \ 200 v3_genn.c v3_ia5.c v3_info.c v3_int.c v3_lib.c v3_ocsp.c \ 201 v3_pku.c v3_prn.c v3_purp.c v3_skey.c v3_sxnet.c v3_utl.c v3err.c 202 203INCS= ${HDRS} openssl/evp.h openssl/opensslconf.h 204INCSDIR= ${INCLUDEDIR}/openssl 205 206OLDSYMLINKS+= libdes.a libdes.so libdes.so.3 libdes_p.a 207afterinstall: 208 @echo "Removing stale symlinks." 209 rm -f ${DESTDIR}${INCLUDEDIR}/des.h 210.for symlink in ${OLDSYMLINKS} 211 rm -f ${DESTDIR}${LIBDIR}/${symlink} 212.endfor 213 214.include <bsd.lib.mk> 215 216.if defined(MAKE_IDEA) && ${MAKE_IDEA} == YES 217_ideapath= ${LCRYPTO_SRC}/crypto/idea 218.endif 219 220.PATH: \ 221 ${LCRYPTO_SRC}/crypto \ 222 ${LCRYPTO_SRC}/crypto/aes \ 223 ${LCRYPTO_SRC}/crypto/asn1 \ 224 ${LCRYPTO_SRC}/crypto/bf \ 225 ${LCRYPTO_SRC}/crypto/bio \ 226 ${LCRYPTO_SRC}/crypto/bn \ 227 ${LCRYPTO_SRC}/crypto/buffer \ 228 ${LCRYPTO_SRC}/crypto/cast \ 229 ${LCRYPTO_SRC}/crypto/comp \ 230 ${LCRYPTO_SRC}/crypto/conf \ 231 ${LCRYPTO_SRC}/crypto/des \ 232 ${LCRYPTO_SRC}/crypto/dh \ 233 ${LCRYPTO_SRC}/crypto/dsa \ 234 ${LCRYPTO_SRC}/crypto/dso \ 235 ${LCRYPTO_SRC}/crypto/ec \ 236 ${LCRYPTO_SRC}/crypto/engine \ 237 ${LCRYPTO_SRC}/crypto/err \ 238 ${LCRYPTO_SRC}/crypto/evp \ 239 ${LCRYPTO_SRC}/crypto/hmac \ 240 ${_ideapath} \ 241 ${LCRYPTO_SRC}/crypto/krb5 \ 242 ${LCRYPTO_SRC}/crypto/lhash \ 243 ${LCRYPTO_SRC}/crypto/md2 \ 244 ${LCRYPTO_SRC}/crypto/md4 \ 245 ${LCRYPTO_SRC}/crypto/md5 \ 246 ${LCRYPTO_SRC}/crypto/mdc2 \ 247 ${LCRYPTO_SRC}/crypto/objects \ 248 ${LCRYPTO_SRC}/crypto/ocsp \ 249 ${LCRYPTO_SRC}/crypto/pem \ 250 ${LCRYPTO_SRC}/crypto/pkcs12 \ 251 ${LCRYPTO_SRC}/crypto/pkcs7 \ 252 ${LCRYPTO_SRC}/crypto/rand \ 253 ${LCRYPTO_SRC}/crypto/rc2 \ 254 ${LCRYPTO_SRC}/crypto/rc4 \ 255 ${LCRYPTO_SRC}/crypto/rc5 \ 256 ${LCRYPTO_SRC}/crypto/ripemd \ 257 ${LCRYPTO_SRC}/crypto/rsa \ 258 ${LCRYPTO_SRC}/crypto/sha \ 259 ${LCRYPTO_SRC}/crypto/stack \ 260 ${LCRYPTO_SRC}/crypto/threads \ 261 ${LCRYPTO_SRC}/crypto/txt_db \ 262 ${LCRYPTO_SRC}/crypto/ui \ 263 ${LCRYPTO_SRC}/crypto/x509 \ 264 ${LCRYPTO_SRC}/crypto/x509v3 \ 265 ${LCRYPTO_SRC} \ 266 ${.CURDIR}/man 267