1cdf0e10cSrcweir#************************************************************************* 2cdf0e10cSrcweir# 3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir# 5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir# 7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir# 9cdf0e10cSrcweir# This file is part of OpenOffice.org. 10cdf0e10cSrcweir# 11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14cdf0e10cSrcweir# 15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir# 21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25cdf0e10cSrcweir# 26cdf0e10cSrcweir#************************************************************************* 27cdf0e10cSrcweir 28cdf0e10cSrcweirPRJ=..$/..$/.. 29cdf0e10cSrcweir 30cdf0e10cSrcweirPRJNAME = xmlsecurity 31cdf0e10cSrcweirTARGET = xs_nss 32cdf0e10cSrcweir 33cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE 34cdf0e10cSrcweir 35cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 36cdf0e10cSrcweir 37cdf0e10cSrcweir.INCLUDE : settings.mk 38cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/target.pmk 39cdf0e10cSrcweir 40cdf0e10cSrcweir.IF "$(SYSTEM_LIBXML)" == "YES" 41cdf0e10cSrcweirCFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS) 42cdf0e10cSrcweir.ENDIF 43cdf0e10cSrcweir 44cdf0e10cSrcweir.IF "$(WITH_MOZILLA)" == "NO" || "$(ENABLE_NSS_MODULE)"!="YES" 45cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" != "YES" 46cdf0e10cSrcweir@all: 47cdf0e10cSrcweir @echo "No mozilla -> no nss -> no libxmlsec -> no xmlsecurity/nss" 48cdf0e10cSrcweir.ENDIF 49cdf0e10cSrcweir.ENDIF 50cdf0e10cSrcweir 51cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" != "YES" 52cdf0e10cSrcweirMOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla 53cdf0e10cSrcweirNSS_INC = $(MOZ_INC)$/nss 54cdf0e10cSrcweirNSPR_INC = $(MOZ_INC)$/nspr 55cdf0e10cSrcweir.ELSE 56cdf0e10cSrcweir# MOZ_INC already defined from environment 57cdf0e10cSrcweirNSS_INC = $(MOZ_NSS_CFLAGS) 58cdf0e10cSrcweirNSPR_INC = $(MOZ_INC)$/nspr 59cdf0e10cSrcweir.ENDIF 60cdf0e10cSrcweir 61cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 62cdf0e10cSrcweir.IF "$(COMNAME)"=="sunpro5" 63cdf0e10cSrcweirCFLAGS += -features=tmplife 64cdf0e10cSrcweir#This flag is needed to build mozilla 1.7 code 65cdf0e10cSrcweir.ENDIF # "$(COMNAME)"=="sunpro5" 66cdf0e10cSrcweir.ENDIF 67cdf0e10cSrcweir 68cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 69cdf0e10cSrcweir.IF "$(DBG_LEVEL)" == "0" 70cdf0e10cSrcweirINCPRE += \ 71cdf0e10cSrcweir-I$(MOZ_INC)$/profile \ 72cdf0e10cSrcweir-I$(MOZ_INC)$/string \ 73cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base 74*5d5bb310SMichael Stahl.IF "$(COM)"=="GCC" 75*5d5bb310SMichael StahlCFLAGS += $(CFLAGSDEBUG) 76*5d5bb310SMichael Stahl.ELSE 77cdf0e10cSrcweirCFLAGS += -GR- -W3 -Gy -MD -UDEBUG 78*5d5bb310SMichael Stahl.ENDIF 79cdf0e10cSrcweir.ELSE 80cdf0e10cSrcweirINCPRE += \ 81cdf0e10cSrcweir-I$(MOZ_INC)$/profile \ 82cdf0e10cSrcweir-I$(MOZ_INC)$/string \ 83cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base 84*5d5bb310SMichael Stahl.IF "$(COM)"=="GCC" 85*5d5bb310SMichael Stahl.ELSE 86cdf0e10cSrcweirCFLAGS += -Zi -GR- -W3 -Gy -MDd -UNDEBUG 87cdf0e10cSrcweir.ENDIF 88cdf0e10cSrcweir.ENDIF 89*5d5bb310SMichael Stahl.ENDIF 90cdf0e10cSrcweir.IF "$(GUI)" == "UNX" 91cdf0e10cSrcweirINCPOST += \ 92cdf0e10cSrcweir$(MOZ_INC)$/profile \ 93cdf0e10cSrcweir-I$(MOZ_INC)$/string \ 94cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base 95cdf0e10cSrcweir#.IF "$(OS)" == "LINUX" 96cdf0e10cSrcweir#CFLAGS += -fPIC -g 97cdf0e10cSrcweir#CFLAGSCXX += \ 98cdf0e10cSrcweir# -fno-rtti -Wall -Wconversion -Wpointer-arith \ 99cdf0e10cSrcweir# -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ 100cdf0e10cSrcweir# -Wno-long-long -pthread 101cdf0e10cSrcweir#CDEFS += -DTRACING 102cdf0e10cSrcweir#.ELIF "$(OS)" == "NETBSD" 103cdf0e10cSrcweir#CFLAGS += -fPIC 104cdf0e10cSrcweir#CFLAGSCXX += \ 105cdf0e10cSrcweir# -fno-rtti -Wall -Wconversion -Wpointer-arith \ 106cdf0e10cSrcweir# -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ 107cdf0e10cSrcweir# -Wno-long-long 108cdf0e10cSrcweir#CDEFS += -DTRACING 109cdf0e10cSrcweir#.ENDIF 110cdf0e10cSrcweir.ENDIF 111cdf0e10cSrcweir 112cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss" 113cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS 114cdf0e10cSrcweir.ENDIF 115cdf0e10cSrcweir 116cdf0e10cSrcweirCDEFS += -DXMLSEC_NO_XSLT 117cdf0e10cSrcweir 118cdf0e10cSrcweir# --- Files -------------------------------------------------------- 119cdf0e10cSrcweir 120cdf0e10cSrcweirSOLARINC += \ 121cdf0e10cSrcweir -I$(MOZ_INC) \ 122cdf0e10cSrcweir-I$(NSPR_INC) \ 123cdf0e10cSrcweir-I$(PRJ)$/source$/xmlsec 124cdf0e10cSrcweir 125cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" == "YES" 126cdf0e10cSrcweirSOLARINC += -DSYSTEM_MOZILLA $(NSS_INC) 127cdf0e10cSrcweir.ELSE 128cdf0e10cSrcweirSOLARINC += -I$(NSS_INC) 129cdf0e10cSrcweir.ENDIF 130cdf0e10cSrcweir 131cdf0e10cSrcweirSLOFILES = \ 132cdf0e10cSrcweir $(SLO)$/nssinitializer.obj \ 133cdf0e10cSrcweir $(SLO)$/digestcontext.obj \ 134cdf0e10cSrcweir $(SLO)$/ciphercontext.obj \ 135cdf0e10cSrcweir $(SLO)$/xsec_nss.obj 136cdf0e10cSrcweir 137cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss" 138cdf0e10cSrcweirSLOFILES += \ 139cdf0e10cSrcweir $(SLO)$/securityenvironment_nssimpl.obj \ 140cdf0e10cSrcweir $(SLO)$/seinitializer_nssimpl.obj \ 141cdf0e10cSrcweir $(SLO)$/xmlencryption_nssimpl.obj \ 142cdf0e10cSrcweir $(SLO)$/xmlsecuritycontext_nssimpl.obj \ 143cdf0e10cSrcweir $(SLO)$/xmlsignature_nssimpl.obj \ 144cdf0e10cSrcweir $(SLO)$/x509certificate_nssimpl.obj \ 145cdf0e10cSrcweir $(SLO)$/sanextension_nssimpl.obj \ 146cdf0e10cSrcweir $(SLO)$/secerror.obj 147cdf0e10cSrcweir 148cdf0e10cSrcweir.ENDIF 149cdf0e10cSrcweir 150cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 151cdf0e10cSrcweir 152cdf0e10cSrcweir.INCLUDE : target.mk 153