security/nss/lib/sysinit/config.mk

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:871830159e6d
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 #
7 # Override TARGETS variable so that only static libraries
8 # are specifed as dependencies within rules.mk.
9 #
10
11 # can't do this in manifest.mn because OS_TARGET isn't defined there.
12 ifeq (,$(filter-out WIN%,$(OS_TARGET)))
13
14 # don't want the 32 in the shared library name
15 SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
16 IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX)
17
18 RES = $(OBJDIR)/$(LIBRARY_NAME).res
19 RESNAME = $(LIBRARY_NAME).rc
20
21 ifdef NS_USE_GCC
22 EXTRA_SHARED_LIBS += \
23 -L$(DIST)/lib \
24 -L$(NSSUTIL_LIB_DIR) \
25 -lnssutil3 \
26 -L$(NSPR_LIB_DIR) \
27 -lplc4 \
28 -lplds4 \
29 -lnspr4\
30 $(NULL)
31 else # ! NS_USE_GCC
32 EXTRA_SHARED_LIBS += \
33 $(DIST)/lib/nssutil3.lib \
34 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \
35 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \
36 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \
37 $(NULL)
38 endif # NS_USE_GCC
39
40 else
41
42 # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
43 # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX.
44 EXTRA_SHARED_LIBS += \
45 -L$(DIST)/lib \
46 -L$(NSSUTIL_LIB_DIR) \
47 -lnssutil3 \
48 -L$(NSPR_LIB_DIR) \
49 -lplc4 \
50 -lplds4 \
51 -lnspr4 \
52 $(NULL)
53
54 endif
55
56
57 # $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS)
58
59 ifeq ($(OS_TARGET),SunOS)
60 ifeq ($(BUILD_SUN_PKG), 1)
61 # The -R '$ORIGIN' linker option instructs this library to search for its
62 # dependencies in the same directory where it resides.
63 ifeq ($(USE_64), 1)
64 MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1/64:/usr/lib/mps/64'
65 else
66 MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1:/usr/lib/mps'
67 endif
68 else
69 MKSHLIB += -R '$$ORIGIN'
70 endif
71 endif
72
73 ifeq ($(OS_ARCH), HP-UX)
74 ifneq ($(OS_TEST), ia64)
75 # pa-risc
76 ifeq ($(USE_64), 1)
77 MKSHLIB += +b '$$ORIGIN'
78 endif
79 endif
80 endif

mercurial