security/nss/cmd/shlibsign/Makefile

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 #! gmake
michael@0 2 #
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 #######################################################################
michael@0 8 # (1) Include initial platform-independent assignments (MANDATORY). #
michael@0 9 #######################################################################
michael@0 10
michael@0 11 include manifest.mn
michael@0 12
michael@0 13 #######################################################################
michael@0 14 # (2) Include "global" configuration information. (OPTIONAL) #
michael@0 15 #######################################################################
michael@0 16
michael@0 17 include $(CORE_DEPTH)/coreconf/config.mk
michael@0 18
michael@0 19 #######################################################################
michael@0 20 # (3) Include "component" configuration information. (OPTIONAL) #
michael@0 21 #######################################################################
michael@0 22
michael@0 23 #######################################################################
michael@0 24 # (4) Include "local" platform-dependent assignments (OPTIONAL). #
michael@0 25 #######################################################################
michael@0 26
michael@0 27 ifeq ($(OS_ARCH), WINNT)
michael@0 28
michael@0 29 EXTRA_LIBS += \
michael@0 30 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plc4.$(LIB_SUFFIX) \
michael@0 31 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)plds4.$(LIB_SUFFIX) \
michael@0 32 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.$(LIB_SUFFIX) \
michael@0 33 $(NULL)
michael@0 34
michael@0 35 else
michael@0 36
michael@0 37 EXTRA_SHARED_LIBS += \
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
michael@0 46
michael@0 47 # sign any and all shared libraries that contain the word freebl
michael@0 48 ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
michael@0 49 CHECKLIBS =
michael@0 50 CHECKLOC =
michael@0 51 else
michael@0 52 CHECKLIBS = $(DIST)/lib/$(DLL_PREFIX)softokn3.$(DLL_SUFFIX)
michael@0 53 CHECKLIBS += $(wildcard $(DIST)/lib/$(DLL_PREFIX)freebl*3.$(DLL_SUFFIX))
michael@0 54 ifndef NSS_DISABLE_DBM
michael@0 55 CHECKLIBS += $(DIST)/lib/$(DLL_PREFIX)nssdbm3.$(DLL_SUFFIX)
michael@0 56 endif
michael@0 57 CHECKLOC = $(CHECKLIBS:.$(DLL_SUFFIX)=.chk)
michael@0 58
michael@0 59 MD_LIB_RELEASE_FILES = $(CHECKLOC)
michael@0 60 ALL_TRASH += $(CHECKLOC)
michael@0 61 endif
michael@0 62
michael@0 63 #######################################################################
michael@0 64 # (5) Execute "global" rules. (OPTIONAL) #
michael@0 65 #######################################################################
michael@0 66
michael@0 67 include $(CORE_DEPTH)/coreconf/rules.mk
michael@0 68
michael@0 69 #######################################################################
michael@0 70 # (6) Execute "component" rules. (OPTIONAL) #
michael@0 71 #######################################################################
michael@0 72
michael@0 73
michael@0 74 #######################################################################
michael@0 75 # (7) Execute "local" rules. (OPTIONAL). #
michael@0 76 #######################################################################
michael@0 77
michael@0 78
michael@0 79 include ../platrules.mk
michael@0 80
michael@0 81 SRCDIR = $(call core_abspath,.)
michael@0 82
michael@0 83 %.chk: %.$(DLL_SUFFIX)
michael@0 84 ifeq ($(OS_TARGET), OS2)
michael@0 85 cd $(OBJDIR) ; cmd.exe /c $(SRCDIR)/sign.cmd $(DIST) \
michael@0 86 $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
michael@0 87 $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
michael@0 88 else
michael@0 89 ifeq ($(CROSS_COMPILE),1)
michael@0 90 # do nothing
michael@0 91 else
michael@0 92 cd $(OBJDIR) ; sh $(SRCDIR)/sign.sh $(call core_abspath,$(DIST)) \
michael@0 93 $(call core_abspath,$(OBJDIR)) $(OS_TARGET) \
michael@0 94 $(call core_abspath,$(NSPR_LIB_DIR)) $(call core_abspath,$<)
michael@0 95 endif
michael@0 96 endif
michael@0 97
michael@0 98 libs install :: $(CHECKLOC)
michael@0 99

mercurial