michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # michael@0: # Override TARGETS variable so that only static libraries michael@0: # are specifed as dependencies within rules.mk. michael@0: # michael@0: michael@0: # can't do this in manifest.mn because OS_TARGET isn't defined there. michael@0: ifeq (,$(filter-out WIN%,$(OS_TARGET))) michael@0: michael@0: # don't want the 32 in the shared library name michael@0: SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) michael@0: IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) michael@0: michael@0: RES = $(OBJDIR)/$(LIBRARY_NAME).res michael@0: RESNAME = $(LIBRARY_NAME).rc michael@0: michael@0: ifdef NS_USE_GCC michael@0: EXTRA_SHARED_LIBS += \ michael@0: -L$(DIST)/lib \ michael@0: -L$(NSSUTIL_LIB_DIR) \ michael@0: -lnssutil3 \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4\ michael@0: $(NULL) michael@0: else # ! NS_USE_GCC michael@0: EXTRA_SHARED_LIBS += \ michael@0: $(DIST)/lib/nssutil3.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ michael@0: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ michael@0: $(NULL) michael@0: endif # NS_USE_GCC michael@0: michael@0: else michael@0: michael@0: # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS) michael@0: # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. michael@0: EXTRA_SHARED_LIBS += \ michael@0: -L$(DIST)/lib \ michael@0: -L$(NSSUTIL_LIB_DIR) \ michael@0: -lnssutil3 \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4 \ michael@0: $(NULL) michael@0: michael@0: endif michael@0: michael@0: michael@0: # $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS) michael@0: michael@0: ifeq ($(OS_TARGET),SunOS) michael@0: ifeq ($(BUILD_SUN_PKG), 1) michael@0: # The -R '$ORIGIN' linker option instructs this library to search for its michael@0: # dependencies in the same directory where it resides. michael@0: ifeq ($(USE_64), 1) michael@0: MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1/64:/usr/lib/mps/64' michael@0: else michael@0: MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1:/usr/lib/mps' michael@0: endif michael@0: else michael@0: MKSHLIB += -R '$$ORIGIN' michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH), HP-UX) michael@0: ifneq ($(OS_TEST), ia64) michael@0: # pa-risc michael@0: ifeq ($(USE_64), 1) michael@0: MKSHLIB += +b '$$ORIGIN' michael@0: endif michael@0: endif michael@0: endif