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