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