Merge commit 'dfc115332c94a2f62058ac7f2bce7631fbd20b3d'
[unleashed/tickless.git] / lib / libcrypto / Makefile
blobcf4a1aed044c1797f2b29856f6d8ac25421f9d7f
1 # $OpenBSD: Makefile,v 1.23 2017/08/28 17:41:59 jsing 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
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
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
117 # dso/
118 SRCS+= dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
119 SRCS+= dso_openssl.c
121 # ec/
122 SRCS+= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
123 SRCS+= ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
124 SRCS+= ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c
125 SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c
126 SRCS+= ecp_oct.c ec2_oct.c ec_oct.c
128 # ecdh/
129 SRCS+= ech_lib.c ech_key.c ech_err.c
131 # ecdsa/
132 SRCS+= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
134 # engine/
135 SRCS+= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
136 SRCS+= eng_table.c eng_pkey.c eng_fat.c eng_all.c
137 SRCS+= tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
138 SRCS+= tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c
139 SRCS+= eng_openssl.c eng_cnf.c eng_dyn.c
140 # XXX unnecessary? handled in EVP now...
141 # SRCS+= eng_aesni.c # local addition
143 # err/
144 SRCS+= err.c err_all.c err_prn.c
146 # evp/
147 SRCS+= encode.c digest.c evp_enc.c evp_key.c
148 SRCS+= e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
149 SRCS+= e_rc4.c e_aes.c names.c
150 SRCS+= e_xcbc_d.c e_rc2.c e_cast.c
151 SRCS+= m_null.c m_md4.c m_md5.c m_sha1.c m_wp.c
152 SRCS+= m_dss.c m_dss1.c m_ripemd.c m_ecdsa.c
153 SRCS+= p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
154 SRCS+= bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
155 SRCS+= c_all.c evp_lib.c
156 SRCS+= evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
157 SRCS+= e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c
158 SRCS+= e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
159 SRCS+= e_chacha.c evp_aead.c e_chacha20poly1305.c
160 SRCS+= e_gost2814789.c m_gost2814789.c m_gostr341194.c m_streebog.c
161 SRCS+= m_md5_sha1.c
163 # gost/
164 SRCS+= gost2814789.c gost89_keywrap.c gost89_params.c gost89imit_ameth.c
165 SRCS+= gost89imit_pmeth.c gost_asn1.c gost_err.c gostr341001.c
166 SRCS+= gostr341001_ameth.c gostr341001_key.c gostr341001_params.c
167 SRCS+= gostr341001_pmeth.c gostr341194.c streebog.c
169 # hkdf/
170 SRCS+= hkdf.c
172 # hmac/
173 SRCS+= hmac.c hm_ameth.c hm_pmeth.c
175 # idea/
176 SRCS+= i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
178 # lhash/
179 SRCS+= lhash.c lh_stats.c
181 # md4/
182 SRCS+= md4_dgst.c md4_one.c
184 # md5/
185 SRCS+= md5_dgst.c md5_one.c
187 # modes/
188 SRCS+= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c ccm128.c xts128.c
190 # objects/
191 SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
193 # ocsp/
194 SRCS+= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
195 SRCS+= ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
197 # pem/
198 SRCS+= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
199 SRCS+= pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
201 # pkcs12/
202 SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
203 SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c
204 SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
206 # pkcs7/
207 SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
208 SRCS+= pk7_mime.c bio_pk7.c
210 # poly1305/
211 SRCS+= poly1305.c
213 # rand/
214 SRCS+= randfile.c rand_lib.c rand_err.c
216 # rc2/
217 SRCS+= rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
219 # ripemd/
220 SRCS+= rmd_dgst.c rmd_one.c
222 # rsa/
223 SRCS+= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
224 SRCS+= rsa_pk1.c rsa_none.c rsa_oaep.c rsa_chk.c
225 SRCS+= rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
226 SRCS+= rsa_pmeth.c rsa_crpt.c
228 # sha/
229 SRCS+= sha1dgst.c sha1_one.c sha256.c sha512.c
231 # stack/
232 SRCS+= stack.c
234 # ts/
235 SRCS+= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
236 SRCS+= ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
237 SRCS+= ts_asn1.c
239 # txt_db/
240 SRCS+=txt_db.c
242 # ui/
243 SRCS+= ui_err.c ui_lib.c ui_openssl.c ui_util.c
245 # whrlpool/
246 SRCS+= wp_dgst.c
248 # x509/
249 SRCS+= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
250 SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c
251 SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c
252 SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c
253 SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c
254 SRCS+= x509_trs.c by_file.c by_dir.c by_mem.c x509_vpm.c
256 # x509v3/
257 SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c
258 SRCS+= v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c
259 SRCS+= v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c
260 SRCS+= v3_ocsp.c v3_akeya.c v3_pmaps.c v3_pcons.c v3_ncons.c v3_pcia.c v3_pci.c
261 SRCS+= pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
263 .PATH: ${.CURDIR}/arch/${MACHINE_CPU} \
264 ${LCRYPTO_SRC} \
265 ${LCRYPTO_SRC}/aes \
266 ${LCRYPTO_SRC}/asn1 \
267 ${LCRYPTO_SRC}/bf \
268 ${LCRYPTO_SRC}/bio \
269 ${LCRYPTO_SRC}/bn \
270 ${LCRYPTO_SRC}/bn/asm \
271 ${LCRYPTO_SRC}/buffer \
272 ${LCRYPTO_SRC}/camellia \
273 ${LCRYPTO_SRC}/cast \
274 ${LCRYPTO_SRC}/chacha \
275 ${LCRYPTO_SRC}/cmac \
276 ${LCRYPTO_SRC}/comp \
277 ${LCRYPTO_SRC}/conf \
278 ${LCRYPTO_SRC}/curve25519 \
279 ${LCRYPTO_SRC}/des \
280 ${LCRYPTO_SRC}/dh \
281 ${LCRYPTO_SRC}/dsa \
282 ${LCRYPTO_SRC}/dso \
283 ${LCRYPTO_SRC}/ec \
284 ${LCRYPTO_SRC}/ecdh \
285 ${LCRYPTO_SRC}/ecdsa \
286 ${LCRYPTO_SRC}/engine \
287 ${LCRYPTO_SRC}/err \
288 ${LCRYPTO_SRC}/evp \
289 ${LCRYPTO_SRC}/gost \
290 ${LCRYPTO_SRC}/hkdf \
291 ${LCRYPTO_SRC}/hmac \
292 ${LCRYPTO_SRC}/idea \
293 ${LCRYPTO_SRC}/lhash \
294 ${LCRYPTO_SRC}/md4 \
295 ${LCRYPTO_SRC}/md5 \
296 ${LCRYPTO_SRC}/modes \
297 ${LCRYPTO_SRC}/objects \
298 ${LCRYPTO_SRC}/ocsp \
299 ${LCRYPTO_SRC}/pem \
300 ${LCRYPTO_SRC}/perlasm \
301 ${LCRYPTO_SRC}/pkcs12 \
302 ${LCRYPTO_SRC}/pkcs7 \
303 ${LCRYPTO_SRC}/poly1305 \
304 ${LCRYPTO_SRC}/rand \
305 ${LCRYPTO_SRC}/rc2 \
306 ${LCRYPTO_SRC}/rc4 \
307 ${LCRYPTO_SRC}/ripemd \
308 ${LCRYPTO_SRC}/rsa \
309 ${LCRYPTO_SRC}/sha \
310 ${LCRYPTO_SRC}/stack \
311 ${LCRYPTO_SRC}/threads \
312 ${LCRYPTO_SRC}/ts \
313 ${LCRYPTO_SRC}/txt_db \
314 ${LCRYPTO_SRC}/ui \
315 ${LCRYPTO_SRC}/whrlpool \
316 ${LCRYPTO_SRC}/x509 \
317 ${LCRYPTO_SRC}/x509v3
319 HDRS=\
320 ${LCRYPTO_SRC}/aes/aes.h \
321 ${LCRYPTO_SRC}/asn1/asn1.h \
322 ${LCRYPTO_SRC}/asn1/asn1_mac.h \
323 ${LCRYPTO_SRC}/asn1/asn1t.h \
324 ${LCRYPTO_SRC}/bf/blowfish.h \
325 ${LCRYPTO_SRC}/bio/bio.h \
326 ${LCRYPTO_SRC}/bn/bn.h \
327 ${LCRYPTO_SRC}/buffer/buffer.h \
328 ${LCRYPTO_SRC}/camellia/camellia.h \
329 ${LCRYPTO_SRC}/cast/cast.h \
330 ${LCRYPTO_SRC}/chacha/chacha.h \
331 ${LCRYPTO_SRC}/cmac/cmac.h \
332 ${LCRYPTO_SRC}/comp/comp.h \
333 ${LCRYPTO_SRC}/conf/conf.h \
334 ${LCRYPTO_SRC}/conf/conf_api.h \
335 ${LCRYPTO_SRC}/crypto.h \
336 ${LCRYPTO_SRC}/curve25519/curve25519.h \
337 ${LCRYPTO_SRC}/des/des.h \
338 ${LCRYPTO_SRC}/dh/dh.h \
339 ${LCRYPTO_SRC}/dsa/dsa.h \
340 ${LCRYPTO_SRC}/dso/dso.h \
341 ${LCRYPTO_SRC}/ec/ec.h \
342 ${LCRYPTO_SRC}/ecdh/ecdh.h \
343 ${LCRYPTO_SRC}/ecdsa/ecdsa.h \
344 ${LCRYPTO_SRC}/engine/engine.h \
345 ${LCRYPTO_SRC}/err/err.h \
346 ${LCRYPTO_SRC}/evp/evp.h \
347 ${LCRYPTO_SRC}/gost/gost.h \
348 ${LCRYPTO_SRC}/hkdf/hkdf.h \
349 ${LCRYPTO_SRC}/hmac/hmac.h \
350 ${LCRYPTO_SRC}/idea/idea.h \
351 ${LCRYPTO_SRC}/lhash/lhash.h \
352 ${LCRYPTO_SRC}/md4/md4.h \
353 ${LCRYPTO_SRC}/md5/md5.h \
354 ${LCRYPTO_SRC}/modes/modes.h \
355 ${LCRYPTO_SRC}/objects/objects.h \
356 ${LCRYPTO_SRC}/ocsp/ocsp.h \
357 ${LCRYPTO_SRC}/opensslfeatures.h \
358 ${LCRYPTO_SRC}/opensslv.h \
359 ${LCRYPTO_SRC}/ossl_typ.h \
360 ${LCRYPTO_SRC}/pem/pem.h \
361 ${LCRYPTO_SRC}/pem/pem2.h \
362 ${LCRYPTO_SRC}/pkcs12/pkcs12.h \
363 ${LCRYPTO_SRC}/pkcs7/pkcs7.h \
364 ${LCRYPTO_SRC}/poly1305/poly1305.h \
365 ${LCRYPTO_SRC}/rand/rand.h \
366 ${LCRYPTO_SRC}/rc2/rc2.h \
367 ${LCRYPTO_SRC}/rc4/rc4.h \
368 ${LCRYPTO_SRC}/ripemd/ripemd.h \
369 ${LCRYPTO_SRC}/rsa/rsa.h \
370 ${LCRYPTO_SRC}/sha/sha.h \
371 ${LCRYPTO_SRC}/stack/safestack.h \
372 ${LCRYPTO_SRC}/stack/stack.h \
373 ${LCRYPTO_SRC}/ts/ts.h \
374 ${LCRYPTO_SRC}/txt_db/txt_db.h \
375 ${LCRYPTO_SRC}/ui/ui.h \
376 ${LCRYPTO_SRC}/ui/ui_compat.h \
377 ${LCRYPTO_SRC}/whrlpool/whrlpool.h \
378 ${LCRYPTO_SRC}/x509/x509.h \
379 ${LCRYPTO_SRC}/x509/x509_vfy.h \
380 ${LCRYPTO_SRC}/x509v3/x509v3.h
382 HDRS_GEN=\
383 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
384 ${.OBJDIR}/obj_mac.h
386 prereq: obj_mac.h
388 includes: prereq
389 @test -d ${DESTDIR}/usr/include/openssl || \
390 mkdir ${DESTDIR}/usr/include/openssl
391 @for i in $(HDRS); do \
392 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
393 ${INSTALL} ${INSTALL_COPY} ${INC_INSTALL_OWN} -m 444 $$i\
394 ${DESTDIR}/usr/include/openssl"; \
395 echo $$j; \
396 eval "$$j"; \
397 done; \
398 for i in $(HDRS_GEN); do \
399 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
400 ${INSTALL} ${INSTALL_COPY} ${INC_INSTALL_OWN} -m 444 $$i\
401 ${DESTDIR}/usr/include/openssl"; \
402 echo $$j; \
403 eval "$$j"; \
404 done;
406 ${VERSION_SCRIPT}: ${SYMBOL_LIST}
407 { printf '{\n\tglobal:\n'; \
408 sed '/^[._a-zA-Z]/s/$$/;/; s/^/ /' ${SYMBOL_LIST}; \
409 printf '\n\tlocal:\n\t\t*;\n};\n'; } >$@.tmp && mv $@.tmp $@
411 # generated
412 CFLAGS+= -I${.OBJDIR}
414 GENERATED=obj_mac.h obj_dat.h
415 CLEANFILES+=${GENERATED} obj_mac.num.tmp
416 SSL_OBJECTS=${LCRYPTO_SRC}/objects
418 obj_mac.h: ${SSL_OBJECTS}/objects.h ${SSL_OBJECTS}/obj_mac.num ${SSL_OBJECTS}/objects.txt ${SSL_OBJECTS}/objects.pl
419 cat ${SSL_OBJECTS}/obj_mac.num > obj_mac.num.tmp
420 /usr/bin/perl ${SSL_OBJECTS}/objects.pl ${SSL_OBJECTS}/objects.txt obj_mac.num.tmp obj_mac.h
422 obj_dat.h: obj_mac.h ${SSL_OBJECTS}/obj_dat.pl
423 /usr/bin/perl ${SSL_OBJECTS}/obj_dat.pl obj_mac.h obj_dat.h
425 .if exists (${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
426 .include "${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc"
427 .else
428 CFLAGS+=-DOPENSSL_NO_ASM
429 SRCS+= aes_core.c aes_cbc.c
430 SRCS+= bf_enc.c
431 SRCS+= bn_asm.c
432 SRCS+= camellia.c cmll_cbc.c cmll_misc.c
433 SRCS+= des_enc.c fcrypt_b.c
434 SRCS+= rc4_enc.c rc4_skey.c
435 SRCS+= wp_block.c
436 .endif
438 BUILDFIRST = ${GENERATED}
440 BUILDFIRST = ${GENERATED}
442 .include "compat.mk"
443 .include <bsd.lib.mk>
445 distribution:
446 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} -m 444 \
447 ${.CURDIR}/openssl.cnf ${DESTDIR}/etc/ssl/openssl.cnf && \
448 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN }-m 444 \
449 ${.CURDIR}/cert.pem ${DESTDIR}/etc/ssl/cert.pem && \
450 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} -m 444 \
451 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf
453 all: ${PC_FILES}
454 ${PC_FILES}: opensslv.h
455 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
457 beforeinstall:
458 ${INSTALL} -m 755 -d ${DESTDIR}/usr/lib/pkgconfig
459 ${INSTALL} ${INSTALL_COPY} ${LIB_INSTALL_OWN} \
460 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
462 .include <bsd.subdir.mk>