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: ifdef NISCC_TEST michael@0: DEFINES += -DNISCC_TEST michael@0: endif michael@0: michael@0: ifdef NSS_NO_PKCS11_BYPASS michael@0: DEFINES += -DNO_PKCS11_BYPASS michael@0: else michael@0: CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX) michael@0: michael@0: EXTRA_LIBS += \ michael@0: $(CRYPTOLIB) \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifeq (,$(filter-out WIN%,$(OS_TARGET))) michael@0: michael@0: # don't want the 32 in the shared library name michael@0: SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) michael@0: IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) michael@0: michael@0: RES = $(OBJDIR)/ssl.res michael@0: RESNAME = ssl.rc michael@0: michael@0: ifdef NS_USE_GCC michael@0: EXTRA_SHARED_LIBS += \ michael@0: -L$(DIST)/lib \ michael@0: -lnss3 \ michael@0: -L$(NSSUTIL_LIB_DIR) \ michael@0: -lnssutil3 \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4 \ michael@0: $(NULL) michael@0: else # ! NS_USE_GCC michael@0: EXTRA_SHARED_LIBS += \ michael@0: $(DIST)/lib/nss3.lib \ michael@0: $(DIST)/lib/nssutil3.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ michael@0: $(NULL) michael@0: endif # NS_USE_GCC michael@0: michael@0: else michael@0: michael@0: # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. michael@0: EXTRA_SHARED_LIBS += \ michael@0: -L$(DIST)/lib \ michael@0: -lnss3 \ michael@0: -L$(NSSUTIL_LIB_DIR) \ michael@0: -lnssutil3 \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4 \ michael@0: $(NULL) michael@0: michael@0: ifeq ($(OS_ARCH), BeOS) michael@0: EXTRA_SHARED_LIBS += -lbe michael@0: endif michael@0: michael@0: endif michael@0: michael@0: # Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib michael@0: # exported symbols, which causes problem when NSS is built as part of Mozilla. michael@0: # So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off. michael@0: NSS_ENABLE_ZLIB = 1 michael@0: ifdef NSS_ENABLE_ZLIB michael@0: michael@0: DEFINES += -DNSS_ENABLE_ZLIB michael@0: michael@0: # If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and michael@0: # ZLIB_LIBS to the linker command-line arguments for the system zlib michael@0: # (for example, -lz) in the platform's config file in coreconf. michael@0: ifdef USE_SYSTEM_ZLIB michael@0: OS_LIBS += $(ZLIB_LIBS) michael@0: else michael@0: ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX) michael@0: EXTRA_LIBS += $(ZLIB_LIBS) michael@0: endif michael@0: michael@0: endif