2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is the Netscape security libraries.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1994-2000
20 # the Initial Developer. All Rights Reserved.
23 # Dr Vipul Gupta <vipul.gupta@sun.com> and
24 # Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
26 # Alternatively, the contents of this file may be used under the terms of
27 # either the GNU General Public License Version 2 or later (the "GPL"), or
28 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 # in which case the provisions of the GPL or the LGPL are applicable instead
30 # of those above. If you wish to allow use of your version of this file only
31 # under the terms of either the GPL or the LGPL, and not to allow others to
32 # use your version of this file under the terms of the MPL, indicate your
33 # decision by deleting the provisions above and replace them with the notice
34 # and other provisions required by the GPL or the LGPL. If you do not delete
35 # the provisions above, a recipient may use your version of this file under
36 # the terms of any one of the MPL, the GPL or the LGPL.
38 # ***** END LICENSE BLOCK *****
40 # NOTE: any ifdefs in this file must be defined on the gmake command line
41 # (if anywhere). They cannot come from Makefile or config.mk
50 ifdef FREEBL_CHILD_BUILD
52 LIBRARY_NAME = freebl_32int
55 LIBRARY_NAME = freebl_32int64
58 LIBRARY_NAME = freebl_32fpu
61 LIBRARY_NAME = freebl_64int
64 LIBRARY_NAME = freebl_64fpu
68 # if the library name contains _, we prefix the version with _
69 ifneq (,$(findstring _,$(LIBRARY_NAME)))
70 LIBRARY_VERSION := _$(LIBRARY_VERSION)
73 MAPFILE_SOURCE = freebl.def
74 MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def
76 SOFTOKEN_LIBRARY_VERSION = 3
78 DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" \
79 -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" \
80 -DSOFTOKEN_SHLIB_VERSION=\"$(SOFTOKEN_LIBRARY_VERSION)\"
100 MPI_HDRS = mpi-config.h mpi.h mpi-priv.h mplogic.h mpprime.h logtab.h mp_gf2m.h
101 MPI_SRCS = mpprime.c mpmontg.c mplogic.c mpi.c mp_gf2m.c
104 ECL_HDRS = ecl-exp.h ecl.h ec2.h ecp.h ecl-priv.h
106 ECL_SRCS = ecl.c ecl_curve.c ecl_mult.c ecl_gf.c \
107 ecp_aff.c ecp_jac.c ecp_mont.c \
109 ifdef NSS_ECC_MORE_THAN_SUITE_B
110 ECL_SRCS += ec2_aff.c ec2_mont.c ec2_proj.c \
111 ec2_163.c ec2_193.c ec2_233.c \
112 ecp_192.c ecp_224.c ecp_256.c ecp_384.c ecp_521.c
117 SHA_SRCS = sha_fast.c
118 MPCPU_SRCS = mpcpucache.c
151 ALL_CSRCS := $(CSRCS)
172 DEFINES += -DNSS_ENABLE_ECC
176 DEFINES += -DRIJNDAEL_GENERATE_TABLES
179 DEFINES += -DRIJNDAEL_GENERATE_TABLES_MACRO
182 DEFINES += -DRIJNDAEL_GENERATE_VALUES
185 DEFINES += -DRIJNDAEL_GENERATE_VALUES_MACRO
187 DEFINES += -DRIJNDAEL_INCLUDE_TABLES