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: CORE_DEPTH = ../.. michael@0: michael@0: MODULE = nss michael@0: DIRS = legacydb michael@0: michael@0: LIBRARY_NAME = softokn michael@0: LIBRARY_VERSION = 3 michael@0: MAPFILE = $(OBJDIR)/softokn.def michael@0: michael@0: DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" -DSOFTOKEN_LIB_NAME=\"$(notdir $(SHARED_LIBRARY))\" -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" michael@0: michael@0: ifdef SQLITE_INCLUDE_DIR michael@0: INCLUDES += -I$(SQLITE_INCLUDE_DIR) michael@0: endif michael@0: michael@0: EXPORTS = \ michael@0: $(NULL) michael@0: michael@0: PRIVATE_EXPORTS = \ michael@0: lgglue.h \ michael@0: lowkeyi.h \ michael@0: lowkeyti.h \ michael@0: pkcs11ni.h \ michael@0: softoken.h \ michael@0: softoknt.h \ michael@0: softkver.h \ michael@0: sdb.h \ michael@0: sftkdbt.h \ michael@0: $(NULL) michael@0: michael@0: CSRCS = \ michael@0: fipsaudt.c \ michael@0: fipstest.c \ michael@0: fipstokn.c \ michael@0: lgglue.c \ michael@0: lowkey.c \ michael@0: lowpbe.c \ michael@0: padbuf.c \ michael@0: pkcs11.c \ michael@0: pkcs11c.c \ michael@0: pkcs11u.c \ michael@0: sdb.c \ michael@0: sftkdb.c \ michael@0: sftkhmac.c \ michael@0: sftkpars.c \ michael@0: sftkpwd.c \ michael@0: softkver.c \ michael@0: tlsprf.c \ michael@0: jpakesftk.c \ michael@0: $(NULL) michael@0: michael@0: ifdef SQLITE_UNSAFE_THREADS michael@0: DEFINES += -DSQLITE_UNSAFE_THREADS michael@0: endif michael@0: michael@0: # This part of the code, including all sub-dirs, can be optimized for size michael@0: export ALLOW_OPT_CODE_SIZE = 1