8750 loader: vdev_read() needs to be careful about large sectors
[unleashed.git] / lib / libcrypto / Makefile
blobc46687f2947eaf88b2aefe37ec1934ca07921ce4
1 # $OpenBSD: Makefile,v 1.27 2018/03/17 16:20:01 beck Exp $
3 LIB= crypto
4 LIBREBUILD=y
6 .include <bsd.own.mk>
7 .ifndef NOMAN
8 SUBDIR= man
9 .endif
11 PC_FILES=libcrypto.pc
13 CLEANFILES=${PC_FILES} ${VERSION_SCRIPT}
15 LCRYPTO_SRC= ${.CURDIR}
17 CFLAGS+= -Wall -Wundef
18 .if ${COMPILER_VERSION:L} == "clang"
19 CFLAGS+= -Werror
20 .endif
21 CFLAGS+= -DLIBRESSL_INTERNAL
23 # Hardware engines
24 CFLAGS+= -DOPENSSL_NO_HW_PADLOCK # XXX enable this?
26 CFLAGS+= -I${LCRYPTO_SRC}
27 CFLAGS+= -I${LCRYPTO_SRC}/asn1 -I${LCRYPTO_SRC}/bn -I${LCRYPTO_SRC}/evp
28 CFLAGS+= -I${LCRYPTO_SRC}/modes
30 VERSION_SCRIPT= Symbols.map
31 SYMBOL_LIST= ${.CURDIR}/Symbols.list
33 # crypto/
34 SRCS+= cryptlib.c malloc-wrapper.c mem_dbg.c cversion.c ex_data.c cpt_err.c
35 SRCS+= o_time.c o_str.c o_init.c
36 SRCS+= mem_clr.c crypto_init.c
38 # aes/
39 SRCS+= aes_misc.c aes_ecb.c aes_cfb.c aes_ofb.c
40 SRCS+= aes_ctr.c aes_ige.c aes_wrap.c
42 # asn1/
43 SRCS+= a_object.c a_bitstr.c a_time.c a_int.c a_octet.c
44 SRCS+= a_print.c a_type.c a_dup.c a_d2i_fp.c a_i2d_fp.c
45 SRCS+= a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c
46 SRCS+= x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c
47 SRCS+= x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c
48 SRCS+= x_nx509.c d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c
49 SRCS+= t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c
50 SRCS+= tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c
51 SRCS+= tasn_prn.c ameth_lib.c
52 SRCS+= f_int.c f_string.c n_pkey.c
53 SRCS+= f_enum.c x_pkey.c a_bool.c x_exten.c bio_asn1.c bio_ndef.c asn_mime.c
54 SRCS+= asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_bytes.c a_strnid.c
55 SRCS+= evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c
56 SRCS+= a_set.c
57 SRCS+= a_time_tm.c
59 # bf/
60 SRCS+= bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c
62 # bio/
63 SRCS+= bio_lib.c bio_cb.c bio_err.c bio_meth.c
64 SRCS+= bss_mem.c bss_null.c bss_fd.c
65 SRCS+= bss_file.c bss_sock.c bss_conn.c
66 SRCS+= bf_null.c bf_buff.c b_print.c b_dump.c
67 SRCS+= b_posix.c b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c
68 SRCS+= bss_dgram.c
70 # bn/
71 SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c
72 SRCS+= bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c
73 SRCS+= bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c
74 SRCS+= bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c
75 SRCS+= bn_depr.c bn_const.c bn_x931p.c
77 # buffer/
78 SRCS+= buffer.c buf_err.c buf_str.c
80 # camellia/
81 SRCS+= cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c
83 # cast/
84 SRCS+= c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
86 # chacha/
87 SRCS+= chacha.c
89 # cmac/
90 SRCS+= cmac.c cm_ameth.c cm_pmeth.c
92 # comp/
93 SRCS+= comp_lib.c comp_err.c c_rle.c c_zlib.c
95 # conf/
96 SRCS+= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c
97 SRCS+= conf_mall.c conf_sap.c
99 # curve25519/
100 SRCS+= curve25519.c curve25519-generic.c
102 # des/
103 SRCS+= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c
104 SRCS+= ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c
105 SRCS+= fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c
106 SRCS+= qud_cksm.c rand_key.c set_key.c xcbc_enc.c
107 SRCS+= str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c
109 # dh/
110 SRCS+= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c dh_depr.c
111 SRCS+= dh_ameth.c dh_pmeth.c dh_prn.c
113 # dsa/
114 SRCS+= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c
115 SRCS+= dsa_err.c dsa_ossl.c dsa_depr.c dsa_ameth.c dsa_pmeth.c dsa_prn.c
116 SRCS+= dsa_meth.c
118 # dso/
119 SRCS+= dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
120 SRCS+= dso_openssl.c
122 # ec/
123 SRCS+= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
124 SRCS+= ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
125 SRCS+= ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c
126 SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c
127 SRCS+= ecp_oct.c ec2_oct.c ec_oct.c
129 # ecdh/
130 SRCS+= ech_lib.c ech_key.c ech_err.c
132 # ecdsa/
133 SRCS+= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
135 # engine/
136 SRCS+= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
137 SRCS+= eng_table.c eng_pkey.c eng_fat.c eng_all.c
138 SRCS+= tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
139 SRCS+= tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c
140 SRCS+= eng_openssl.c eng_cnf.c eng_dyn.c
141 # XXX unnecessary? handled in EVP now...
142 # SRCS+= eng_aesni.c # local addition
144 # err/
145 SRCS+= err.c err_all.c err_prn.c
147 # evp/
148 SRCS+= encode.c digest.c evp_enc.c evp_key.c
149 SRCS+= e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
150 SRCS+= e_rc4.c e_aes.c names.c
151 SRCS+= e_xcbc_d.c e_rc2.c e_cast.c
152 SRCS+= m_null.c m_md4.c m_md5.c m_sha1.c m_wp.c
153 SRCS+= m_dss.c m_dss1.c m_ripemd.c m_ecdsa.c
154 SRCS+= p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
155 SRCS+= bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
156 SRCS+= c_all.c evp_lib.c
157 SRCS+= evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
158 SRCS+= e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c
159 SRCS+= e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
160 SRCS+= e_chacha.c evp_aead.c e_chacha20poly1305.c
161 SRCS+= e_gost2814789.c m_gost2814789.c m_gostr341194.c m_streebog.c
162 SRCS+= m_md5_sha1.c
164 # gost/
165 SRCS+= gost2814789.c gost89_keywrap.c gost89_params.c gost89imit_ameth.c
166 SRCS+= gost89imit_pmeth.c gost_asn1.c gost_err.c gostr341001.c
167 SRCS+= gostr341001_ameth.c gostr341001_key.c gostr341001_params.c
168 SRCS+= gostr341001_pmeth.c gostr341194.c streebog.c
170 # hkdf/
171 SRCS+= hkdf.c
173 # hmac/
174 SRCS+= hmac.c hm_ameth.c hm_pmeth.c
176 # idea/
177 SRCS+= i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
179 # lhash/
180 SRCS+= lhash.c lh_stats.c
182 # md4/
183 SRCS+= md4_dgst.c md4_one.c
185 # md5/
186 SRCS+= md5_dgst.c md5_one.c
188 # modes/
189 SRCS+= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c ccm128.c xts128.c
191 # objects/
192 SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
194 # ocsp/
195 SRCS+= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
196 SRCS+= ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
198 # pem/
199 SRCS+= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
200 SRCS+= pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
202 # pkcs12/
203 SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
204 SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c
205 SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
207 # pkcs7/
208 SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
209 SRCS+= pk7_mime.c bio_pk7.c
211 # poly1305/
212 SRCS+= poly1305.c
214 # rand/
215 SRCS+= randfile.c rand_lib.c rand_err.c
217 # rc2/
218 SRCS+= rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
220 # ripemd/
221 SRCS+= rmd_dgst.c rmd_one.c
223 # rsa/
224 SRCS+= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
225 SRCS+= rsa_pk1.c rsa_none.c rsa_oaep.c rsa_chk.c
226 SRCS+= rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
227 SRCS+= rsa_pmeth.c rsa_crpt.c rsa_meth.c
229 # sha/
230 SRCS+= sha1dgst.c sha1_one.c sha256.c sha512.c
232 # stack/
233 SRCS+= stack.c
235 # ts/
236 SRCS+= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
237 SRCS+= ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
238 SRCS+= ts_asn1.c
240 # txt_db/
241 SRCS+=txt_db.c
243 # ui/
244 SRCS+= ui_err.c ui_lib.c ui_openssl.c ui_util.c
246 # whrlpool/
247 SRCS+= wp_dgst.c
249 # x509/
250 SRCS+= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
251 SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c
252 SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c
253 SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c
254 SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c
255 SRCS+= x509_trs.c by_file.c by_dir.c by_mem.c x509_vpm.c
257 # x509v3/
258 SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c
259 SRCS+= v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c
260 SRCS+= v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c
261 SRCS+= v3_ocsp.c v3_akeya.c v3_pmaps.c v3_pcons.c v3_ncons.c v3_pcia.c v3_pci.c
262 SRCS+= pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
264 .PATH: ${.CURDIR}/arch/${MACHINE_CPU} \
265 ${LCRYPTO_SRC} \
266 ${LCRYPTO_SRC}/aes \
267 ${LCRYPTO_SRC}/asn1 \
268 ${LCRYPTO_SRC}/bf \
269 ${LCRYPTO_SRC}/bio \
270 ${LCRYPTO_SRC}/bn \
271 ${LCRYPTO_SRC}/bn/asm \
272 ${LCRYPTO_SRC}/buffer \
273 ${LCRYPTO_SRC}/camellia \
274 ${LCRYPTO_SRC}/cast \
275 ${LCRYPTO_SRC}/chacha \
276 ${LCRYPTO_SRC}/cmac \
277 ${LCRYPTO_SRC}/comp \
278 ${LCRYPTO_SRC}/conf \
279 ${LCRYPTO_SRC}/curve25519 \
280 ${LCRYPTO_SRC}/des \
281 ${LCRYPTO_SRC}/dh \
282 ${LCRYPTO_SRC}/dsa \
283 ${LCRYPTO_SRC}/dso \
284 ${LCRYPTO_SRC}/ec \
285 ${LCRYPTO_SRC}/ecdh \
286 ${LCRYPTO_SRC}/ecdsa \
287 ${LCRYPTO_SRC}/engine \
288 ${LCRYPTO_SRC}/err \
289 ${LCRYPTO_SRC}/evp \
290 ${LCRYPTO_SRC}/gost \
291 ${LCRYPTO_SRC}/hkdf \
292 ${LCRYPTO_SRC}/hmac \
293 ${LCRYPTO_SRC}/idea \
294 ${LCRYPTO_SRC}/lhash \
295 ${LCRYPTO_SRC}/md4 \
296 ${LCRYPTO_SRC}/md5 \
297 ${LCRYPTO_SRC}/modes \
298 ${LCRYPTO_SRC}/objects \
299 ${LCRYPTO_SRC}/ocsp \
300 ${LCRYPTO_SRC}/pem \
301 ${LCRYPTO_SRC}/perlasm \
302 ${LCRYPTO_SRC}/pkcs12 \
303 ${LCRYPTO_SRC}/pkcs7 \
304 ${LCRYPTO_SRC}/poly1305 \
305 ${LCRYPTO_SRC}/rand \
306 ${LCRYPTO_SRC}/rc2 \
307 ${LCRYPTO_SRC}/rc4 \
308 ${LCRYPTO_SRC}/ripemd \
309 ${LCRYPTO_SRC}/rsa \
310 ${LCRYPTO_SRC}/sha \
311 ${LCRYPTO_SRC}/stack \
312 ${LCRYPTO_SRC}/threads \
313 ${LCRYPTO_SRC}/ts \
314 ${LCRYPTO_SRC}/txt_db \
315 ${LCRYPTO_SRC}/ui \
316 ${LCRYPTO_SRC}/whrlpool \
317 ${LCRYPTO_SRC}/x509 \
318 ${LCRYPTO_SRC}/x509v3
320 HDRS=\
321 ${LCRYPTO_SRC}/aes/aes.h \
322 ${LCRYPTO_SRC}/asn1/asn1.h \
323 ${LCRYPTO_SRC}/asn1/asn1_mac.h \
324 ${LCRYPTO_SRC}/asn1/asn1t.h \
325 ${LCRYPTO_SRC}/bf/blowfish.h \
326 ${LCRYPTO_SRC}/bio/bio.h \
327 ${LCRYPTO_SRC}/bn/bn.h \
328 ${LCRYPTO_SRC}/buffer/buffer.h \
329 ${LCRYPTO_SRC}/camellia/camellia.h \
330 ${LCRYPTO_SRC}/cast/cast.h \
331 ${LCRYPTO_SRC}/chacha/chacha.h \
332 ${LCRYPTO_SRC}/cmac/cmac.h \
333 ${LCRYPTO_SRC}/comp/comp.h \
334 ${LCRYPTO_SRC}/conf/conf.h \
335 ${LCRYPTO_SRC}/conf/conf_api.h \
336 ${LCRYPTO_SRC}/crypto.h \
337 ${LCRYPTO_SRC}/curve25519/curve25519.h \
338 ${LCRYPTO_SRC}/des/des.h \
339 ${LCRYPTO_SRC}/dh/dh.h \
340 ${LCRYPTO_SRC}/dsa/dsa.h \
341 ${LCRYPTO_SRC}/dso/dso.h \
342 ${LCRYPTO_SRC}/ec/ec.h \
343 ${LCRYPTO_SRC}/ecdh/ecdh.h \
344 ${LCRYPTO_SRC}/ecdsa/ecdsa.h \
345 ${LCRYPTO_SRC}/engine/engine.h \
346 ${LCRYPTO_SRC}/err/err.h \
347 ${LCRYPTO_SRC}/evp/evp.h \
348 ${LCRYPTO_SRC}/gost/gost.h \
349 ${LCRYPTO_SRC}/hkdf/hkdf.h \
350 ${LCRYPTO_SRC}/hmac/hmac.h \
351 ${LCRYPTO_SRC}/idea/idea.h \
352 ${LCRYPTO_SRC}/lhash/lhash.h \
353 ${LCRYPTO_SRC}/md4/md4.h \
354 ${LCRYPTO_SRC}/md5/md5.h \
355 ${LCRYPTO_SRC}/modes/modes.h \
356 ${LCRYPTO_SRC}/objects/objects.h \
357 ${LCRYPTO_SRC}/ocsp/ocsp.h \
358 ${LCRYPTO_SRC}/opensslfeatures.h \
359 ${LCRYPTO_SRC}/opensslv.h \
360 ${LCRYPTO_SRC}/ossl_typ.h \
361 ${LCRYPTO_SRC}/pem/pem.h \
362 ${LCRYPTO_SRC}/pem/pem2.h \
363 ${LCRYPTO_SRC}/pkcs12/pkcs12.h \
364 ${LCRYPTO_SRC}/pkcs7/pkcs7.h \
365 ${LCRYPTO_SRC}/poly1305/poly1305.h \
366 ${LCRYPTO_SRC}/rand/rand.h \
367 ${LCRYPTO_SRC}/rc2/rc2.h \
368 ${LCRYPTO_SRC}/rc4/rc4.h \
369 ${LCRYPTO_SRC}/ripemd/ripemd.h \
370 ${LCRYPTO_SRC}/rsa/rsa.h \
371 ${LCRYPTO_SRC}/sha/sha.h \
372 ${LCRYPTO_SRC}/stack/safestack.h \
373 ${LCRYPTO_SRC}/stack/stack.h \
374 ${LCRYPTO_SRC}/ts/ts.h \
375 ${LCRYPTO_SRC}/txt_db/txt_db.h \
376 ${LCRYPTO_SRC}/ui/ui.h \
377 ${LCRYPTO_SRC}/ui/ui_compat.h \
378 ${LCRYPTO_SRC}/whrlpool/whrlpool.h \
379 ${LCRYPTO_SRC}/x509/x509.h \
380 ${LCRYPTO_SRC}/x509/x509_vfy.h \
381 ${LCRYPTO_SRC}/x509v3/x509v3.h
383 HDRS_GEN=\
384 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
385 ${.OBJDIR}/obj_mac.h
387 prereq: obj_mac.h
389 includes: prereq
390 @test -d ${DESTDIR}/usr/include/openssl || \
391 mkdir ${DESTDIR}/usr/include/openssl
392 @for i in $(HDRS); do \
393 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
394 ${INSTALL} ${INSTALL_COPY} ${INC_INSTALL_OWN} -m 444 $$i\
395 ${DESTDIR}/usr/include/openssl"; \
396 echo $$j; \
397 eval "$$j"; \
398 done; \
399 for i in $(HDRS_GEN); do \
400 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
401 ${INSTALL} ${INSTALL_COPY} ${INC_INSTALL_OWN} -m 444 $$i\
402 ${DESTDIR}/usr/include/openssl"; \
403 echo $$j; \
404 eval "$$j"; \
405 done;
407 ${VERSION_SCRIPT}: ${SYMBOL_LIST}
408 { printf '{\n\tglobal:\n'; \
409 sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \
410 printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@
412 # generated
413 CFLAGS+= -I${.OBJDIR}
415 GENERATED=obj_mac.h obj_dat.h
416 CLEANFILES+=${GENERATED} obj_mac.num.tmp
417 SSL_OBJECTS=${LCRYPTO_SRC}/objects
419 obj_mac.h: ${SSL_OBJECTS}/objects.h ${SSL_OBJECTS}/obj_mac.num ${SSL_OBJECTS}/objects.txt ${SSL_OBJECTS}/objects.pl
420 cat ${SSL_OBJECTS}/obj_mac.num > obj_mac.num.tmp
421 /usr/bin/perl ${SSL_OBJECTS}/objects.pl ${SSL_OBJECTS}/objects.txt obj_mac.num.tmp obj_mac.h
423 obj_dat.h: obj_mac.h ${SSL_OBJECTS}/obj_dat.pl
424 /usr/bin/perl ${SSL_OBJECTS}/obj_dat.pl obj_mac.h obj_dat.h
426 .if exists (${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
427 .include "${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc"
428 .else
429 CFLAGS+=-DOPENSSL_NO_ASM
430 SRCS+= aes_core.c aes_cbc.c
431 SRCS+= bf_enc.c
432 SRCS+= bn_asm.c
433 SRCS+= camellia.c cmll_cbc.c cmll_misc.c
434 SRCS+= des_enc.c fcrypt_b.c
435 SRCS+= rc4_enc.c rc4_skey.c
436 SRCS+= wp_block.c
437 .endif
439 BUILDFIRST = ${GENERATED}
441 BUILDFIRST = ${GENERATED}
443 .include "compat.mk"
444 .include <bsd.lib.mk>
446 distribution:
447 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} -m 444 \
448 ${.CURDIR}/openssl.cnf ${DESTDIR}/etc/ssl/openssl.cnf && \
449 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN }-m 444 \
450 ${.CURDIR}/cert.pem ${DESTDIR}/etc/ssl/cert.pem && \
451 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} -m 444 \
452 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf
454 all: ${PC_FILES}
455 ${PC_FILES}: opensslv.h
456 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
458 beforeinstall:
459 ${INSTALL} -m 755 -d ${DESTDIR}/usr/lib/pkgconfig
460 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} \
461 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
463 .include <bsd.subdir.mk>