michael@0: # vim:set ts=8 sw=8 sts=8 noet: michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # The mar executable is output into dist/host/bin since it is something that michael@0: # would only be used by our build system and should not itself be included in a michael@0: # Mozilla distribution. michael@0: michael@0: # Don't link the against libmozglue because we don't need it. michael@0: MOZ_GLUE_LDFLAGS = michael@0: MOZ_GLUE_PROGRAM_LDFLAGS = michael@0: michael@0: HOST_CFLAGS += \ michael@0: -DNO_SIGN_VERIFY \ michael@0: $(DEFINES) \ michael@0: $(NULL) michael@0: michael@0: HOST_LIBS = $(DIST)/host/lib/$(LIB_PREFIX)hostmar.$(LIB_SUFFIX) michael@0: LIBS = $(DEPTH)/modules/libmar/src/$(LIB_PREFIX)mar.$(LIB_SUFFIX) michael@0: michael@0: ifdef MOZ_ENABLE_SIGNMAR michael@0: LIBS += \ michael@0: $(DEPTH)/modules/libmar/sign/$(LIB_PREFIX)signmar.$(LIB_SUFFIX) \ michael@0: $(DEPTH)/modules/libmar/verify/$(LIB_PREFIX)verifymar.$(LIB_SUFFIX) \ michael@0: $(DIST)/lib/$(LIB_PREFIX)nss3.$(LIB_SUFFIX) \ michael@0: $(DIST)/lib/$(LIB_PREFIX)nssutil3.$(LIB_SUFFIX) \ michael@0: $(NSPR_LIBS) \ michael@0: $(NULL) michael@0: endif michael@0: michael@0: ifeq ($(HOST_OS_ARCH),WINNT) michael@0: HOST_EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32) michael@0: EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32) michael@0: ifdef MOZ_ENABLE_SIGNMAR michael@0: EXTRA_LIBS += $(call EXPAND_LIBNAME,crypt32) michael@0: EXTRA_LIBS += $(call EXPAND_LIBNAME,advapi32) michael@0: endif michael@0: endif michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifdef CROSS_COMPILE michael@0: ifdef HOST_NSPR_MDCPUCFG michael@0: HOST_CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG) michael@0: CFLAGS += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG) michael@0: endif michael@0: endif