1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/ckfw/builtins/Makefile Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +include manifest.mn 1.10 +include $(CORE_DEPTH)/coreconf/config.mk 1.11 +include config.mk 1.12 + 1.13 +EXTRA_LIBS = \ 1.14 + $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ 1.15 + $(DIST)/lib/$(LIB_PREFIX)nssb.$(LIB_SUFFIX) \ 1.16 + $(NULL) 1.17 + 1.18 +# can't do this in manifest.mn because OS_TARGET isn't defined there. 1.19 +ifeq (,$(filter-out WIN%,$(OS_TARGET))) 1.20 + 1.21 +ifdef NS_USE_GCC 1.22 +EXTRA_SHARED_LIBS += \ 1.23 + -L$(NSPR_LIB_DIR) \ 1.24 + -lplc4 \ 1.25 + -lplds4 \ 1.26 + -lnspr4 \ 1.27 + $(NULL) 1.28 +else 1.29 +EXTRA_SHARED_LIBS += \ 1.30 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.lib \ 1.31 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.lib \ 1.32 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \ 1.33 + $(NULL) 1.34 +endif # NS_USE_GCC 1.35 +else 1.36 + 1.37 +EXTRA_SHARED_LIBS += \ 1.38 + -L$(NSPR_LIB_DIR) \ 1.39 + -lplc4 \ 1.40 + -lplds4 \ 1.41 + -lnspr4 \ 1.42 + $(NULL) 1.43 +endif 1.44 + 1.45 + 1.46 +include $(CORE_DEPTH)/coreconf/rules.mk 1.47 + 1.48 +# Generate certdata.c. 1.49 + 1.50 +# By default, use the unmodified certdata.txt. 1.51 +ifndef NSS_CERTDATA_TXT 1.52 +NSS_CERTDATA_TXT = certdata.txt 1.53 +endif 1.54 + 1.55 +$(OBJDIR)/certdata.c: $(NSS_CERTDATA_TXT) certdata.perl 1.56 + @$(MAKE_OBJDIR) 1.57 + $(PERL) certdata.perl < $(NSS_CERTDATA_TXT) > $@