1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/cmd/shlibsign/Makefile Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,99 @@ 1.4 +#! gmake 1.5 +# 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +####################################################################### 1.11 +# (1) Include initial platform-independent assignments (MANDATORY). # 1.12 +####################################################################### 1.13 + 1.14 +include manifest.mn 1.15 + 1.16 +####################################################################### 1.17 +# (2) Include "global" configuration information. (OPTIONAL) # 1.18 +####################################################################### 1.19 + 1.20 +include $(CORE_DEPTH)/coreconf/config.mk 1.21 + 1.22 +####################################################################### 1.23 +# (3) Include "component" configuration information. (OPTIONAL) # 1.24 +####################################################################### 1.25 + 1.26 +####################################################################### 1.27 +# (4) Include "local" platform-dependent assignments (OPTIONAL). # 1.28 +####################################################################### 1.29 + 1.30 +ifeq ($(OS_ARCH), WINNT) 1.31 + 1.32 +EXTRA_LIBS += \ 1.33 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.$(LIB_SUFFIX) \ 1.34 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.$(LIB_SUFFIX) \ 1.35 + $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.$(LIB_SUFFIX) \ 1.36 + $(NULL) 1.37 + 1.38 +else 1.39 + 1.40 +EXTRA_SHARED_LIBS += \ 1.41 + -L$(NSPR_LIB_DIR) \ 1.42 + -lplc4 \ 1.43 + -lplds4 \ 1.44 + -lnspr4 \ 1.45 + $(NULL) 1.46 + 1.47 +endif 1.48 + 1.49 + 1.50 +# sign any and all shared libraries that contain the word freebl 1.51 +ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1) 1.52 +CHECKLIBS = 1.53 +CHECKLOC = 1.54 +else 1.55 +CHECKLIBS = $(DIST)/lib/$(DLL_PREFIX)softokn3.$(DLL_SUFFIX) 1.56 +CHECKLIBS += $(wildcard $(DIST)/lib/$(DLL_PREFIX)freebl*3.$(DLL_SUFFIX)) 1.57 +ifndef NSS_DISABLE_DBM 1.58 +CHECKLIBS += $(DIST)/lib/$(DLL_PREFIX)nssdbm3.$(DLL_SUFFIX) 1.59 +endif 1.60 +CHECKLOC = $(CHECKLIBS:.$(DLL_SUFFIX)=.chk) 1.61 + 1.62 +MD_LIB_RELEASE_FILES = $(CHECKLOC) 1.63 +ALL_TRASH += $(CHECKLOC) 1.64 +endif 1.65 + 1.66 +####################################################################### 1.67 +# (5) Execute "global" rules. (OPTIONAL) # 1.68 +####################################################################### 1.69 + 1.70 +include $(CORE_DEPTH)/coreconf/rules.mk 1.71 + 1.72 +####################################################################### 1.73 +# (6) Execute "component" rules. (OPTIONAL) # 1.74 +####################################################################### 1.75 + 1.76 + 1.77 +####################################################################### 1.78 +# (7) Execute "local" rules. (OPTIONAL). # 1.79 +####################################################################### 1.80 + 1.81 + 1.82 +include ../platrules.mk 1.83 + 1.84 +SRCDIR = $(call core_abspath,.) 1.85 + 1.86 +%.chk: %.$(DLL_SUFFIX) 1.87 +ifeq ($(OS_TARGET), OS2) 1.88 + cd $(OBJDIR) ; cmd.exe /c $(SRCDIR)/sign.cmd $(DIST) \ 1.89 + $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \ 1.90 + $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<) 1.91 +else 1.92 + ifeq ($(CROSS_COMPILE),1) 1.93 + # do nothing 1.94 + else 1.95 + cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \ 1.96 + $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \ 1.97 + $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<) 1.98 + endif 1.99 +endif 1.100 + 1.101 +libs install :: $(CHECKLOC) 1.102 +