1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
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
)
48 .IF
"$(CRYPTO_ENGINE)" != "nss"
52 .IF
"$(CRYPTO_ENGINE)" == "nss"
54 .IF
"$(WITH_MOZILLA)" == "NO"
56 @echo
"No mozilla -> no nss -> no libxmlsec -> no xmlsecurity/nss"
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
64 # MOZ_INC already defined from environment
65 NSS_INC
= $(MOZ_NSS_CFLAGS
)
66 NSPR_INC
= $(MOZ_INC
)$/nspr
70 .IF
"$(COMNAME)"=="sunpro5"
71 CFLAGS
+= -features
=tmplife
72 #This flag is needed to build mozilla 1.7 code
73 .ENDIF
# "$(COMNAME)"=="sunpro5"
77 .IF
"$(DBG_LEVEL)" == "0"
79 -I
$(MOZ_INC
)$/profile \
80 -I
$(MOZ_INC
)$/string \
81 -I
$(MOZ_INC
)$/embed_base
82 CFLAGS
+= -GR-
-W3
-Gy
-MD
-UDEBUG
85 -I
$(MOZ_INC
)$/profile \
86 -I
$(MOZ_INC
)$/string \
87 -I
$(MOZ_INC
)$/embed_base
88 CFLAGS
+= -Zi
-GR-
-W3
-Gy
-MDd
-UNDEBUG
94 -I
$(MOZ_INC
)$/string \
95 -I
$(MOZ_INC
)$/embed_base
96 #.IF "$(OS)" == "LINUX"
99 # -fno-rtti -Wall -Wconversion -Wpointer-arith \
100 # -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
101 # -Wno-long-long -pthread
103 #.ELIF "$(OS)" == "NETBSD"
106 # -fno-rtti -Wall -Wconversion -Wpointer-arith \
107 # -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
113 CDEFS
+= -DXMLSEC_CRYPTO_NSS
-DXMLSEC_NO_XSLT
115 # --- Files --------------------------------------------------------
120 -I
$(PRJ
)$/source
$/xmlsec
122 .IF
"$(SYSTEM_MOZILLA)" == "YES"
123 SOLARINC
+= -DSYSTEM_MOZILLA
$(NSS_INC
)
125 SOLARINC
+= -I
$(NSS_INC
)
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 \
140 # --- Targets ------------------------------------------------------