security/nss/lib/ckfw/capi/Makefile

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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

mercurial