masterfix DEV300: #i10000# build fix
[LibreOffice.git] / xmlsecurity / util / makefile.mk
blob4f60f4babe0e434be1e6d062ba61d4db402cd8d9
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=..
30 PRJNAME=xmlsecurity
31 TARGET=xmlsecurity
33 # Disable '-z defs' due to broken libxpcom.
34 #LINKFLAGSDEFS=$(0)
35 USE_DEFFILE=TRUE
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
40 .INCLUDE : $(PRJ)$/util$/target.pmk
42 .IF "$(WITH_MOZILLA)" == "NO"
43 @all:
44 @echo "No mozilla -> no nss -> no libxmlsec -> no xmlsecurity..."
45 .ENDIF
47 # --- Files --------------------------------------------------------
49 BMP_IN=$(PRJ)$/res
51 # --- Shared-Library -----------------------------------------------
54 # The 1st shared library
56 SHL1NAME=xsec_fw
57 SHL1TARGET= $(SHL1NAME)
58 SHL1LIBS= $(SLB)$/fw.lib
60 SHL1STDLIBS += \
61 $(SALLIB) \
62 $(CPPULIB) \
63 $(CPPUHELPERLIB)
65 SHL1IMPLIB = $(SHL1TARGET)
66 SHL1DEF = $(MISC)$/$(SHL1TARGET).def
67 DEF1NAME = $(SHL1TARGET)
68 DEF1EXPORTFILE = xsec_fw.dxp
71 # The 2nd shared library
74 SHL2NAME=xsec_xmlsec
75 SHL2TARGET= $(SHL2NAME)
78 .IF "$(ENABLE_NSS_MODULE)"=="YES" || "$(SYSTEM_MOZILLA)" == "YES"
80 SHL2LIBS= \
81 $(SLB)$/xs_comm.lib
83 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
84 SHL2LIBS += \
85 $(SLB)$/xs_mscrypt.lib
86 .ENDIF
88 SHL2LIBS += \
89 $(SLB)$/xs_nss.lib
91 .ENDIF
94 SHL2STDLIBS += \
95 $(SALLIB) \
96 $(CPPULIB) \
97 $(CPPUHELPERLIB) \
98 $(SALLIB) \
99 $(SVLLIB) \
100 $(TOOLSLIB) \
101 $(COMPHELPERLIB) \
102 $(CPPUHELPERLIB) \
103 $(XMLOFFLIB)
105 .IF "$(OS)"=="SOLARIS"
106 SHL2STDLIBS +=-ldl
107 .ENDIF
109 .IF "$(SYSTEM_MOZILLA)" == "YES"
110 .IF "$(NSPR_LIB)" != ""
111 SHL2STDLIBS += $(NSPR_LIB)
112 .ENDIF
113 .IF "$(NSS_LIB)" != ""
114 SHL2STDLIBS += $(NSS_LIB)
115 .ENDIF
116 .ENDIF
118 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
119 SHL2STDLIBS+= $(MSCRYPTOLIBS)
120 # SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB)
121 SHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB)
122 .ELSE
123 SHL2STDLIBS+= $(NSSCRYPTOLIBS)
124 .ENDIF
127 SHL2IMPLIB = $(SHL2TARGET)
128 SHL2DEF = $(MISC)$/$(SHL2TARGET).def
129 DEF2NAME = $(SHL2TARGET)
130 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
131 DEF2EXPORTFILE = exports_xsmscrypt.dxp
132 .ENDIF
134 DEF2EXPORTFILE = exports_xsnss.dxp
136 SRSFILELIST= \
137 $(SRS)$/component.srs \
138 $(SRS)$/dialogs.srs
140 RESLIB1NAME=xmlsec
141 RESLIB1IMAGES=$(PRJ)$/res
142 RESLIB1SRSFILES= $(SRSFILELIST)
144 SHL4TARGET=$(TARGET)
145 SHL4LIBS=\
146 $(SLB)$/helper.lib \
147 $(SLB)$/dialogs.lib \
148 $(SLB)$/component.lib
150 SHL4STDLIBS=\
151 $(CPPULIB) \
152 $(CPPUHELPERLIB) \
153 $(COMPHELPERLIB) \
154 $(UCBHELPERLIB) \
155 $(UNOTOOLSLIB) \
156 $(VCLLIB) \
157 $(TOOLSLIB) \
158 $(SVTOOLLIB) \
159 $(SALLIB) \
160 $(SVLLIB) \
161 $(XMLOFFLIB) \
162 $(SVXCORELIB)
164 SHL4VERSIONMAP = $(SOLARENV)/src/component.map
165 SHL4DEPN=
166 SHL4IMPLIB=i$(TARGET)
167 SHL4DEF=$(MISC)$/$(SHL4TARGET).def
168 DEF4NAME=$(SHL4TARGET)
170 # --- Targets ----------------------------------------------------------
172 .INCLUDE : target.mk
174 # --- Filter -----------------------------------------------------------
176 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
177 $(TYPE) $(SHL3TARGET).flt > $@
179 ALLTAR : \
180 $(MISC)/xmlsecurity.component \
181 $(MISC)/xsec_fw.component \
182 $(MISC)/xsec_xmlsec.component
184 .IF "$(OS)" == "WNT"
185 my_platform = .windows
186 .END
188 $(MISC)/xmlsecurity.component .ERRREMOVE : \
189 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
190 $(XSLTPROC) --nonet --stringparam uri \
191 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
192 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
194 $(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
195 xsec_fw.component
196 $(XSLTPROC) --nonet --stringparam uri \
197 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
198 $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component
200 $(MISC)/xsec_xmlsec.component .ERRREMOVE : \
201 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component
202 $(XSLTPROC) --nonet --stringparam uri \
203 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
204 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component