1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Copyright 2014 Alexander Pyhalov
  24 # Use is subject to license terms.
  25 #
  26 
  27 LIBRARY=        libsunw_crypto.a
  28 VERS=           .1
  29 
  30 COMMON_OBJECTS =        cpt_err.o  \
  31                         cryptlib.o \
  32                         cversion.o \
  33                         ebcdic.o   \
  34                         ex_data.o  \
  35                         fips_ers.o \
  36                         mem_dbg.o  \
  37                         mem.o      \
  38                         o_dir.o    \
  39                         o_fips.o   \
  40                         o_init.o   \
  41                         o_str.o    \
  42                         o_time.o   \
  43                         uid.o
  44 OBJECTS +=      $(COMMON_OBJECTS)
  45 
  46 # aes/*
  47 AES_OBJECTS =   aes_cfb.o  \
  48                 aes_ctr.o  \
  49                 aes_ecb.o  \
  50                 aes_ige.o  \
  51                 aes_misc.o \
  52                 aes_ofb.o  \
  53                 aes_wrap.o
  54 OBJECTS +=      $(AES_OBJECTS)
  55 
  56 # asn1/*
  57 ASN1_OBJECTS = a_bitstr.o  \
  58                 a_bool.o    \
  59                 a_bytes.o   \
  60                 a_d2i_fp.o  \
  61                 a_digest.o  \
  62                 a_dup.o     \
  63                 a_enum.o    \
  64                 a_gentm.o   \
  65                 a_i2d_fp.o  \
  66                 a_int.o     \
  67                 a_mbstr.o   \
  68                 a_object.o  \
  69                 a_octet.o   \
  70                 a_print.o   \
  71                 a_set.o     \
  72                 a_sign.o    \
  73                 a_strex.o   \
  74                 a_strnid.o  \
  75                 a_time.o    \
  76                 a_type.o    \
  77                 a_utctm.o   \
  78                 a_utf8.o    \
  79                 a_verify.o  \
  80                 ameth_lib.o \
  81                 asn1_err.o  \
  82                 asn1_gen.o  \
  83                 asn1_lib.o  \
  84                 asn1_par.o  \
  85                 asn_mime.o  \
  86                 asn_moid.o  \
  87                 asn_pack.o  \
  88                 bio_asn1.o  \
  89                 bio_ndef.o  \
  90                 d2i_pr.o    \
  91                 d2i_pu.o    \
  92                 evp_asn1.o  \
  93                 f_enum.o    \
  94                 f_int.o     \
  95                 f_string.o  \
  96                 i2d_pr.o    \
  97                 i2d_pu.o    \
  98                 n_pkey.o    \
  99                 nsseq.o     \
 100                 p5_pbe.o    \
 101                 p5_pbev2.o  \
 102                 p8_pkey.o   \
 103                 t_bitst.o   \
 104                 t_crl.o     \
 105                 t_pkey.o    \
 106                 t_req.o     \
 107                 t_spki.o    \
 108                 t_x509.o    \
 109                 t_x509a.o   \
 110                 tasn_dec.o  \
 111                 tasn_enc.o  \
 112                 tasn_fre.o  \
 113                 tasn_new.o  \
 114                 tasn_prn.o  \
 115                 tasn_typ.o  \
 116                 tasn_utl.o  \
 117                 x_algor.o   \
 118                 x_attrib.o  \
 119                 x_bignum.o  \
 120                 x_crl.o     \
 121                 x_exten.o   \
 122                 x_info.o    \
 123                 x_long.o    \
 124                 x_name.o    \
 125                 x_nx509.o   \
 126                 x_pkey.o    \
 127                 x_pubkey.o  \
 128                 x_req.o     \
 129                 x_sig.o     \
 130                 x_spki.o    \
 131                 x_val.o     \
 132                 x_x509.o    \
 133                 x_x509a.o
 134 OBJECTS += $(ASN1_OBJECTS)
 135 
 136 # bf/*
 137 BF_OBJECTS =    bf_cfb64.o \
 138                 bf_ecb.o   \
 139                 bf_ofb64.o \
 140                 bf_skey.o
 141 OBJECTS += $(BF_OBJECTS)
 142 
 143 # bio/*
 144 BIO_OBJECTS =   b_dump.o        \
 145                 b_print.o       \
 146                 b_sock.o        \
 147                 bf_buff.o       \
 148                 bf_nbio.o       \
 149                 bf_null.o       \
 150                 bio_cb.o        \
 151                 bio_err.o       \
 152                 bio_lib.o       \
 153                 bss_acpt.o      \
 154                 bss_bio.o       \
 155                 bss_conn.o      \
 156                 bss_dgram.o     \
 157                 bss_fd.o        \
 158                 bss_file.o      \
 159                 bss_log.o       \
 160                 bss_mem.o       \
 161                 bss_null.o      \
 162                 bss_sock.o
 163 OBJECTS += $(BIO_OBJECTS)
 164 
 165 # bn/*
 166 BN_OBJECTS =    bn_add.o        \
 167                 bn_blind.o      \
 168                 bn_const.o      \
 169                 bn_ctx.o        \
 170                 bn_depr.o       \
 171                 bn_div.o        \
 172                 bn_err.o        \
 173                 bn_exp.o        \
 174                 bn_exp2.o       \
 175                 bn_gcd.o        \
 176                 bn_gf2m.o       \
 177                 bn_kron.o       \
 178                 bn_lib.o        \
 179                 bn_mod.o        \
 180                 bn_mont.o       \
 181                 bn_mpi.o        \
 182                 bn_mul.o        \
 183                 bn_nist.o       \
 184                 bn_prime.o      \
 185                 bn_print.o      \
 186                 bn_rand.o       \
 187                 bn_recp.o       \
 188                 bn_shift.o      \
 189                 bn_sqr.o        \
 190                 bn_sqrt.o       \
 191                 bn_word.o       \
 192                 bn_x931p.o
 193 OBJECTS += $(BN_OBJECTS)
 194 
 195 # buffer/*
 196 BUFFER_OBJECTS =        buf_err.o       \
 197                         buf_str.o       \
 198                         buffer.o
 199 OBJECTS += $(BUFFER_OBJECTS)
 200 
 201 # camellia/*
 202 CAMELLIA_OBJECTS =      cmll_cfb.o      \
 203                         cmll_ctr.o      \
 204                         cmll_ecb.o      \
 205                         cmll_ofb.o      \
 206                         cmll_utl.o
 207 OBJECTS += $(CAMELLIA_OBJECTS)
 208 
 209 # cast/*
 210 CAST_OBJECTS =  c_cfb64.o       \
 211                 c_ecb.o         \
 212                 c_enc.o         \
 213                 c_ofb64.o       \
 214                 c_skey.o
 215 OBJECTS += $(CAST_OBJECTS)
 216 
 217 # cmac/*
 218 CMAC_OBJECTS =  cm_ameth.o      \
 219                 cm_pmeth.o      \
 220                 cmac.o
 221 OBJECTS += $(CMAC_OBJECTS)
 222 
 223 # cms/*
 224 CMS_OBJECTS =   cms_asn1.o      \
 225                 cms_att.o       \
 226                 cms_cd.o        \
 227                 cms_dd.o        \
 228                 cms_enc.o       \
 229                 cms_env.o       \
 230                 cms_err.o       \
 231                 cms_ess.o       \
 232                 cms_io.o        \
 233                 cms_lib.o       \
 234                 cms_pwri.o      \
 235                 cms_sd.o        \
 236                 cms_smime.o
 237 OBJECTS += $(CMS_OBJECTS)
 238 
 239 # comp/*
 240 COMP_OBJECTS =  c_rle.o         \
 241                 c_zlib.o        \
 242                 comp_err.o      \
 243                 comp_lib.o
 244 OBJECTS += $(COMP_OBJECTS)
 245 
 246 # conf/*
 247 CONF_OBJECTS =  conf_api.o      \
 248                 conf_def.o      \
 249                 conf_err.o      \
 250                 conf_lib.o      \
 251                 conf_mall.o     \
 252                 conf_mod.o      \
 253                 conf_sap.o
 254 OBJECTS += $(CONF_OBJECTS)
 255 
 256 # des/*
 257 DES_OBJECTS =   cbc_cksm.o      \
 258                 cbc_enc.o       \
 259                 cfb_enc.o       \
 260                 cfb64ede.o      \
 261                 cfb64enc.o      \
 262                 des_old.o       \
 263                 des_old2.o      \
 264                 ecb_enc.o       \
 265                 ecb3_enc.o      \
 266                 ede_cbcm_enc.o  \
 267                 enc_read.o      \
 268                 enc_writ.o      \
 269                 fcrypt.o        \
 270                 ofb_enc.o       \
 271                 ofb64ede.o      \
 272                 ofb64enc.o      \
 273                 pcbc_enc.o      \
 274                 qud_cksm.o      \
 275                 rand_key.o      \
 276                 read2pwd.o      \
 277                 rpc_enc.o       \
 278                 set_key.o       \
 279                 str2key.o       \
 280                 xcbc_enc.o
 281 OBJECTS += $(DES_OBJECTS)
 282 
 283 # dh/*
 284 DH_OBJECTS =    dh_ameth.o      \
 285                 dh_asn1.o       \
 286                 dh_check.o      \
 287                 dh_depr.o       \
 288                 dh_err.o        \
 289                 dh_gen.o        \
 290                 dh_key.o        \
 291                 dh_lib.o        \
 292                 dh_pmeth.o      \
 293                 dh_prn.o
 294 OBJECTS += $(DH_OBJECTS)
 295 
 296 # dsa/*
 297 DSA_OBJECTS =   dsa_ameth.o     \
 298                 dsa_asn1.o      \
 299                 dsa_depr.o      \
 300                 dsa_err.o       \
 301                 dsa_gen.o       \
 302                 dsa_key.o       \
 303                 dsa_lib.o       \
 304                 dsa_ossl.o      \
 305                 dsa_pmeth.o     \
 306                 dsa_prn.o       \
 307                 dsa_sign.o      \
 308                 dsa_vrf.o
 309 OBJECTS += $(DSA_OBJECTS)
 310 
 311 # dso/*
 312 DSO_OBJECTS =   dso_beos.o      \
 313                 dso_dl.o        \
 314                 dso_dlfcn.o     \
 315                 dso_err.o       \
 316                 dso_lib.o       \
 317                 dso_null.o      \
 318                 dso_openssl.o   \
 319                 dso_vms.o       \
 320                 dso_win32.o
 321 OBJECTS += $(DSO_OBJECTS)
 322 
 323 # engine/*
 324 ENGINE_OBJECTS =        eng_all.o       \
 325                         eng_cnf.o       \
 326                         eng_cryptodev.o \
 327                         eng_ctrl.o      \
 328                         eng_dyn.o       \
 329                         eng_err.o       \
 330                         eng_fat.o       \
 331                         eng_init.o      \
 332                         eng_lib.o       \
 333                         eng_list.o      \
 334                         eng_openssl.o   \
 335                         eng_pkey.o      \
 336                         eng_rdrand.o    \
 337                         eng_rsax.o      \
 338                         eng_table.o     \
 339                         hw_pk11.o       \
 340                         hw_pk11_pub.o   \
 341                         tb_asnmth.o     \
 342                         tb_cipher.o     \
 343                         tb_dh.o \
 344                         tb_digest.o     \
 345                         tb_dsa.o        \
 346                         tb_ecdh.o       \
 347                         tb_ecdsa.o      \
 348                         tb_pkmeth.o     \
 349                         tb_rand.o       \
 350                         tb_rsa.o        \
 351                         tb_store.o
 352 OBJECTS += $(ENGINE_OBJECTS)
 353 
 354 # err/*
 355 ERR_OBJECTS =   err_all.o       \
 356                 err_prn.o       \
 357                 err.o
 358 OBJECTS += $(ERR_OBJECTS)
 359 
 360 # evp/*
 361 EVP_OBJECTS =   bio_b64.o               \
 362                 bio_enc.o               \
 363                 bio_md.o                \
 364                 bio_ok.o                \
 365                 c_all.o                 \
 366                 c_allc.o                \
 367                 c_alld.o                \
 368                 digest.o                \
 369                 e_aes.o                 \
 370                 e_aes_cbc_hmac_sha1.o   \
 371                 e_bf.o                  \
 372                 e_camellia.o            \
 373                 e_cast.o                \
 374                 e_des.o                 \
 375                 e_des3.o                \
 376                 e_idea.o                \
 377                 e_null.o                \
 378                 e_old.o                 \
 379                 e_rc2.o                 \
 380                 e_rc4.o                 \
 381                 e_rc4_hmac_md5.o        \
 382                 e_rc5.o                 \
 383                 e_seed.o                \
 384                 e_xcbc_d.o              \
 385                 encode.o                \
 386                 evp_acnf.o              \
 387                 evp_cnf.o               \
 388                 evp_enc.o               \
 389                 evp_err.o               \
 390                 evp_fips.o              \
 391                 evp_key.o               \
 392                 evp_lib.o               \
 393                 evp_pbe.o               \
 394                 evp_pkey.o              \
 395                 m_dss.o                 \
 396                 m_dss1.o                \
 397                 m_ecdsa.o               \
 398                 m_md2.o                 \
 399                 m_md4.o                 \
 400                 m_md5.o                 \
 401                 m_mdc2.o                \
 402                 m_null.o                \
 403                 m_ripemd.o              \
 404                 m_sha.o                 \
 405                 m_sha1.o                \
 406                 m_sigver.o              \
 407                 m_wp.o                  \
 408                 names.o                 \
 409                 p5_crpt.o               \
 410                 p5_crpt2.o              \
 411                 p_dec.o                 \
 412                 p_enc.o                 \
 413                 p_lib.o                 \
 414                 p_open.o                \
 415                 p_seal.o                \
 416                 p_sign.o                \
 417                 p_verify.o              \
 418                 pmeth_fn.o              \
 419                 pmeth_gn.o              \
 420                 pmeth_lib.o
 421 OBJECTS += $(EVP_OBJECTS)
 422 
 423 # hmac/*
 424 HMAC_OBJECTS =  hm_ameth.o      \
 425                 hm_pmeth.o      \
 426                 hmac.o
 427 OBJECTS += $(HMAC_OBJECTS)
 428 
 429 # krb5/*
 430 KRB5_OBJECTS =  krb5_asn.o
 431 OBJECTS += $(KRB5_OBJECTS)
 432 
 433 # lhash/*
 434 LHASH_OBJECTS = lh_stats.o      \
 435                 lhash.o
 436 OBJECTS += $(LHASH_OBJECTS)
 437 
 438 # md2/*
 439 MD2_OBJECTS =   md2_dgst.o      \
 440                 md2_one.o
 441 OBJECTS += $(MD2_OBJECTS)
 442 
 443 # md4/*
 444 MD4_OBJECTS =   md4_dgst.o      \
 445                 md4_one.o
 446 OBJECTS += $(MD4_OBJECTS)
 447 
 448 # md5/*
 449 MD5_OBJECTS =   md5_dgst.o      \
 450                 md5_one.o
 451 OBJECTS += $(MD5_OBJECTS)
 452 
 453 # modes/*
 454 MODES_OBJECTS = cbc128.o        \
 455                 ccm128.o        \
 456                 cfb128.o        \
 457                 ctr128.o        \
 458                 cts128.o        \
 459                 gcm128.o        \
 460                 ofb128.o        \
 461                 xts128.o
 462 OBJECTS += $(MODES_OBJECTS)
 463 
 464 # objects/*
 465 OBJECTS_OBJECTS =       o_names.o       \
 466                         obj_dat.o       \
 467                         obj_err.o       \
 468                         obj_lib.o       \
 469                         obj_xref.o
 470 OBJECTS += $(OBJECTS_OBJECTS)
 471 
 472 # ocsp/*
 473 OCSP_OBJECTS =  ocsp_asn.o      \
 474                 ocsp_cl.o       \
 475                 ocsp_err.o      \
 476                 ocsp_ext.o      \
 477                 ocsp_ht.o       \
 478                 ocsp_lib.o      \
 479                 ocsp_prn.o      \
 480                 ocsp_srv.o      \
 481                 ocsp_vfy.o
 482 OBJECTS += $(OCSP_OBJECTS)
 483 
 484 # pem/*
 485 PEM_OBJECTS =   pem_all.o       \
 486                 pem_err.o       \
 487                 pem_info.o      \
 488                 pem_lib.o       \
 489                 pem_oth.o       \
 490                 pem_pk8.o       \
 491                 pem_pkey.o      \
 492                 pem_seal.o      \
 493                 pem_sign.o      \
 494                 pem_x509.o      \
 495                 pem_xaux.o      \
 496                 pvkfmt.o
 497 OBJECTS += $(PEM_OBJECTS)
 498 
 499 # pkcs12/*
 500 PKCS12_OBJECTS =        p12_add.o       \
 501                         p12_asn.o       \
 502                         p12_attr.o      \
 503                         p12_crpt.o      \
 504                         p12_crt.o       \
 505                         p12_decr.o      \
 506                         p12_init.o      \
 507                         p12_key.o       \
 508                         p12_kiss.o      \
 509                         p12_mutl.o      \
 510                         p12_npas.o      \
 511                         p12_p8d.o       \
 512                         p12_p8e.o       \
 513                         p12_utl.o       \
 514                         pk12err.o
 515 OBJECTS += $(PKCS12_OBJECTS)
 516 
 517 # pkcs7/*
 518 PKCS7_OBJECTS = bio_pk7.o       \
 519                 pk7_asn1.o      \
 520                 pk7_attr.o      \
 521                 pk7_doit.o      \
 522                 pk7_lib.o       \
 523                 pk7_mime.o      \
 524                 pk7_smime.o     \
 525                 pkcs7err.o
 526 OBJECTS += $(PKCS7_OBJECTS)
 527 
 528 # pqueue/*
 529 PQUEUE_OBJECTS = pqueue.o
 530 OBJECTS += $(PQUEUE_OBJECTS)
 531 
 532 # rand/*
 533 RAND_OBJECTS =  md_rand.o       \
 534                 rand_egd.o      \
 535                 rand_err.o      \
 536                 rand_lib.o      \
 537                 rand_nw.o       \
 538                 rand_os2.o      \
 539                 rand_unix.o     \
 540                 rand_win.o      \
 541                 randfile.o
 542 OBJECTS += $(RAND_OBJECTS)
 543 
 544 # rc2/*
 545 RC2_OBJECTS =   rc2_cbc.o       \
 546                 rc2_ecb.o       \
 547                 rc2_skey.o      \
 548                 rc2cfb64.o      \
 549                 rc2ofb64.o
 550 OBJECTS += $(RC2_OBJECTS)
 551 
 552 # rc4/*
 553 RC4_OBJECTS =   rc4_utl.o
 554 OBJECTS += $(RC4_OBJECTS)
 555 
 556 # ripemd/*
 557 RIPEMD_OBJECTS =        rmd_dgst.o      \
 558                         rmd_one.o
 559 OBJECTS += $(RIPEMD_OBJECTS)
 560 
 561 # rsa/*
 562 RSA_OBJECTS =   rsa_ameth.o     \
 563                 rsa_asn1.o      \
 564                 rsa_chk.o       \
 565                 rsa_crpt.o      \
 566                 rsa_depr.o      \
 567                 rsa_eay.o       \
 568                 rsa_err.o       \
 569                 rsa_gen.o       \
 570                 rsa_lib.o       \
 571                 rsa_none.o      \
 572                 rsa_null.o      \
 573                 rsa_oaep.o      \
 574                 rsa_pk1.o       \
 575                 rsa_pmeth.o     \
 576                 rsa_prn.o       \
 577                 rsa_pss.o       \
 578                 rsa_saos.o      \
 579                 rsa_sign.o      \
 580                 rsa_ssl.o       \
 581                 rsa_x931.o
 582 OBJECTS += $(RSA_OBJECTS)
 583 
 584 # sha/*
 585 SHA_OBJECTS =   sha1_one.o      \
 586                 sha1dgst.o      \
 587                 sha256.o        \
 588                 sha512.o        \
 589                 sha_dgst.o      \
 590                 sha_one.o
 591 OBJECTS += $(SHA_OBJECTS)
 592 
 593 # srp/*
 594 SRP_OBJECTS =   srp_lib.o       \
 595                 srp_vfy.o
 596 OBJECTS += $(SRP_OBJECTS)
 597 
 598 # stack/*
 599 STACK_OBJECTS = stack.o
 600 OBJECTS += $(STACK_OBJECTS)
 601 
 602 # ts/*
 603 TS_OBJECTS =    ts_asn1.o       \
 604                 ts_conf.o       \
 605                 ts_err.o        \
 606                 ts_lib.o        \
 607                 ts_req_print.o  \
 608                 ts_req_utils.o  \
 609                 ts_rsp_print.o  \
 610                 ts_rsp_sign.o   \
 611                 ts_rsp_utils.o  \
 612                 ts_rsp_verify.o \
 613                 ts_verify_ctx.o
 614 OBJECTS += $(TS_OBJECTS)
 615 
 616 # txt_db/*
 617 TXT_DB_OBJECTS =        txt_db.o
 618 OBJECTS += $(TXT_DB_OBJECTS)
 619 
 620 # ui/*
 621 UI_OBJECTS =    ui_compat.o     \
 622                 ui_err.o        \
 623                 ui_lib.o        \
 624                 ui_openssl.o    \
 625                 ui_util.o
 626 OBJECTS += $(UI_OBJECTS)
 627 
 628 # x509/*
 629 X509_OBJECTS =  by_dir.o        \
 630                 by_file.o       \
 631                 x_all.o         \
 632                 x509_att.o      \
 633                 x509_cmp.o      \
 634                 x509_d2.o       \
 635                 x509_def.o      \
 636                 x509_err.o      \
 637                 x509_ext.o      \
 638                 x509_lu.o       \
 639                 x509_obj.o      \
 640                 x509_r2x.o      \
 641                 x509_req.o      \
 642                 x509_set.o      \
 643                 x509_trs.o      \
 644                 x509_txt.o      \
 645                 x509_v3.o       \
 646                 x509_vfy.o      \
 647                 x509_vpm.o      \
 648                 x509cset.o      \
 649                 x509name.o      \
 650                 x509rset.o      \
 651                 x509spki.o      \
 652                 x509type.o
 653 OBJECTS += $(X509_OBJECTS)
 654 
 655 # x509v3/*
 656 X509V3_OBJECTS =        pcy_cache.o     \
 657                         pcy_data.o      \
 658                         pcy_lib.o       \
 659                         pcy_map.o       \
 660                         pcy_node.o      \
 661                         pcy_tree.o      \
 662                         v3_addr.o       \
 663                         v3_akey.o       \
 664                         v3_akeya.o      \
 665                         v3_alt.o        \
 666                         v3_asid.o       \
 667                         v3_bcons.o      \
 668                         v3_bitst.o      \
 669                         v3_conf.o       \
 670                         v3_cpols.o      \
 671                         v3_crld.o       \
 672                         v3_enum.o       \
 673                         v3_extku.o      \
 674                         v3_genn.o       \
 675                         v3_ia5.o        \
 676                         v3_info.o       \
 677                         v3_int.o        \
 678                         v3_lib.o        \
 679                         v3_ncons.o      \
 680                         v3_ocsp.o       \
 681                         v3_pci.o        \
 682                         v3_pcia.o       \
 683                         v3_pcons.o      \
 684                         v3_pku.o        \
 685                         v3_pmaps.o      \
 686                         v3_prn.o        \
 687                         v3_purp.o       \
 688                         v3_skey.o       \
 689                         v3_sxnet.o      \
 690                         v3_utl.o        \
 691                         v3err.o
 692 OBJECTS += $(X509V3_OBJECTS)
 693 
 694 # include library definitions
 695 include $(SRC)/lib/Makefile.lib
 696 
 697 CLOBBERFILES += $(LIBLINKS)
 698 
 699 LIBS =          $(DYNLIB)
 700 
 701 LDLIBS += -lsocket -lnsl -lc
 702 
 703 LINTFLAGS =     -uxn
 704 LINTFLAGS64 =   $(LINTFLAGS) -m64
 705 LINTOUT=        lint.out
 706 LINTSRC =       $(LINTLIB:%.ln=%)
 707 ROOTLINTDIR =   $(ROOTLIBDIR)
 708 ROOTLINT =      $(LINTSRC:%=$(ROOTLINTDIR)/%)
 709 
 710 CPPFLAGS +=     -I.. \
 711                 -I$(SRC)/lib/openssl/include
 712 
 713 CPPFLAGS +=     -D_REENTRANT
 714 CPPFLAGS +=     -DOPENSSL_THREADS
 715 CPPFLAGS +=     -DOPENSSL_PIC
 716 CPPFLAGS +=     -DDSO_DLFCN
 717 CPPFLAGS +=     -DHAVE_DLFCN_H
 718 CPPFLAGS +=     -DSOLARIS_OPENSSL
 719 CPPFLAGS +=     -DNO_WINDOWS_BRAINDEATH
 720 CPPFLAGS +=     -DOPENSSL_BN_ASM_GF2m
 721 CPPFLAGS +=     -DSHA1_ASM
 722 CPPFLAGS +=     -DSHA256_ASM
 723 CPPFLAGS +=     -DSHA512_ASM
 724 CPPFLAGS +=     -DMD5_ASM
 725 CPPFLAGS +=     -DAES_ASM
 726 CPPFLAGS +=     -DVPAES_ASM
 727 CPPFLAGS +=     -DGHASH_ASM
 728 CPPFLAGS +=     -DVPAES_ASM
 729 CPPFLAGS +=     -DOPENSSL_BN_ASM_MONT
 730 
 731 CFLAGS +=       $(CCVERBOSE)
 732 
 733 CERRWARN +=     -_gcc=-Wno-switch
 734 CERRWARN +=     -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 735 CERRWARN +=     -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 736 
 737 $(LINTLIB) :=   LINTFLAGS = -nvx -I..
 738 $(LINTLIB) :=   LINTFLAGS64 = -nvx -m64 -I..
 739 
 740 BUILD.perl =    $(PERL)  $< elf $(PERL_CPPFLAGS) > $@
 741 
 742 .KEEP_STATE:
 743 
 744 all : $(LIBS)
 745 
 746 lint :  lintcheck
 747 
 748 # include library targets
 749 include $(SRC)/lib/Makefile.targ
 750 
 751 pics/%.o:       ../%.c
 752         $(COMPILE.c) -o $@ $<
 753         $(POST_PROCESS_O)
 754 
 755 pics/%.o:       ../aes/%.c
 756         $(COMPILE.c) -o $@ $<
 757         $(POST_PROCESS_O)
 758 
 759 pics/%.o:       ../asn1/%.c
 760         $(COMPILE.c) -o $@ $<
 761         $(POST_PROCESS_O)
 762 
 763 pics/%.o:       ../bf/%.c
 764         $(COMPILE.c) -o $@ $<
 765         $(POST_PROCESS_O)
 766 
 767 pics/%.o:       ../bio/%.c
 768         $(COMPILE.c) -o $@ $<
 769         $(POST_PROCESS_O)
 770 
 771 pics/%.o:       ../bn/%.c
 772         $(COMPILE.c) -o $@ $<
 773         $(POST_PROCESS_O)
 774 
 775 pics/%.o:       ../buffer/%.c
 776         $(COMPILE.c) -o $@ $<
 777         $(POST_PROCESS_O)
 778 
 779 pics/%.o:       ../camellia/%.c
 780         $(COMPILE.c) -o $@ $<
 781         $(POST_PROCESS_O)
 782 
 783 pics/%.o:       ../cast/%.c
 784         $(COMPILE.c) -o $@ $<
 785         $(POST_PROCESS_O)
 786 
 787 pics/%.o:       ../cmac/%.c
 788         $(COMPILE.c) -o $@ $<
 789         $(POST_PROCESS_O)
 790 
 791 pics/%.o:       ../cms/%.c
 792         $(COMPILE.c) -o $@ $<
 793         $(POST_PROCESS_O)
 794 
 795 pics/%.o:       ../comp/%.c
 796         $(COMPILE.c) -o $@ $<
 797         $(POST_PROCESS_O)
 798 
 799 pics/%.o:       ../conf/%.c
 800         $(COMPILE.c) -o $@ $<
 801         $(POST_PROCESS_O)
 802 
 803 pics/%.o:       ../des/%.c
 804         $(COMPILE.c) -o $@ $<
 805         $(POST_PROCESS_O)
 806 
 807 pics/%.o:       ../dh/%.c
 808         $(COMPILE.c) -o $@ $<
 809         $(POST_PROCESS_O)
 810 
 811 pics/%.o:       ../dsa/%.c
 812         $(COMPILE.c) -o $@ $<
 813         $(POST_PROCESS_O)
 814 
 815 pics/%.o:       ../dso/%.c
 816         $(COMPILE.c) -o $@ $<
 817         $(POST_PROCESS_O)
 818 
 819 pics/%.o:       ../engine/%.c
 820         $(COMPILE.c) -o $@ $<
 821         $(POST_PROCESS_O)
 822 
 823 pics/%.o:       ../err/%.c
 824         $(COMPILE.c) -o $@ $<
 825         $(POST_PROCESS_O)
 826 
 827 pics/%.o:       ../evp/%.c
 828         $(COMPILE.c) -o $@ $<
 829         $(POST_PROCESS_O)
 830 
 831 pics/%.o:       ../hmac/%.c
 832         $(COMPILE.c) -o $@ $<
 833         $(POST_PROCESS_O)
 834 
 835 pics/%.o:       ../krb5/%.c
 836         $(COMPILE.c) -o $@ $<
 837         $(POST_PROCESS_O)
 838 
 839 pics/%.o:       ../lhash/%.c
 840         $(COMPILE.c) -o $@ $<
 841         $(POST_PROCESS_O)
 842 
 843 pics/%.o:       ../md2/%.c
 844         $(COMPILE.c) -o $@ $<
 845         $(POST_PROCESS_O)
 846 
 847 pics/%.o:       ../md4/%.c
 848         $(COMPILE.c) -o $@ $<
 849         $(POST_PROCESS_O)
 850 
 851 pics/%.o:       ../md5/%.c
 852         $(COMPILE.c) -o $@ $<
 853         $(POST_PROCESS_O)
 854 
 855 pics/%.o:       ../modes/%.c
 856         $(COMPILE.c) -o $@ $<
 857         $(POST_PROCESS_O)
 858 
 859 pics/%.o:       ../objects/%.c
 860         $(COMPILE.c) -o $@ $<
 861         $(POST_PROCESS_O)
 862 
 863 pics/%.o:       ../ocsp/%.c
 864         $(COMPILE.c) -o $@ $<
 865         $(POST_PROCESS_O)
 866 
 867 pics/%.o:       ../pem/%.c
 868         $(COMPILE.c) -o $@ $<
 869         $(POST_PROCESS_O)
 870 
 871 pics/%.o:       ../pkcs12/%.c
 872         $(COMPILE.c) -o $@ $<
 873         $(POST_PROCESS_O)
 874 
 875 pics/%.o:       ../pkcs7/%.c
 876         $(COMPILE.c) -o $@ $<
 877         $(POST_PROCESS_O)
 878 
 879 pics/%.o:       ../pqueue/%.c
 880         $(COMPILE.c) -o $@ $<
 881         $(POST_PROCESS_O)
 882 
 883 pics/%.o:       ../rand/%.c
 884         $(COMPILE.c) -o $@ $<
 885         $(POST_PROCESS_O)
 886 
 887 pics/%.o:       ../rc2/%.c
 888         $(COMPILE.c) -o $@ $<
 889         $(POST_PROCESS_O)
 890 
 891 pics/%.o:       ../rc4/%.c
 892         $(COMPILE.c) -o $@ $<
 893         $(POST_PROCESS_O)
 894 
 895 pics/%.o:       ../ripemd/%.c
 896         $(COMPILE.c) -o $@ $<
 897         $(POST_PROCESS_O)
 898 
 899 pics/%.o:       ../rsa/%.c
 900         $(COMPILE.c) -o $@ $<
 901         $(POST_PROCESS_O)
 902 
 903 pics/%.o:       ../sha/%.c
 904         $(COMPILE.c) -o $@ $<
 905         $(POST_PROCESS_O)
 906 
 907 pics/%.o:       ../srp/%.c
 908         $(COMPILE.c) -o $@ $<
 909         $(POST_PROCESS_O)
 910 
 911 pics/%.o:       ../stack/%.c
 912         $(COMPILE.c) -o $@ $<
 913         $(POST_PROCESS_O)
 914 
 915 pics/%.o:       ../ts/%.c
 916         $(COMPILE.c) -o $@ $<
 917         $(POST_PROCESS_O)
 918 
 919 pics/%.o:       ../txt_db/%.c
 920         $(COMPILE.c) -o $@ $<
 921         $(POST_PROCESS_O)
 922 
 923 pics/%.o:       ../ui/%.c
 924         $(COMPILE.c) -o $@ $<
 925         $(POST_PROCESS_O)
 926 
 927 pics/%.o:       ../x509/%.c
 928         $(COMPILE.c) -o $@ $<
 929         $(POST_PROCESS_O)
 930 
 931 pics/%.o:       ../x509v3/%.c
 932         $(COMPILE.c) -o $@ $<
 933         $(POST_PROCESS_O)
 934 
 935 pics/%.o:       %.s
 936         $(COMPILE.c) -o $@ $<
 937 
 938 %.s:    ../pl/%.pl
 939         $(BUILD.perl)
 940 
 941 $(ROOTLINTDIR)/%: ../%
 942         $(INS.file)