merge the formfield patch from ooo-build
[ooovba.git] / xmlsecurity / util / makefile.mk
blobcfc012a78cd2f138d71afedc649e06ad0014f372
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.24 $
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=xmlsecurity
37 # Disable '-z defs' due to broken libxpcom.
38 #LINKFLAGSDEFS=$(0)
39 USE_DEFFILE=TRUE
41 # --- Settings -----------------------------------------------------
43 .INCLUDE : settings.mk
44 .INCLUDE : $(PRJ)$/util$/target.pmk
46 .IF "$(WITH_MOZILLA)" == "NO"
47 @all:
48 @echo "No mozilla -> no nss -> no libxmlsec -> no xmlsecurity..."
49 .ENDIF
51 # --- Files --------------------------------------------------------
53 BMP_IN=$(PRJ)$/res
55 # --- Shared-Library -----------------------------------------------
58 # The 1st shared library
60 SHL1NAME=xsec_fw
61 SHL1TARGET= $(SHL1NAME)
62 SHL1LIBS= $(SLB)$/fw.lib
64 SHL1STDLIBS += \
65 $(SALLIB) \
66 $(CPPULIB) \
67 $(CPPUHELPERLIB)
69 SHL1IMPLIB = $(SHL1TARGET)
70 SHL1DEF = $(MISC)$/$(SHL1TARGET).def
71 DEF1NAME = $(SHL1TARGET)
72 DEF1EXPORTFILE = xsec_fw.dxp
75 # The 2nd shared library
77 SHL2NAME=xsec_xmlsec
78 SHL2TARGET= $(SHL2NAME)
79 SHL2LIBS= \
80 $(SLB)$/xs_comm.lib
82 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
83 SHL2LIBS += \
84 $(SLB)$/xs_mscrypt.lib
85 .ELSE
86 SHL2LIBS += \
87 $(SLB)$/xs_nss.lib
88 .ENDIF
90 SHL2STDLIBS += \
91 $(SALLIB) \
92 $(CPPULIB) \
93 $(CPPUHELPERLIB) \
94 $(SALLIB) \
95 $(SVLLIB) \
96 $(TOOLSLIB) \
97 $(COMPHELPERLIB) \
98 $(CPPUHELPERLIB) \
99 $(XMLOFFLIB)
101 .IF "$(OS)"=="SOLARIS"
102 SHL2STDLIBS +=-ldl
103 .ENDIF
105 .IF "$(SYSTEM_MOZILLA)" == "YES"
106 .IF "$(NSPR_LIB)" != ""
107 SHL2STDLIBS += $(NSPR_LIB)
108 .ENDIF
109 .IF "$(NSS_LIB)" != ""
110 SHL2STDLIBS += $(NSS_LIB)
111 .ENDIF
112 .ENDIF
114 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
115 SHL2STDLIBS+= $(MSCRYPTOLIBS)
116 .ELSE
117 SHL2STDLIBS+= $(NSSCRYPTOLIBS)
118 .ENDIF
120 SHL2IMPLIB = $(SHL2TARGET)
121 SHL2DEF = $(MISC)$/$(SHL2TARGET).def
122 DEF2NAME = $(SHL2TARGET)
123 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
124 DEF2EXPORTFILE = exports_xsmscrypt.dxp
125 .ELSE
126 DEF2EXPORTFILE = exports_xsnss.dxp
127 .ENDIF
129 SRSFILELIST= \
130 $(SRS)$/component.srs \
131 $(SRS)$/dialogs.srs
133 RESLIB1NAME=xmlsec
134 RESLIB1IMAGES=$(PRJ)$/res
135 RESLIB1SRSFILES= $(SRSFILELIST)
137 SHL4TARGET=$(TARGET)
138 SHL4LIBS=\
139 $(SLB)$/helper.lib \
140 $(SLB)$/dialogs.lib \
141 $(SLB)$/component.lib
143 SHL4STDLIBS=\
144 $(CPPULIB) \
145 $(CPPUHELPERLIB) \
146 $(COMPHELPERLIB) \
147 $(UCBHELPERLIB) \
148 $(UNOTOOLSLIB) \
149 $(VCLLIB) \
150 $(TOOLSLIB) \
151 $(SVTOOLLIB) \
152 $(SALLIB) \
153 $(SVLLIB) \
154 $(XMLOFFLIB) \
155 $(SVXCORELIB)
157 SHL4VERSIONMAP = xmlsecurity.map
158 SHL4DEPN=
159 SHL4IMPLIB=i$(TARGET)
160 SHL4DEF=$(MISC)$/$(SHL4TARGET).def
161 DEF4NAME=$(SHL4TARGET)
163 # --- Targets ----------------------------------------------------------
165 .INCLUDE : target.mk
167 # --- Filter -----------------------------------------------------------
169 $(MISC)$/$(SHL3TARGET).flt: makefile.mk
170 $(TYPE) $(SHL3TARGET).flt > $@