andre@3: # andre@3: # This Source Code Form is subject to the terms of the Mozilla Public andre@3: # License, v. 2.0. If a copy of the MPL was not distributed with this andre@3: # file, You can obtain one at http://mozilla.org/MPL/2.0/. andre@3: andre@3: # $(PROGRAM) has explicit dependencies on $(EXTRA_LIBS) andre@3: CRYPTOLIB=$(DIST)/lib/$(LIB_PREFIX)freebl.$(LIB_SUFFIX) andre@3: andre@3: EXTRA_LIBS += \ andre@3: $(CRYPTOLIB) \ andre@3: $(DIST)/lib/$(LIB_PREFIX)dbm.$(LIB_SUFFIX) \ andre@3: $(NULL) andre@3: andre@3: # can't do this in manifest.mn because OS_TARGET isn't defined there. andre@3: ifeq (,$(filter-out WIN%,$(OS_TARGET))) andre@3: andre@3: # don't want the 32 in the shared library name andre@3: SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) andre@3: IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) andre@3: andre@3: RES = $(OBJDIR)/$(LIBRARY_NAME).res andre@3: RESNAME = $(LIBRARY_NAME).rc andre@3: andre@3: ifdef NS_USE_GCC andre@3: EXTRA_SHARED_LIBS += \ andre@3: -L$(DIST)/lib \ andre@3: -L$(NSSUTIL_LIB_DIR) \ andre@3: -lnssutil3 \ andre@3: -L$(NSPR_LIB_DIR) \ andre@3: -lplc4 \ andre@3: -lplds4 \ andre@3: -lnspr4 \ andre@3: $(NULL) andre@3: else # ! NS_USE_GCC andre@3: andre@3: EXTRA_SHARED_LIBS += \ andre@3: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ andre@3: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ andre@3: $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ andre@3: $(DIST)/lib/nssutil3.lib \ andre@3: $(NULL) andre@3: endif # NS_USE_GCC andre@3: andre@3: else andre@3: andre@3: # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS) andre@3: # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. andre@3: EXTRA_SHARED_LIBS += \ andre@3: -L$(DIST)/lib \ andre@3: -L$(NSSUTIL_LIB_DIR) \ andre@3: -lnssutil3 \ andre@3: -L$(NSPR_LIB_DIR) \ andre@3: -lplc4 \ andre@3: -lplds4 \ andre@3: -lnspr4 \ andre@3: $(NULL) andre@3: endif