michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # NOTE: any ifdefs in this file must be defined on the gmake command line michael@0: # (if anywhere). They cannot come from Makefile or config.mk michael@0: michael@0: CORE_DEPTH = ../.. michael@0: michael@0: MODULE = nss michael@0: michael@0: LIBRARY_NAME = freebl michael@0: LIBRARY_VERSION = 3 michael@0: michael@0: ifdef FREEBL_CHILD_BUILD michael@0: ifdef USE_ABI32_INT32 michael@0: LIBRARY_NAME = freebl_32int michael@0: endif michael@0: ifdef USE_ABI32_INT64 michael@0: LIBRARY_NAME = freebl_32int64 michael@0: endif michael@0: ifdef USE_ABI32_FPU michael@0: LIBRARY_NAME = freebl_32fpu michael@0: endif michael@0: ifdef USE_ABI64_INT michael@0: LIBRARY_NAME = freebl_64int michael@0: endif michael@0: ifdef USE_ABI64_FPU michael@0: LIBRARY_NAME = freebl_64fpu michael@0: endif michael@0: endif michael@0: michael@0: # if the library name contains _, we prefix the version with _ michael@0: ifneq (,$(findstring _,$(LIBRARY_NAME))) michael@0: LIBRARY_VERSION := _$(LIBRARY_VERSION) michael@0: endif michael@0: michael@0: MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def michael@0: michael@0: SOFTOKEN_LIBRARY_VERSION = 3 michael@0: michael@0: DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" \ michael@0: -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" \ michael@0: -DSOFTOKEN_SHLIB_VERSION=\"$(SOFTOKEN_LIBRARY_VERSION)\" michael@0: michael@0: REQUIRES = michael@0: michael@0: EXPORTS = \ michael@0: blapit.h \ michael@0: shsign.h \ michael@0: ecl-exp.h \ michael@0: $(LOWHASH_EXPORTS) \ michael@0: $(NULL) michael@0: michael@0: PRIVATE_EXPORTS = \ michael@0: alghmac.h \ michael@0: blapi.h \ michael@0: hmacct.h \ michael@0: secmpi.h \ michael@0: secrng.h \ michael@0: ec.h \ michael@0: ecl.h \ michael@0: ecl-curve.h \ michael@0: $(NULL) michael@0: michael@0: MPI_HDRS = mpi-config.h mpi.h mpi-priv.h mplogic.h mpprime.h logtab.h mp_gf2m.h michael@0: MPI_SRCS = mpprime.c mpmontg.c mplogic.c mpi.c mp_gf2m.c michael@0: michael@0: michael@0: ECL_HDRS = ecl-exp.h ecl.h ec2.h ecp.h ecl-priv.h michael@0: ifndef NSS_DISABLE_ECC michael@0: ECL_SRCS = ecl.c ecl_curve.c ecl_mult.c ecl_gf.c \ michael@0: ecp_aff.c ecp_jac.c ecp_mont.c \ michael@0: ec_naf.c ecp_jm.c ecp_256.c ecp_384.c ecp_521.c \ michael@0: ecp_256_32.c michael@0: ifdef NSS_ECC_MORE_THAN_SUITE_B michael@0: ECL_SRCS += ec2_aff.c ec2_mont.c ec2_proj.c \ michael@0: ec2_163.c ec2_193.c ec2_233.c \ michael@0: ecp_192.c ecp_224.c michael@0: endif michael@0: else michael@0: ECL_SRCS = $(NULL) michael@0: endif michael@0: SHA_SRCS = sha_fast.c michael@0: MPCPU_SRCS = mpcpucache.c michael@0: michael@0: CSRCS = \ michael@0: freeblver.c \ michael@0: ldvector.c \ michael@0: sysrand.c \ michael@0: $(SHA_SRCS) \ michael@0: md2.c \ michael@0: md5.c \ michael@0: sha512.c \ michael@0: alghmac.c \ michael@0: rawhash.c \ michael@0: alg2268.c \ michael@0: arcfour.c \ michael@0: arcfive.c \ michael@0: desblapi.c \ michael@0: des.c \ michael@0: drbg.c \ michael@0: cts.c \ michael@0: ctr.c \ michael@0: gcm.c \ michael@0: hmacct.c \ michael@0: rijndael.c \ michael@0: aeskeywrap.c \ michael@0: camellia.c \ michael@0: dh.c \ michael@0: ec.c \ michael@0: ecdecode.c \ michael@0: pqg.c \ michael@0: dsa.c \ michael@0: rsa.c \ michael@0: rsapkcs.c \ michael@0: shvfy.c \ michael@0: tlsprfalg.c \ michael@0: seed.c \ michael@0: jpake.c \ michael@0: $(MPI_SRCS) \ michael@0: $(MPCPU_SRCS) \ michael@0: $(ECL_SRCS) \ michael@0: $(STUBS_SRCS) \ michael@0: $(LOWHASH_SRCS) \ michael@0: $(EXTRA_SRCS) \ michael@0: $(NULL) michael@0: michael@0: ALL_CSRCS := $(CSRCS) michael@0: michael@0: ALL_HDRS = \ michael@0: alghmac.h \ michael@0: blapi.h \ michael@0: blapit.h \ michael@0: des.h \ michael@0: ec.h \ michael@0: loader.h \ michael@0: rijndael.h \ michael@0: camellia.h \ michael@0: secmpi.h \ michael@0: sha_fast.h \ michael@0: sha256.h \ michael@0: shsign.h \ michael@0: vis_proto.h \ michael@0: seed.h \ michael@0: $(NULL) michael@0: michael@0: michael@0: ifdef AES_GEN_TBL michael@0: DEFINES += -DRIJNDAEL_GENERATE_TABLES michael@0: else michael@0: ifdef AES_GEN_TBL_M michael@0: DEFINES += -DRIJNDAEL_GENERATE_TABLES_MACRO michael@0: else michael@0: ifdef AES_GEN_VAL michael@0: DEFINES += -DRIJNDAEL_GENERATE_VALUES michael@0: else michael@0: ifdef AES_GEN_VAL_M michael@0: DEFINES += -DRIJNDAEL_GENERATE_VALUES_MACRO michael@0: else michael@0: DEFINES += -DRIJNDAEL_INCLUDE_TABLES michael@0: endif michael@0: endif michael@0: endif michael@0: endif