merged tag ooo/OOO330_m14
[LibreOffice.git] / xmlsecurity / util / makefile.mk
blob6ef221c7e309c1b27f34868b8994d382f3f69413
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 .ELSE
87 SHL2LIBS += \
88 $(SLB)$/xs_nss.lib
89 .ENDIF
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 .ELSE
121 SHL2STDLIBS+= $(NSSCRYPTOLIBS)
122 .ENDIF
124 SHL2IMPLIB = $(SHL2TARGET)
125 SHL2DEF = $(MISC)$/$(SHL2TARGET).def
126 DEF2NAME = $(SHL2TARGET)
127 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
128 DEF2EXPORTFILE = exports_xsmscrypt.dxp
129 .ELSE
130 DEF2EXPORTFILE = exports_xsnss.dxp
131 .ENDIF
133 SRSFILELIST= \
134 $(SRS)$/component.srs \
135 $(SRS)$/dialogs.srs
137 RESLIB1NAME=xmlsec
138 RESLIB1IMAGES=$(PRJ)$/res
139 RESLIB1SRSFILES= $(SRSFILELIST)
141 SHL4TARGET=$(TARGET)
142 SHL4LIBS=\
143 $(SLB)$/helper.lib \
144 $(SLB)$/dialogs.lib \
145 $(SLB)$/component.lib
147 SHL4STDLIBS=\
148 $(CPPULIB) \
149 $(CPPUHELPERLIB) \
150 $(COMPHELPERLIB) \
151 $(UCBHELPERLIB) \
152 $(UNOTOOLSLIB) \
153 $(VCLLIB) \
154 $(TOOLSLIB) \
155 $(SVTOOLLIB) \
156 $(SALLIB) \
157 $(SVLLIB) \
158 $(XMLOFFLIB) \
159 $(SVXCORELIB)
161 SHL4VERSIONMAP = $(SOLARENV)/src/component.map
162 SHL4DEPN=
163 SHL4IMPLIB=i$(TARGET)
164 SHL4DEF=$(MISC)$/$(SHL4TARGET).def
165 DEF4NAME=$(SHL4TARGET)
167 # --- Targets ----------------------------------------------------------
169 .INCLUDE : target.mk
171 # --- Filter -----------------------------------------------------------
173 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
174 $(TYPE) $(SHL3TARGET).flt > $@