modules/libmar/tool/Makefile.in

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:c593e218d1e7
1 # vim:set ts=8 sw=8 sts=8 noet:
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 # The mar executable is output into dist/host/bin since it is something that
8 # would only be used by our build system and should not itself be included in a
9 # Mozilla distribution.
10
11 # Don't link the against libmozglue because we don't need it.
12 MOZ_GLUE_LDFLAGS =
13 MOZ_GLUE_PROGRAM_LDFLAGS =
14
15 HOST_CFLAGS += \
16 -DNO_SIGN_VERIFY \
17 $(DEFINES) \
18 $(NULL)
19
20 HOST_LIBS = $(DIST)/host/lib/$(LIB_PREFIX)hostmar.$(LIB_SUFFIX)
21 LIBS = $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX)
22
23 ifdef MOZ_ENABLE_SIGNMAR
24 LIBS += \
25 $(DEPTH)/modules/libmar/sign/$(LIB_PREFIX)signmar.$(LIB_SUFFIX) \
26 $(DEPTH)/modules/libmar/verify/$(LIB_PREFIX)verifymar.$(LIB_SUFFIX) \
27 $(DIST)/lib/$(LIB_PREFIX)nss3.$(LIB_SUFFIX) \
28 $(DIST)/lib/$(LIB_PREFIX)nssutil3.$(LIB_SUFFIX) \
29 $(NSPR_LIBS) \
30 $(NULL)
31 endif
32
33 ifeq ($(HOST_OS_ARCH),WINNT)
34 HOST_EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32)
35 EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32)
36 ifdef MOZ_ENABLE_SIGNMAR
37 EXTRA_LIBS += $(call EXPAND_LIBNAME,crypt32)
38 EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32)
39 endif
40 endif
41
42 include $(topsrcdir)/config/rules.mk
43
44 ifdef CROSS_COMPILE
45 ifdef HOST_NSPR_MDCPUCFG
46 HOST_CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG)
47 CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG)
48 endif
49 endif

mercurial