1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/sysinit/config.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,80 @@ 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 +# 1.10 +# Override TARGETS variable so that only static libraries 1.11 +# are specifed as dependencies within rules.mk. 1.12 +# 1.13 + 1.14 +# can't do this in manifest.mn because OS_TARGET isn't defined there. 1.15 +ifeq (,$(filter-out WIN%,$(OS_TARGET))) 1.16 + 1.17 +# don't want the 32 in the shared library name 1.18 +SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) 1.19 +IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) 1.20 + 1.21 +RES = $(OBJDIR)/$(LIBRARY_NAME).res 1.22 +RESNAME = $(LIBRARY_NAME).rc 1.23 + 1.24 +ifdef NS_USE_GCC 1.25 +EXTRA_SHARED_LIBS += \ 1.26 + -L$(DIST)/lib \ 1.27 + -L$(NSSUTIL_LIB_DIR) \ 1.28 + -lnssutil3 \ 1.29 + -L$(NSPR_LIB_DIR) \ 1.30 + -lplc4 \ 1.31 + -lplds4 \ 1.32 + -lnspr4\ 1.33 + $(NULL) 1.34 +else # ! NS_USE_GCC 1.35 +EXTRA_SHARED_LIBS += \ 1.36 + $(DIST)/lib/nssutil3.lib \ 1.37 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ 1.38 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ 1.39 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ 1.40 + $(NULL) 1.41 +endif # NS_USE_GCC 1.42 + 1.43 +else 1.44 + 1.45 +# $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS) 1.46 +# $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. 1.47 +EXTRA_SHARED_LIBS += \ 1.48 + -L$(DIST)/lib \ 1.49 + -L$(NSSUTIL_LIB_DIR) \ 1.50 + -lnssutil3 \ 1.51 + -L$(NSPR_LIB_DIR) \ 1.52 + -lplc4 \ 1.53 + -lplds4 \ 1.54 + -lnspr4 \ 1.55 + $(NULL) 1.56 + 1.57 +endif 1.58 + 1.59 + 1.60 +# $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS) 1.61 + 1.62 +ifeq ($(OS_TARGET),SunOS) 1.63 +ifeq ($(BUILD_SUN_PKG), 1) 1.64 +# The -R '$ORIGIN' linker option instructs this library to search for its 1.65 +# dependencies in the same directory where it resides. 1.66 +ifeq ($(USE_64), 1) 1.67 +MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1/64:/usr/lib/mps/64' 1.68 +else 1.69 +MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1:/usr/lib/mps' 1.70 +endif 1.71 +else 1.72 +MKSHLIB += -R '$$ORIGIN' 1.73 +endif 1.74 +endif 1.75 + 1.76 +ifeq ($(OS_ARCH), HP-UX) 1.77 +ifneq ($(OS_TEST), ia64) 1.78 +# pa-risc 1.79 +ifeq ($(USE_64), 1) 1.80 +MKSHLIB += +b '$$ORIGIN' 1.81 +endif 1.82 +endif 1.83 +endif