Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # vim:set ts=8 sw=8 sts=8 noet: |
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 | # The mar executable is output into dist/host/bin since it is something that |
michael@0 | 8 | # would only be used by our build system and should not itself be included in a |
michael@0 | 9 | # Mozilla distribution. |
michael@0 | 10 | |
michael@0 | 11 | # Don't link the against libmozglue because we don't need it. |
michael@0 | 12 | MOZ_GLUE_LDFLAGS = |
michael@0 | 13 | MOZ_GLUE_PROGRAM_LDFLAGS = |
michael@0 | 14 | |
michael@0 | 15 | HOST_CFLAGS += \ |
michael@0 | 16 | -DNO_SIGN_VERIFY \ |
michael@0 | 17 | $(DEFINES) \ |
michael@0 | 18 | $(NULL) |
michael@0 | 19 | |
michael@0 | 20 | HOST_LIBS = $(DIST)/host/lib/$(LIB_PREFIX)hostmar.$(LIB_SUFFIX) |
michael@0 | 21 | LIBS = $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX) |
michael@0 | 22 | |
michael@0 | 23 | ifdef MOZ_ENABLE_SIGNMAR |
michael@0 | 24 | LIBS += \ |
michael@0 | 25 | $(DEPTH)/modules/libmar/sign/$(LIB_PREFIX)signmar.$(LIB_SUFFIX) \ |
michael@0 | 26 | $(DEPTH)/modules/libmar/verify/$(LIB_PREFIX)verifymar.$(LIB_SUFFIX) \ |
michael@0 | 27 | $(DIST)/lib/$(LIB_PREFIX)nss3.$(LIB_SUFFIX) \ |
michael@0 | 28 | $(DIST)/lib/$(LIB_PREFIX)nssutil3.$(LIB_SUFFIX) \ |
michael@0 | 29 | $(NSPR_LIBS) \ |
michael@0 | 30 | $(NULL) |
michael@0 | 31 | endif |
michael@0 | 32 | |
michael@0 | 33 | ifeq ($(HOST_OS_ARCH),WINNT) |
michael@0 | 34 | HOST_EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32) |
michael@0 | 35 | EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32) |
michael@0 | 36 | ifdef MOZ_ENABLE_SIGNMAR |
michael@0 | 37 | EXTRA_LIBS += $(call EXPAND_LIBNAME,crypt32) |
michael@0 | 38 | EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32) |
michael@0 | 39 | endif |
michael@0 | 40 | endif |
michael@0 | 41 | |
michael@0 | 42 | include $(topsrcdir)/config/rules.mk |
michael@0 | 43 | |
michael@0 | 44 | ifdef CROSS_COMPILE |
michael@0 | 45 | ifdef HOST_NSPR_MDCPUCFG |
michael@0 | 46 | HOST_CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG) |
michael@0 | 47 | CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG) |
michael@0 | 48 | endif |
michael@0 | 49 | endif |