|
1 # |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 ifdef NISCC_TEST |
|
7 DEFINES += -DNISCC_TEST |
|
8 endif |
|
9 |
|
10 ifdef NSS_NO_PKCS11_BYPASS |
|
11 DEFINES += -DNO_PKCS11_BYPASS |
|
12 else |
|
13 CRYPTOLIB=$(SOFTOKEN_LIB_DIR)/$(LIB_PREFIX)freebl.$(LIB_SUFFIX) |
|
14 |
|
15 EXTRA_LIBS += \ |
|
16 $(CRYPTOLIB) \ |
|
17 $(NULL) |
|
18 endif |
|
19 |
|
20 ifeq (,$(filter-out WIN%,$(OS_TARGET))) |
|
21 |
|
22 # don't want the 32 in the shared library name |
|
23 SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) |
|
24 IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) |
|
25 |
|
26 RES = $(OBJDIR)/ssl.res |
|
27 RESNAME = ssl.rc |
|
28 |
|
29 ifdef NS_USE_GCC |
|
30 EXTRA_SHARED_LIBS += \ |
|
31 -L$(DIST)/lib \ |
|
32 -lnss3 \ |
|
33 -L$(NSSUTIL_LIB_DIR) \ |
|
34 -lnssutil3 \ |
|
35 -L$(NSPR_LIB_DIR) \ |
|
36 -lplc4 \ |
|
37 -lplds4 \ |
|
38 -lnspr4 \ |
|
39 $(NULL) |
|
40 else # ! NS_USE_GCC |
|
41 EXTRA_SHARED_LIBS += \ |
|
42 $(DIST)/lib/nss3.lib \ |
|
43 $(DIST)/lib/nssutil3.lib \ |
|
44 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ |
|
45 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ |
|
46 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ |
|
47 $(NULL) |
|
48 endif # NS_USE_GCC |
|
49 |
|
50 else |
|
51 |
|
52 # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. |
|
53 EXTRA_SHARED_LIBS += \ |
|
54 -L$(DIST)/lib \ |
|
55 -lnss3 \ |
|
56 -L$(NSSUTIL_LIB_DIR) \ |
|
57 -lnssutil3 \ |
|
58 -L$(NSPR_LIB_DIR) \ |
|
59 -lplc4 \ |
|
60 -lplds4 \ |
|
61 -lnspr4 \ |
|
62 $(NULL) |
|
63 |
|
64 ifeq ($(OS_ARCH), BeOS) |
|
65 EXTRA_SHARED_LIBS += -lbe |
|
66 endif |
|
67 |
|
68 endif |
|
69 |
|
70 # Mozilla's mozilla/modules/zlib/src/zconf.h adds the MOZ_Z_ prefix to zlib |
|
71 # exported symbols, which causes problem when NSS is built as part of Mozilla. |
|
72 # So we add a NSS_ENABLE_ZLIB variable to allow Mozilla to turn this off. |
|
73 NSS_ENABLE_ZLIB = 1 |
|
74 ifdef NSS_ENABLE_ZLIB |
|
75 |
|
76 DEFINES += -DNSS_ENABLE_ZLIB |
|
77 |
|
78 # If a platform has a system zlib, set USE_SYSTEM_ZLIB to 1 and |
|
79 # ZLIB_LIBS to the linker command-line arguments for the system zlib |
|
80 # (for example, -lz) in the platform's config file in coreconf. |
|
81 ifdef USE_SYSTEM_ZLIB |
|
82 OS_LIBS += $(ZLIB_LIBS) |
|
83 else |
|
84 ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX) |
|
85 EXTRA_LIBS += $(ZLIB_LIBS) |
|
86 endif |
|
87 |
|
88 endif |