merge the formfield patch from ooo-build
[ooovba.git] / xmlsecurity / source / xmlsec / nss / makefile.mk
blob94fdfd96e76cb8aa9a32ba3b7ec78ae8db675396
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.9 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..$/..
34 PRJNAME = xmlsecurity
35 TARGET = xs_nss
37 ENABLE_EXCEPTIONS = TRUE
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : $(PRJ)$/util$/target.pmk
44 .IF "$(SYSTEM_LIBXML)" == "YES"
45 CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
46 .ENDIF
48 .IF "$(CRYPTO_ENGINE)" != "nss"
49 LIBTARGET=NO
50 .ENDIF
52 .IF "$(CRYPTO_ENGINE)" == "nss"
54 .IF "$(WITH_MOZILLA)" == "NO"
55 @all:
56 @echo "No mozilla -> no nss -> no libxmlsec -> no xmlsecurity/nss"
57 .ENDIF
59 .IF "$(SYSTEM_MOZILLA)" != "YES"
60 MOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
61 NSS_INC = $(MOZ_INC)$/nss
62 NSPR_INC = $(MOZ_INC)$/nspr
63 .ELSE
64 # MOZ_INC already defined from environment
65 NSS_INC = $(MOZ_NSS_CFLAGS)
66 NSPR_INC = $(MOZ_INC)$/nspr
67 .ENDIF
69 .IF "$(GUI)"=="UNX"
70 .IF "$(COMNAME)"=="sunpro5"
71 CFLAGS += -features=tmplife
72 #This flag is needed to build mozilla 1.7 code
73 .ENDIF # "$(COMNAME)"=="sunpro5"
74 .ENDIF
76 .IF "$(GUI)" == "WNT"
77 .IF "$(DBG_LEVEL)" == "0"
78 INCPRE += \
79 -I$(MOZ_INC)$/profile \
80 -I$(MOZ_INC)$/string \
81 -I$(MOZ_INC)$/embed_base
82 CFLAGS += -GR- -W3 -Gy -MD -UDEBUG
83 .ELSE
84 INCPRE += \
85 -I$(MOZ_INC)$/profile \
86 -I$(MOZ_INC)$/string \
87 -I$(MOZ_INC)$/embed_base
88 CFLAGS += -Zi -GR- -W3 -Gy -MDd -UNDEBUG
89 .ENDIF
90 .ENDIF
91 .IF "$(GUI)" == "UNX"
92 INCPOST += \
93 $(MOZ_INC)$/profile \
94 -I$(MOZ_INC)$/string \
95 -I$(MOZ_INC)$/embed_base
96 #.IF "$(OS)" == "LINUX"
97 #CFLAGS += -fPIC -g
98 #CFLAGSCXX += \
99 # -fno-rtti -Wall -Wconversion -Wpointer-arith \
100 # -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
101 # -Wno-long-long -pthread
102 #CDEFS += -DTRACING
103 #.ELIF "$(OS)" == "NETBSD"
104 #CFLAGS += -fPIC
105 #CFLAGSCXX += \
106 # -fno-rtti -Wall -Wconversion -Wpointer-arith \
107 # -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
108 # -Wno-long-long
109 #CDEFS += -DTRACING
110 #.ENDIF
111 .ENDIF
113 CDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
115 # --- Files --------------------------------------------------------
117 SOLARINC += \
118 -I$(MOZ_INC) \
119 -I$(NSPR_INC) \
120 -I$(PRJ)$/source$/xmlsec
122 .IF "$(SYSTEM_MOZILLA)" == "YES"
123 SOLARINC += -DSYSTEM_MOZILLA $(NSS_INC)
124 .ELSE
125 SOLARINC += -I$(NSS_INC)
126 .ENDIF
128 SLOFILES = \
129 $(SLO)$/securityenvironment_nssimpl.obj \
130 $(SLO)$/xmlencryption_nssimpl.obj \
131 $(SLO)$/xmlsecuritycontext_nssimpl.obj \
132 $(SLO)$/xmlsignature_nssimpl.obj \
133 $(SLO)$/x509certificate_nssimpl.obj \
134 $(SLO)$/seinitializer_nssimpl.obj \
135 $(SLO)$/xsec_nss.obj
138 .ENDIF
140 # --- Targets ------------------------------------------------------
142 .INCLUDE : target.mk