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 | include manifest.mn |
michael@0 | 7 | include $(CORE_DEPTH)/coreconf/config.mk |
michael@0 | 8 | include config.mk |
michael@0 | 9 | |
michael@0 | 10 | EXTRA_LIBS = \ |
michael@0 | 11 | $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ |
michael@0 | 12 | $(DIST)/lib/$(LIB_PREFIX)secutil.$(LIB_SUFFIX) \ |
michael@0 | 13 | $(DIST)/lib/$(LIB_PREFIX)nssb.$(LIB_SUFFIX) \ |
michael@0 | 14 | $(NULL) |
michael@0 | 15 | |
michael@0 | 16 | # can't do this in manifest.mn because OS_TARGET isn't defined there. |
michael@0 | 17 | ifeq (,$(filter-out WIN%,$(OS_TARGET))) |
michael@0 | 18 | |
michael@0 | 19 | ifdef NS_USE_GCC |
michael@0 | 20 | EXTRA_LIBS += \ |
michael@0 | 21 | -L$(NSPR_LIB_DIR) \ |
michael@0 | 22 | -lplc4 \ |
michael@0 | 23 | -lplds4 \ |
michael@0 | 24 | -lnspr4 \ |
michael@0 | 25 | $(NULL) |
michael@0 | 26 | else |
michael@0 | 27 | EXTRA_SHARED_LIBS += \ |
michael@0 | 28 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ |
michael@0 | 29 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ |
michael@0 | 30 | $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ |
michael@0 | 31 | $(NULL) |
michael@0 | 32 | endif # NS_USE_GCC |
michael@0 | 33 | else |
michael@0 | 34 | |
michael@0 | 35 | EXTRA_LIBS += \ |
michael@0 | 36 | -L$(NSPR_LIB_DIR) \ |
michael@0 | 37 | -lplc4 \ |
michael@0 | 38 | -lplds4 \ |
michael@0 | 39 | -lnspr4 \ |
michael@0 | 40 | -framework Security \ |
michael@0 | 41 | -framework CoreServices \ |
michael@0 | 42 | $(NULL) |
michael@0 | 43 | endif |
michael@0 | 44 | |
michael@0 | 45 | |
michael@0 | 46 | include $(CORE_DEPTH)/coreconf/rules.mk |
michael@0 | 47 | |
michael@0 | 48 | # Generate certdata.c. |
michael@0 | 49 | generate: |
michael@0 | 50 | perl certdata.perl < certdata.txt |
michael@0 | 51 | |
michael@0 | 52 | # This'll need some help from a build person. |
michael@0 | 53 | |
michael@0 | 54 | |
michael@0 | 55 | ifeq ($(OS_TARGET)$(OS_RELEASE), AIX4.1) |
michael@0 | 56 | DSO_LDOPTS = -bM:SRE -bh:4 -bnoentry |
michael@0 | 57 | EXTRA_DSO_LDOPTS = -lc |
michael@0 | 58 | MKSHLIB = xlC $(DSO_LDOPTS) |
michael@0 | 59 | |
michael@0 | 60 | $(SHARED_LIBRARY): $(OBJS) |
michael@0 | 61 | @$(MAKE_OBJDIR) |
michael@0 | 62 | rm -f $@ |
michael@0 | 63 | $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(EXTRA_DSO_LDOPTS) |
michael@0 | 64 | chmod +x $@ |
michael@0 | 65 | |
michael@0 | 66 | endif |
michael@0 | 67 | |
michael@0 | 68 | ifeq ($(OS_TARGET)$(OS_RELEASE), AIX4.2) |
michael@0 | 69 | LD += -G |
michael@0 | 70 | endif |
michael@0 | 71 | |
michael@0 | 72 |