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: EXPORTS = \ michael@0: secmod.h \ michael@0: secmodt.h \ michael@0: secpkcs5.h \ michael@0: pk11func.h \ michael@0: pk11pub.h \ michael@0: pk11priv.h \ michael@0: pk11sdr.h \ michael@0: pk11pqg.h \ michael@0: $(NULL) michael@0: michael@0: PRIVATE_EXPORTS = \ michael@0: secmodi.h \ michael@0: dev3hack.h \ michael@0: $(NULL) michael@0: michael@0: MODULE = nss michael@0: michael@0: CSRCS = \ michael@0: dev3hack.c \ michael@0: pk11akey.c \ michael@0: pk11auth.c \ michael@0: pk11cert.c \ michael@0: pk11cxt.c \ michael@0: pk11err.c \ michael@0: pk11kea.c \ michael@0: pk11list.c \ michael@0: pk11load.c \ michael@0: pk11mech.c \ michael@0: pk11merge.c \ michael@0: pk11nobj.c \ michael@0: pk11obj.c \ michael@0: pk11pars.c \ michael@0: pk11pbe.c \ michael@0: pk11pk12.c \ michael@0: pk11pqg.c \ michael@0: pk11sdr.c \ michael@0: pk11skey.c \ michael@0: pk11slot.c \ michael@0: pk11util.c \ michael@0: $(NULL) michael@0: michael@0: LIBRARY_NAME = pk11wrap michael@0: michael@0: LIBRARY_VERSION = 3 michael@0: SOFTOKEN_LIBRARY_VERSION = 3 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: # only add module debugging in opt builds if DEBUG_PKCS11 is set michael@0: ifdef DEBUG_PKCS11 michael@0: DEFINES += -DDEBUG_MODULE -DFORCE_PR_LOG 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