Makefile (4be3feb21253e7f5c2fa9ec71a3fbcf026065107) Makefile (25faff346c8453b8248f99c7cff71708262faa37)
1# $FreeBSD$
2
3SHLIBDIR?= /lib
4SUBDIR= engines
5
6.include <bsd.own.mk>
7
8LIB= crypto

--- 35 unchanged lines hidden (view full) ---

44 tasn_new.c tasn_typ.c tasn_utl.c x_algor.c x_attrib.c \
45 x_bignum.c x_crl.c x_exten.c x_info.c x_long.c x_name.c \
46 x_pkey.c x_pubkey.c x_req.c x_sig.c x_spki.c x_val.c x_x509.c \
47 x_x509a.c
48INCS+= asn1.h asn1_mac.h asn1t.h
49
50# bf
51SRCS+= bf_cfb64.c bf_ecb.c bf_ofb64.c bf_skey.c
1# $FreeBSD$
2
3SHLIBDIR?= /lib
4SUBDIR= engines
5
6.include <bsd.own.mk>
7
8LIB= crypto

--- 35 unchanged lines hidden (view full) ---

44 tasn_new.c tasn_typ.c tasn_utl.c x_algor.c x_attrib.c \
45 x_bignum.c x_crl.c x_exten.c x_info.c x_long.c x_name.c \
46 x_pkey.c x_pubkey.c x_req.c x_sig.c x_spki.c x_val.c x_x509.c \
47 x_x509a.c
48INCS+= asn1.h asn1_mac.h asn1t.h
49
50# bf
51SRCS+= bf_cfb64.c bf_ecb.c bf_ofb64.c bf_skey.c
52.if ${MACHINE_ARCH} == "i386"
52.if ${MACHINE_CPUARCH} == "i386"
53.if ${MACHINE_CPU:Mi686}
54SRCS+= bf-686.s
55.else
56SRCS+= bf-586.s
57.endif
58.else
59SRCS+= bf_enc.c
60.endif

--- 7 unchanged lines hidden (view full) ---

68INCS+= bio.h bio_lcl.h
69
70# bn
71SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_div.c \
72 bn_err.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_kron.c \
73 bn_lib.c bn_mod.c bn_mont.c bn_mpi.c bn_mul.c bn_nist.c bn_opt.c \
74 bn_prime.c bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c \
75 bn_sqrt.c bn_word.c bn_x931p.c
53.if ${MACHINE_CPU:Mi686}
54SRCS+= bf-686.s
55.else
56SRCS+= bf-586.s
57.endif
58.else
59SRCS+= bf_enc.c
60.endif

--- 7 unchanged lines hidden (view full) ---

68INCS+= bio.h bio_lcl.h
69
70# bn
71SRCS+= bn_add.c bn_blind.c bn_const.c bn_ctx.c bn_depr.c bn_div.c \
72 bn_err.c bn_exp.c bn_exp2.c bn_gcd.c bn_gf2m.c bn_kron.c \
73 bn_lib.c bn_mod.c bn_mont.c bn_mpi.c bn_mul.c bn_nist.c bn_opt.c \
74 bn_prime.c bn_print.c bn_rand.c bn_recp.c bn_shift.c bn_sqr.c \
75 bn_sqrt.c bn_word.c bn_x931p.c
76.if ${MACHINE_ARCH} == "i386"
76.if ${MACHINE_CPUARCH} == "i386"
77SRCS+= bn-586.s co-586.s
77SRCS+= bn-586.s co-586.s
78.elif ${MACHINE_ARCH} == "amd64"
78.elif ${MACHINE_CPUARCH} == "amd64"
79SRCS+= x86_64-gcc.c
80.else
81SRCS+= bn_asm.c
82.endif
83
84INCS+= bn.h
85
86# buffer
87SRCS+= buf_err.c buf_str.c buffer.c
88INCS+= buffer.h
89
90# cast
91SRCS+= c_cfb64.c c_ecb.c c_ofb64.c c_skey.c
79SRCS+= x86_64-gcc.c
80.else
81SRCS+= bn_asm.c
82.endif
83
84INCS+= bn.h
85
86# buffer
87SRCS+= buf_err.c buf_str.c buffer.c
88INCS+= buffer.h
89
90# cast
91SRCS+= c_cfb64.c c_ecb.c c_ofb64.c c_skey.c
92.if ${MACHINE_ARCH} == "i386"
92.if ${MACHINE_CPUARCH} == "i386"
93SRCS+= cast-586.s
94.else
95SRCS+= c_enc.c
96.endif
97INCS+= cast.h
98
99# camellia
93SRCS+= cast-586.s
94.else
95SRCS+= c_enc.c
96.endif
97INCS+= cast.h
98
99# camellia
100.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
100.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
101SRCS+= camellia.c cmll_cbc.c cmll_cfb.c cmll_ctr.c cmll_ecb.c \
102 cmll_misc.c cmll_ofb.c
103INCS+= camellia.h
104.endif
105
106# comp
107SRCS+= c_rle.c c_zlib.c comp_err.c comp_lib.c
108INCS+= comp.h
109
110# conf
111SRCS+= conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c conf_sap.c
112INCS+= conf.h conf_api.h
113
114# des
115SRCS+= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
116 des_lib.c des_old.c des_old2.c ecb3_enc.c ecb_enc.c ede_cbcm_enc.c \
117 enc_read.c enc_writ.c fcrypt.c ofb64ede.c ofb64enc.c \
118 ofb_enc.c pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c \
119 rpc_enc.c set_key.c str2key.c xcbc_enc.c
101SRCS+= camellia.c cmll_cbc.c cmll_cfb.c cmll_ctr.c cmll_ecb.c \
102 cmll_misc.c cmll_ofb.c
103INCS+= camellia.h
104.endif
105
106# comp
107SRCS+= c_rle.c c_zlib.c comp_err.c comp_lib.c
108INCS+= comp.h
109
110# conf
111SRCS+= conf_api.c conf_def.c conf_err.c conf_lib.c conf_mall.c conf_mod.c conf_sap.c
112INCS+= conf.h conf_api.h
113
114# des
115SRCS+= cbc3_enc.c cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
116 des_lib.c des_old.c des_old2.c ecb3_enc.c ecb_enc.c ede_cbcm_enc.c \
117 enc_read.c enc_writ.c fcrypt.c ofb64ede.c ofb64enc.c \
118 ofb_enc.c pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c \
119 rpc_enc.c set_key.c str2key.c xcbc_enc.c
120.if ${MACHINE_ARCH} == "i386"
120.if ${MACHINE_CPUARCH} == "i386"
121SRCS+= des-586.s crypt586.s
122.else
123SRCS+= des_enc.c fcrypt_b.c
124.endif
125INCS+= des.h des_old.h
126
127# dh
128SRCS+= dh_asn1.c dh_check.c dh_err.c dh_depr.c dh_gen.c dh_key.c dh_lib.c

--- 38 unchanged lines hidden (view full) ---

167SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \
168 dig_eng.c digest.c e_aes.c e_bf.c e_cast.c e_des.c e_des3.c e_idea.c \
169 e_null.c e_old.c e_rc2.c e_rc4.c e_rc5.c e_xcbc_d.c encode.c \
170 evp_acnf.c evp_cnf.c evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c \
171 evp_pkey.c e_seed.c enc_min.c m_dss.c m_dss1.c m_ecdsa.c m_md2.c m_md4.c m_md5.c \
172 m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c names.c \
173 openbsd_hw.c p5_crpt.c p5_crpt2.c p_dec.c p_enc.c p_lib.c \
174 p_open.c p_seal.c p_sign.c p_verify.c
121SRCS+= des-586.s crypt586.s
122.else
123SRCS+= des_enc.c fcrypt_b.c
124.endif
125INCS+= des.h des_old.h
126
127# dh
128SRCS+= dh_asn1.c dh_check.c dh_err.c dh_depr.c dh_gen.c dh_key.c dh_lib.c

--- 38 unchanged lines hidden (view full) ---

167SRCS+= bio_b64.c bio_enc.c bio_md.c bio_ok.c c_all.c c_allc.c c_alld.c \
168 dig_eng.c digest.c e_aes.c e_bf.c e_cast.c e_des.c e_des3.c e_idea.c \
169 e_null.c e_old.c e_rc2.c e_rc4.c e_rc5.c e_xcbc_d.c encode.c \
170 evp_acnf.c evp_cnf.c evp_enc.c evp_err.c evp_key.c evp_lib.c evp_pbe.c \
171 evp_pkey.c e_seed.c enc_min.c m_dss.c m_dss1.c m_ecdsa.c m_md2.c m_md4.c m_md5.c \
172 m_mdc2.c m_null.c m_ripemd.c m_sha.c m_sha1.c names.c \
173 openbsd_hw.c p5_crpt.c p5_crpt2.c p_dec.c p_enc.c p_lib.c \
174 p_open.c p_seal.c p_sign.c p_verify.c
175.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
175.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
176SRCS+= e_camellia.c
177.endif
178INCS+= evp.h
179
180# fips
181INCS+= fips.h fips_rand.h
182
183# hmac

--- 19 unchanged lines hidden (view full) ---

203INCS+= md2.h
204
205# md4
206SRCS+= md4_dgst.c md4_one.c
207INCS+= md4.h
208
209# md5
210SRCS+= md5_dgst.c md5_one.c
176SRCS+= e_camellia.c
177.endif
178INCS+= evp.h
179
180# fips
181INCS+= fips.h fips_rand.h
182
183# hmac

--- 19 unchanged lines hidden (view full) ---

203INCS+= md2.h
204
205# md4
206SRCS+= md4_dgst.c md4_one.c
207INCS+= md4.h
208
209# md5
210SRCS+= md5_dgst.c md5_one.c
211.if ${MACHINE_ARCH} == "i386"
211.if ${MACHINE_CPUARCH} == "i386"
212SRCS+= md5-586.s
213.endif
214INCS+= md5.h
215
216# mdc2
217SRCS+= mdc2_one.c mdc2dgst.c
218INCS+= mdc2.h
219

--- 30 unchanged lines hidden (view full) ---

250INCS+= rand.h
251
252# rc2
253SRCS+= rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c
254INCS+= rc2.h
255
256# rc4
257SRCS+= rc4_skey.c rc4_fblk.c
212SRCS+= md5-586.s
213.endif
214INCS+= md5.h
215
216# mdc2
217SRCS+= mdc2_one.c mdc2dgst.c
218INCS+= mdc2.h
219

--- 30 unchanged lines hidden (view full) ---

250INCS+= rand.h
251
252# rc2
253SRCS+= rc2_cbc.c rc2_ecb.c rc2_skey.c rc2cfb64.c rc2ofb64.c
254INCS+= rc2.h
255
256# rc4
257SRCS+= rc4_skey.c rc4_fblk.c
258.if ${MACHINE_ARCH} == "i386"
258.if ${MACHINE_CPUARCH} == "i386"
259SRCS+= rc4-586.s
260.else
261SRCS+= rc4_enc.c
262.endif
263INCS+= rc4.h
264
265# rc5
266SRCS+= rc5_ecb.c rc5_skey.c rc5cfb64.c rc5ofb64.c
259SRCS+= rc4-586.s
260.else
261SRCS+= rc4_enc.c
262.endif
263INCS+= rc4.h
264
265# rc5
266SRCS+= rc5_ecb.c rc5_skey.c rc5cfb64.c rc5ofb64.c
267.if ${MACHINE_ARCH} == "i386"
267.if ${MACHINE_CPUARCH} == "i386"
268SRCS+= rc5-586.s
269.else
270SRCS+= rc5_enc.c
271.endif
272INCS+= rc5.h
273
274# ripemd
275SRCS+= rmd_dgst.c rmd_one.c
276INCS+= ripemd.h
277
278# rsa
279SRCS+= rsa_asn1.c rsa_chk.c rsa_eay.c rsa_err.c rsa_gen.c rsa_lib.c \
280 rsa_none.c rsa_null.c rsa_oaep.c rsa_pk1.c rsa_saos.c \
281 rsa_sign.c rsa_ssl.c rsa_depr.c rsa_pss.c rsa_x931.c rsa_x931g.c \
282 rsa_eng.c
283INCS+= rsa.h
284
285# sha
286SRCS+= sha1_one.c sha1dgst.c sha_dgst.c sha_one.c sha256.c sha512.c
268SRCS+= rc5-586.s
269.else
270SRCS+= rc5_enc.c
271.endif
272INCS+= rc5.h
273
274# ripemd
275SRCS+= rmd_dgst.c rmd_one.c
276INCS+= ripemd.h
277
278# rsa
279SRCS+= rsa_asn1.c rsa_chk.c rsa_eay.c rsa_err.c rsa_gen.c rsa_lib.c \
280 rsa_none.c rsa_null.c rsa_oaep.c rsa_pk1.c rsa_saos.c \
281 rsa_sign.c rsa_ssl.c rsa_depr.c rsa_pss.c rsa_x931.c rsa_x931g.c \
282 rsa_eng.c
283INCS+= rsa.h
284
285# sha
286SRCS+= sha1_one.c sha1dgst.c sha_dgst.c sha_one.c sha256.c sha512.c
287.if ${MACHINE_ARCH} == "i386"
287.if ${MACHINE_CPUARCH} == "i386"
288SRCS+= sha1-586.s
289.endif
290INCS+= sha.h
291
292# stack
293SRCS+= stack.c
294INCS+= stack.h safestack.h
295

--- 50 unchanged lines hidden (view full) ---

346CSTD= gnu89
347
348CLEANFILES= buildinf.h opensslconf.h evp.h
349
350buildinf.h: ${.CURDIR}/Makefile
351 ( echo "#ifndef MK1MF_BUILD"; \
352 echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
353 echo " #define CFLAGS \"$(CC)\""; \
288SRCS+= sha1-586.s
289.endif
290INCS+= sha.h
291
292# stack
293SRCS+= stack.c
294INCS+= stack.h safestack.h
295

--- 50 unchanged lines hidden (view full) ---

346CSTD= gnu89
347
348CLEANFILES= buildinf.h opensslconf.h evp.h
349
350buildinf.h: ${.CURDIR}/Makefile
351 ( echo "#ifndef MK1MF_BUILD"; \
352 echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
353 echo " #define CFLAGS \"$(CC)\""; \
354 echo " #define PLATFORM \"FreeBSD-${MACHINE_ARCH}\""; \
354 echo " #define PLATFORM \"FreeBSD-${MACHINE_CPUARCH}\""; \
355 echo "#endif" ) > ${.TARGET}
356
355 echo "#endif" ) > ${.TARGET}
356
357opensslconf.h: opensslconf-${MACHINE_ARCH}.h
357opensslconf.h: opensslconf-${MACHINE_CPUARCH}.h
358 cp -f ${.ALLSRC} ${.TARGET}
359
360evp.h: ${LCRYPTO_SRC}/crypto/evp/evp.h
361.if ${MK_IDEA} == "no"
362 sed '/^#ifndef OPENSSL_NO_IDEA$$/,/^#endif$$/d' ${.ALLSRC} > ${.TARGET}
363.else
364 cp -f ${.ALLSRC} ${.TARGET}
365.endif

--- 12 unchanged lines hidden (view full) ---

378 @${ECHO} "Removing stale symlinks."
379 rm -f ${DESTDIR}${INCLUDEDIR}/des.h
380.for symlink in ${OLDSYMLINKS}
381 rm -f ${DESTDIR}${LIBDIR}/${symlink}
382.endfor
383
384.include <bsd.lib.mk>
385
358 cp -f ${.ALLSRC} ${.TARGET}
359
360evp.h: ${LCRYPTO_SRC}/crypto/evp/evp.h
361.if ${MK_IDEA} == "no"
362 sed '/^#ifndef OPENSSL_NO_IDEA$$/,/^#endif$$/d' ${.ALLSRC} > ${.TARGET}
363.else
364 cp -f ${.ALLSRC} ${.TARGET}
365.endif

--- 12 unchanged lines hidden (view full) ---

378 @${ECHO} "Removing stale symlinks."
379 rm -f ${DESTDIR}${INCLUDEDIR}/des.h
380.for symlink in ${OLDSYMLINKS}
381 rm -f ${DESTDIR}${LIBDIR}/${symlink}
382.endfor
383
384.include <bsd.lib.mk>
385
386.if ${MACHINE_ARCH} == "i386"
386.if ${MACHINE_CPUARCH} == "i386"
387.PATH: ${.CURDIR}/i386
388.endif
389
387.PATH: ${.CURDIR}/i386
388.endif
389
390.if ${MACHINE_ARCH} == "amd64"
390.if ${MACHINE_CPUARCH} == "amd64"
391_bn_asmpath= ${LCRYPTO_SRC}/crypto/bn/asm
392.endif
393
394.if ${MK_IDEA} != "no"
395_ideapath= ${LCRYPTO_SRC}/crypto/idea
396.endif
397
398.PATH: \

--- 56 unchanged lines hidden ---
391_bn_asmpath= ${LCRYPTO_SRC}/crypto/bn/asm
392.endif
393
394.if ${MK_IDEA} != "no"
395_ideapath= ${LCRYPTO_SRC}/crypto/idea
396.endif
397
398.PATH: \

--- 56 unchanged lines hidden ---