Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | # can't do this in manifest.mn because OS_TARGET isn't defined there. |
michael@0 | 7 | ifeq (,$(filter-out WIN%,$(OS_TARGET))) |
michael@0 | 8 | |
michael@0 | 9 | # don't want the 32 in the shared library name |
michael@0 | 10 | SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) |
michael@0 | 11 | IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) |
michael@0 | 12 | |
michael@0 | 13 | RES = $(OBJDIR)/$(LIBRARY_NAME).res |
michael@0 | 14 | RESNAME = $(LIBRARY_NAME).rc |
michael@0 | 15 | |
michael@0 | 16 | ifdef NS_USE_GCC |
michael@0 | 17 | EXTRA_SHARED_LIBS += \ |
michael@0 | 18 | -L$(DIST)/lib \ |
michael@0 | 19 | -L$(NSPR_LIB_DIR) \ |
michael@0 | 20 | -lplc4 \ |
michael@0 | 21 | -lplds4 \ |
michael@0 | 22 | -lnspr4\ |
michael@0 | 23 | $(NULL) |
michael@0 | 24 | else # ! NS_USE_GCC |
michael@0 | 25 | EXTRA_SHARED_LIBS += \ |
michael@0 | 26 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ |
michael@0 | 27 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ |
michael@0 | 28 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ |
michael@0 | 29 | $(NULL) |
michael@0 | 30 | endif # NS_USE_GCC |
michael@0 | 31 | |
michael@0 | 32 | else |
michael@0 | 33 | |
michael@0 | 34 | # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS) |
michael@0 | 35 | # $(EXTRA_SHARED_LIBS) come before $(OS_LIBS), except on AIX. |
michael@0 | 36 | EXTRA_SHARED_LIBS += \ |
michael@0 | 37 | -L$(DIST)/lib \ |
michael@0 | 38 | -L$(NSPR_LIB_DIR) \ |
michael@0 | 39 | -lplc4 \ |
michael@0 | 40 | -lplds4 \ |
michael@0 | 41 | -lnspr4 \ |
michael@0 | 42 | $(NULL) |
michael@0 | 43 | |
michael@0 | 44 | endif |
michael@0 | 45 |