Upgrade to OpenSSL 0.9.8h.
[dragonfly.git] / secure / lib / libcrypto / Makefile
1 # $FreeBSD: src/secure/lib/libcrypto/Makefile,v 1.15.2.14 2003/02/14 22:38:14 nectar Exp $
2 # $DragonFly: src/secure/lib/libcrypto/Makefile,v 1.11 2008/09/06 20:42:53 pavalos Exp $
3
4 LIB=            crypto
5 SHLIB_MAJOR=    4
6
7 NOLINT=         true
8
9 .if exists(Makefile.man)
10 .include "Makefile.man"
11 .endif
12
13 .include "Makefile.inc"
14
15 # base sources
16 SRCS+=  cpt_err.c cryptlib.c cversion.c ebcdic.c ex_data.c mem.c mem_clr.c \
17         mem_dbg.c o_dir.c o_time.c tmdiff.c uid.c
18
19 # aes
20 SRCS+=  aes_cbc.c aes_cfb.c aes_core.c aes_ctr.c aes_ecb.c aes_ige.c \
21         aes_misc.c aes_ofb.c aes_wrap.c
22
23 # asn1
24 SRCS+=  a_bitstr.c a_bool.c a_bytes.c a_d2i_fp.c a_digest.c \
25         a_dup.c a_enum.c a_gentm.c a_hdr.c a_i2d_fp.c a_int.c \
26         a_mbstr.c a_meth.c a_object.c a_octet.c a_print.c \
27         a_set.c a_sign.c a_strex.c a_strnid.c a_time.c a_type.c \
28         a_utctm.c a_utf8.c a_verify.c asn1_err.c asn1_lib.c \
29         asn1_gen.c asn1_par.c asn_mime.c \
30         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
40 SRCS+=  bf_cfb64.c bf_ecb.c bf_enc.c bf_ofb64.c bf_skey.c
41
42 # bio
43 SRCS+=  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_dgram.c bss_fd.c bss_file.c bss_log.c bss_mem.c \
46         bss_null.c bss_sock.c
47
48 # bn
49 SRCS+=  bn_add.c bn_asm.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c \
50         bn_div.c bn_err.c bn_exp.c \
51         bn_exp2.c bn_gcd.c bn_gf2m.c bn_kron.c bn_lib.c bn_mod.c bn_mont.c \
52         bn_mpi.c bn_mul.c bn_nist.c bn_prime.c bn_print.c bn_rand.c bn_recp.c \
53         bn_shift.c bn_sqr.c bn_sqrt.c bn_word.c
54
55 # buffer
56 SRCS+=  buf_err.c buffer.c
57
58 # camellia
59 # still disabled in 0.9.8
60 #SRCS+= camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
61 #       cmll_cfb.c cmll_ctr.c 
62
63 # cast
64 SRCS+=  c_cfb64.c c_ecb.c c_enc.c c_ofb64.c c_skey.c
65
66 # cms
67 #SRCS+= cms_att.c cms_att.c cms_cd.c cms_dd.c cms_enc.c cms_env.c cms_err.c \
68 #       cms_ess.c cms_io.c cms_lib.c cms_sd.c cms_smime.c
69
70 # comp
71 SRCS+=  c_rle.c c_zlib.c comp_err.c comp_lib.c
72
73 # conf
74 SRCS+=  conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c conf_sap.c
75
76 # des
77 SRCS+=  cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
78         des_enc.c des_old.c des_old2.c ecb3_enc.c ecb_enc.c ede_cbcm_enc.c \
79         enc_read.c enc_writ.c fcrypt.c fcrypt_b.c ofb64ede.c ofb64enc.c \
80         ofb_enc.c pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c \
81         rpc_enc.c set_key.c str2key.c xcbc_enc.c
82
83 # dh
84 SRCS+=  dh_asn1.c dh_check.c dh_depr.c dh_err.c dh_gen.c dh_key.c dh_lib.c
85
86 # dsa
87 SRCS+=  dsa_asn1.c dsa_depr.c dsa_err.c dsa_gen.c dsa_key.c dsa_lib.c \
88         dsa_ossl.c dsa_sign.c dsa_vrf.c
89
90 # dso
91 SRCS+=  dso_dl.c dso_dlfcn.c dso_err.c dso_lib.c dso_null.c dso_openssl.c
92
93 # ec
94 SRCS+=  ec_asn1.c ec_check.c ec_curve.c ec_cvt.c ec_err.c ec_key.c ec_lib.c \
95         ec_mult.c ec_print.c ec2_smpl.c ec2_mult.c ecp_mont.c ecp_nist.c \
96         ecp_smpl.c
97
98 # ecdh
99 SRCS+=  ech_err.c ech_key.c ech_lib.c ech_ossl.c
100
101 # ecdsa
102 SRCS+=  ecs_asn1.c ecs_err.c ecs_lib.c ecs_ossl.c ecs_sign.c ecs_vrf.c
103
104 # engine
105 SRCS+=  eng_all.c eng_cnf.c eng_cryptodev.c eng_ctrl.c eng_dyn.c eng_err.c \
106         eng_fat.c eng_init.c eng_lib.c eng_list.c eng_openssl.c eng_padlock.c \
107         eng_pkey.c eng_table.c tb_cipher.c tb_dh.c tb_ecdh.c tb_ecdsa.c \
108         tb_digest.c tb_dsa.c tb_rand.c tb_rsa.c tb_store.c
109
110 # engines
111 CFLAGS+=-DOPENSSL_NO_DYNAMIC_ENGINE     # needs more hacking
112 SRCS+=  e_4758cca.c e_aep.c e_atalla.c e_chil.c e_cswift.c e_gmp.c \
113         e_nuron.c e_sureware.c e_ubsec.c
114
115 # err
116 SRCS+=  err.c err_all.c err_prn.c
117
118 # evp
119 SRCS+=  bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \
120         digest.c e_aes.c e_bf.c e_camellia.c e_cast.c e_des.c e_des3.c \
121         e_idea.c e_null.c e_rc2.c e_rc4.c e_rc5.c e_xcbc_d.c encode.c \
122         evp_acnf.c evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c \
123         evp_pkey.c m_dss.c m_dss1.c m_ecdsa.c m_md2.c m_md4.c m_md5.c \
124         m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c names.c openbsd_hw.c \
125         p5_crpt.c p5_crpt2.c p_dec.c p_enc.c p_lib.c p_open.c p_seal.c \
126         p_sign.c p_verify.c
127
128 # hmac
129 SRCS+=  hmac.c
130
131 # idea
132 .if defined(WANT_IDEA)
133 SRCS+=  i_cbc.c i_cfb64.c i_ecb.c i_ofb64.c i_skey.c
134 .endif
135
136 # krb5
137 #SRCS+= krb5_asn.c
138
139 # lhash
140 SRCS+=  lh_stats.c lhash.c
141
142 # md2
143 SRCS+=  md2_dgst.c md2_one.c
144
145 # md4
146 SRCS+=  md4_dgst.c md4_one.c
147
148 # md5
149 SRCS+=  md5_dgst.c md5_one.c
150
151 # mdc2
152 # ... is patented, so don't compile by default.
153 #SRCS+= mdc2_one.c mdc2dgst.c
154
155 # objects
156 SRCS+=  o_names.c obj_dat.c obj_err.c obj_lib.c
157
158 # ocsp
159 SRCS+=  ocsp_asn.c ocsp_cl.c ocsp_err.c ocsp_ext.c ocsp_ht.c \
160         ocsp_lib.c ocsp_prn.c ocsp_srv.c ocsp_vfy.c
161
162 # pem
163 SRCS+=  pem_all.c pem_err.c pem_info.c pem_lib.c pem_oth.c pem_pk8.c \
164         pem_pkey.c pem_seal.c pem_sign.c pem_x509.c pem_xaux.c
165
166 # pkcs12
167 SRCS+=  p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c \
168         p12_decr.c p12_init.c p12_key.c p12_kiss.c p12_mutl.c \
169         p12_npas.c p12_p8d.c p12_p8e.c p12_utl.c pk12err.c
170
171 # pkcs7
172 SRCS+=  example.c pk7_asn1.c pk7_attr.c pk7_dgst.c pk7_doit.c \
173         pk7_lib.c pk7_mime.c pk7_smime.c pkcs7err.c
174
175 # pqueue
176 SRCS+=  pqueue.c
177
178 # rand
179 SRCS+=  md_rand.c rand_egd.c rand_err.c rand_lib.c rand_nw.c rand_unix.c \
180         randfile.c
181
182 # rc2
183 SRCS+=  rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c
184
185 # rc4
186 SRCS+=  rc4_enc.c rc4_skey.c
187
188 # rc5
189 # .. is patented, so don't compile by default
190 #SRCS+= rc5_ecb.c rc5_enc.c rc5_skey.c rc5cfb64.c rc5ofb64.c
191
192 # ripemd
193 SRCS+=  rmd_dgst.c rmd_one.c
194
195 # rsa
196 SRCS+=  rsa_asn1.c rsa_chk.c rsa_depr.c rsa_eay.c rsa_err.c rsa_gen.c \
197         rsa_lib.c rsa_none.c rsa_null.c rsa_oaep.c rsa_pk1.c rsa_pss.c \
198         rsa_saos.c rsa_sign.c rsa_ssl.c rsa_x931.c
199
200 # sha
201 SRCS+=  sha1_one.c sha1dgst.c sha256.c sha512.c sha_dgst.c sha_one.c
202
203 # stack
204 SRCS+=  stack.c
205
206 # store
207 SRCS+=  str_err.c str_lib.c str_meth.c str_mem.c
208
209 # txt_db
210 SRCS+=  txt_db.c
211
212 # ui
213 SRCS+=  ui_compat.c ui_err.c ui_lib.c ui_openssl.c ui_util.c
214
215 # x509
216 SRCS+=  by_dir.c by_file.c x509_att.c x509_cmp.c x509_d2.c \
217         x509_def.c x509_err.c x509_ext.c x509_lu.c x509_obj.c \
218         x509_r2x.c x509_req.c x509_set.c x509_trs.c x509_txt.c \
219         x509_v3.c x509_vfy.c x509_vpm.c x509cset.c x509name.c x509rset.c \
220         x509spki.c x509type.c x_all.c
221
222 # x509v3
223 SRCS+=  pcy_cache.c pcy_data.c pcy_lib.c pcy_map.c pcy_node.c pcy_tree.c \
224         v3_addr.c v3_akey.c v3_akeya.c v3_asid.c v3_alt.c v3_bcons.c v3_bitst.c \
225         v3_conf.c v3_cpols.c v3_crld.c v3_enum.c v3_extku.c \
226         v3_genn.c v3_ia5.c v3_info.c v3_int.c v3_lib.c v3_ncons.c v3_ocsp.c \
227         v3_pci.c v3_pcia.c v3_pcons.c v3_pmaps.c v3_pku.c v3_prn.c v3_purp.c \
228         v3_skey.c v3_sxnet.c v3_utl.c v3err.c
229
230 INCS=           ${CRYTPO_HDRS} openssl/evp.h openssl/opensslconf.h
231 INCSDIR=        ${INCLUDEDIR}/openssl
232
233 MKDEP=  -DOPENSSL_DOING_MAKEDEPEND
234
235 .include <bsd.lib.mk>
236
237 .if defined(WANT_IDEA)
238 _ideapath=      ${LCRYPTO_SRC}/crypto/idea
239 .endif
240
241 .PATH: \
242         ${LCRYPTO_SRC}/crypto \
243         ${LCRYPTO_SRC}/crypto/aes \
244         ${LCRYPTO_SRC}/crypto/asn1 \
245         ${LCRYPTO_SRC}/crypto/bf \
246         ${LCRYPTO_SRC}/crypto/bio \
247         ${LCRYPTO_SRC}/crypto/bn \
248         ${LCRYPTO_SRC}/crypto/buffer \
249         ${LCRYPTO_SRC}/crypto/cast \
250         ${LCRYPTO_SRC}/crypto/comp \
251         ${LCRYPTO_SRC}/crypto/conf \
252         ${LCRYPTO_SRC}/crypto/des \
253         ${LCRYPTO_SRC}/crypto/dh \
254         ${LCRYPTO_SRC}/crypto/dsa \
255         ${LCRYPTO_SRC}/crypto/dso \
256         ${LCRYPTO_SRC}/crypto/ec \
257         ${LCRYPTO_SRC}/crypto/ecdh \
258         ${LCRYPTO_SRC}/crypto/ecdsa \
259         ${LCRYPTO_SRC}/crypto/engine \
260         ${LCRYPTO_SRC}/crypto/err \
261         ${LCRYPTO_SRC}/crypto/evp \
262         ${LCRYPTO_SRC}/crypto/hmac \
263         ${_ideapath} \
264         ${LCRYPTO_SRC}/crypto/krb5 \
265         ${LCRYPTO_SRC}/crypto/lhash \
266         ${LCRYPTO_SRC}/crypto/md2 \
267         ${LCRYPTO_SRC}/crypto/md4 \
268         ${LCRYPTO_SRC}/crypto/md5 \
269         ${LCRYPTO_SRC}/crypto/objects \
270         ${LCRYPTO_SRC}/crypto/ocsp \
271         ${LCRYPTO_SRC}/crypto/pem \
272         ${LCRYPTO_SRC}/crypto/pkcs12 \
273         ${LCRYPTO_SRC}/crypto/pkcs7 \
274         ${LCRYPTO_SRC}/crypto/pqueue \
275         ${LCRYPTO_SRC}/crypto/rand \
276         ${LCRYPTO_SRC}/crypto/rc2 \
277         ${LCRYPTO_SRC}/crypto/rc4 \
278         ${LCRYPTO_SRC}/crypto/ripemd \
279         ${LCRYPTO_SRC}/crypto/rsa \
280         ${LCRYPTO_SRC}/crypto/sha \
281         ${LCRYPTO_SRC}/crypto/stack \
282         ${LCRYPTO_SRC}/crypto/store \
283         ${LCRYPTO_SRC}/crypto/threads \
284         ${LCRYPTO_SRC}/crypto/txt_db \
285         ${LCRYPTO_SRC}/crypto/ui \
286         ${LCRYPTO_SRC}/crypto/x509 \
287         ${LCRYPTO_SRC}/crypto/x509v3 \
288         ${LCRYPTO_SRC}/engines \
289         ${LCRYPTO_SRC} \
290         ${.CURDIR}/man