mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-11 02:10:17 +01:00
98d377b37b
bug920719, bug1026148, bug1028647, bug963150, bug1030486, bug1025729, bug836658, bug1028582, bug1038728, bug1038526, bug1042634, bug1047210, bug1043891, bug1043108, bug1046735, bug1043082, bug1036735, bug1046718, bug1050107, bug1054625, bug1057465, bug1057476, bug1041326, bug1058933, bug1064636, bug1057161, bug1078669, bug1049435, bug1070493, bug1083360, bug1028764, bug1065990, bug1073330, bug1064670, bug1094650
94 lines
2.2 KiB
Makefile
94 lines
2.2 KiB
Makefile
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
ifdef NISCC_TEST
|
|
DEFINES += -DNISCC_TEST
|
|
endif
|
|
|
|
# Allow build-time configuration of TLS 1.3 (Experimental)
|
|
ifdef NSS_ENABLE_TLS_1_3
|
|
DEFINES += -DNSS_ENABLE_TLS_1_3
|
|
endif
|
|
|
|
ifdef NSS_NO_PKCS11_BYPASS
|
|
DEFINES += -DNO_PKCS11_BYPASS
|
|
else
|
|
CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX)
|
|
|
|
EXTRA_LIBS += \
|
|
$(CRYPTOLIB) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
|
|
|
|
# don't want the 32 in the shared library name
|
|
SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
|
|
IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
|
|
|
|
RES = $(OBJDIR)/ssl.res
|
|
RESNAME = ssl.rc
|
|
|
|
ifdef NS_USE_GCC
|
|
EXTRA_SHARED_LIBS += \
|
|
-L$(DIST)/lib \
|
|
-lnss3 \
|
|
-L$(NSSUTIL_LIB_DIR) \
|
|
-lnssutil3 \
|
|
-L$(NSPR_LIB_DIR) \
|
|
-lplc4 \
|
|
-lplds4 \
|
|
-lnspr4 \
|
|
$(NULL)
|
|
else # ! NS_USE_GCC
|
|
EXTRA_SHARED_LIBS += \
|
|
$(DIST)/lib/nss3.lib \
|
|
$(DIST)/lib/nssutil3.lib \
|
|
$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \
|
|
$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \
|
|
$(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \
|
|
$(NULL)
|
|
endif # NS_USE_GCC
|
|
|
|
else
|
|
|
|
# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
|
|
EXTRA_SHARED_LIBS += \
|
|
-L$(DIST)/lib \
|
|
-lnss3 \
|
|
-L$(NSSUTIL_LIB_DIR) \
|
|
-lnssutil3 \
|
|
-L$(NSPR_LIB_DIR) \
|
|
-lplc4 \
|
|
-lplds4 \
|
|
-lnspr4 \
|
|
$(NULL)
|
|
|
|
ifeq ($(OS_ARCH), BeOS)
|
|
EXTRA_SHARED_LIBS += -lbe
|
|
endif
|
|
|
|
endif
|
|
|
|
# Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib
|
|
# exported symbols, which causes problem when NSS is built as part of Mozilla.
|
|
# So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off.
|
|
NSS_ENABLE_ZLIB = 1
|
|
ifdef NSS_ENABLE_ZLIB
|
|
|
|
DEFINES += -DNSS_ENABLE_ZLIB
|
|
|
|
# If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and
|
|
# ZLIB_LIBS to the linker command-line arguments for the system zlib
|
|
# (for example, -lz) in the platform's config file in coreconf.
|
|
ifdef USE_SYSTEM_ZLIB
|
|
OS_LIBS += $(ZLIB_LIBS)
|
|
else
|
|
ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX)
|
|
EXTRA_LIBS += $(ZLIB_LIBS)
|
|
endif
|
|
|
|
endif
|