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: include manifest.mn michael@0: include $(CORE_DEPTH)/coreconf/config.mk michael@0: include config.mk michael@0: michael@0: EXTRA_LIBS = \ michael@0: $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ michael@0: $(DIST)/lib/$(LIB_PREFIX)nssb.$(LIB_SUFFIX) \ michael@0: $(NULL) 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: ifdef NS_USE_GCC michael@0: EXTRA_LIBS += \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4 \ michael@0: -lcrypt32 \ michael@0: -ladvapi32 \ michael@0: -lrpcrt4 \ michael@0: $(NULL) michael@0: else michael@0: EXTRA_SHARED_LIBS += \ 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: crypt32.lib \ michael@0: advapi32.lib \ michael@0: rpcrt4.lib \ michael@0: $(NULL) michael@0: endif # NS_USE_GCC michael@0: else michael@0: michael@0: EXTRA_LIBS += \ michael@0: -L$(NSPR_LIB_DIR) \ michael@0: -lplc4 \ michael@0: -lplds4 \ michael@0: -lnspr4 \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: michael@0: include $(CORE_DEPTH)/coreconf/rules.mk michael@0: michael@0: # Generate certdata.c. michael@0: generate: michael@0: $(PERL) certdata.perl < certdata.txt michael@0: michael@0: # This'll need some help from a build person. michael@0: michael@0: michael@0: ifeq ($(OS_TARGET)$(OS_RELEASE), AIX4.1) michael@0: DSO_LDOPTS = -bM:SRE -bh:4 -bnoentry michael@0: EXTRA_DSO_LDOPTS = -lc michael@0: MKSHLIB = xlC $(DSO_LDOPTS) michael@0: michael@0: $(SHARED_LIBRARY): $(OBJS) michael@0: @$(MAKE_OBJDIR) michael@0: rm -f $@ michael@0: $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(EXTRA_DSO_LDOPTS) michael@0: chmod +x $@ michael@0: michael@0: endif michael@0: michael@0: ifeq ($(OS_TARGET)$(OS_RELEASE), AIX4.2) michael@0: LD += -G michael@0: endif michael@0: michael@0: