1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/ssl/config.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,88 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +ifdef NISCC_TEST 1.10 +DEFINES += -DNISCC_TEST 1.11 +endif 1.12 + 1.13 +ifdef NSS_NO_PKCS11_BYPASS 1.14 +DEFINES += -DNO_PKCS11_BYPASS 1.15 +else 1.16 +CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX) 1.17 + 1.18 +EXTRA_LIBS += \ 1.19 + $(CRYPTOLIB) \ 1.20 + $(NULL) 1.21 +endif 1.22 + 1.23 +ifeq (,$(filter-out WIN%,$(OS_TARGET))) 1.24 + 1.25 +# don't want the 32 in the shared library name 1.26 +SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) 1.27 +IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) 1.28 + 1.29 +RES = $(OBJDIR)/ssl.res 1.30 +RESNAME = ssl.rc 1.31 + 1.32 +ifdef NS_USE_GCC 1.33 +EXTRA_SHARED_LIBS += \ 1.34 + -L$(DIST)/lib \ 1.35 + -lnss3 \ 1.36 + -L$(NSSUTIL_LIB_DIR) \ 1.37 + -lnssutil3 \ 1.38 + -L$(NSPR_LIB_DIR) \ 1.39 + -lplc4 \ 1.40 + -lplds4 \ 1.41 + -lnspr4 \ 1.42 + $(NULL) 1.43 +else # ! NS_USE_GCC 1.44 +EXTRA_SHARED_LIBS += \ 1.45 + $(DIST)/lib/nss3.lib \ 1.46 + $(DIST)/lib/nssutil3.lib \ 1.47 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ 1.48 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ 1.49 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ 1.50 + $(NULL) 1.51 +endif # NS_USE_GCC 1.52 + 1.53 +else 1.54 + 1.55 +# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. 1.56 +EXTRA_SHARED_LIBS += \ 1.57 + -L$(DIST)/lib \ 1.58 + -lnss3 \ 1.59 + -L$(NSSUTIL_LIB_DIR) \ 1.60 + -lnssutil3 \ 1.61 + -L$(NSPR_LIB_DIR) \ 1.62 + -lplc4 \ 1.63 + -lplds4 \ 1.64 + -lnspr4 \ 1.65 + $(NULL) 1.66 + 1.67 +ifeq ($(OS_ARCH), BeOS) 1.68 +EXTRA_SHARED_LIBS += -lbe 1.69 +endif 1.70 + 1.71 +endif 1.72 + 1.73 +# Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib 1.74 +# exported symbols, which causes problem when NSS is built as part of Mozilla. 1.75 +# So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off. 1.76 +NSS_ENABLE_ZLIB = 1 1.77 +ifdef NSS_ENABLE_ZLIB 1.78 + 1.79 +DEFINES += -DNSS_ENABLE_ZLIB 1.80 + 1.81 +# If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and 1.82 +# ZLIB_LIBS to the linker command-line arguments for the system zlib 1.83 +# (for example, -lz) in the platform's config file in coreconf. 1.84 +ifdef USE_SYSTEM_ZLIB 1.85 +OS_LIBS += $(ZLIB_LIBS) 1.86 +else 1.87 +ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX) 1.88 +EXTRA_LIBS += $(ZLIB_LIBS) 1.89 +endif 1.90 + 1.91 +endif