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