xref: /aoo41x/main/xmlsecurity/util/makefile.mk (revision 08bb353f)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=xmlsecurity
27cdf0e10cSrcweirTARGET=xmlsecurity
28cdf0e10cSrcweir
29cdf0e10cSrcweir# Disable '-z defs' due to broken libxpcom.
30cdf0e10cSrcweir#LINKFLAGSDEFS=$(0)
31cdf0e10cSrcweirUSE_DEFFILE=TRUE
32cdf0e10cSrcweir
33cdf0e10cSrcweir# --- Settings -----------------------------------------------------
34cdf0e10cSrcweir
35cdf0e10cSrcweir.INCLUDE :  settings.mk
36cdf0e10cSrcweir.INCLUDE :	$(PRJ)$/util$/target.pmk
37cdf0e10cSrcweir
38cc99daadSHerbert Dürr.IF "$(ENABLE_NSS_MODULE)" != "YES"
39cdf0e10cSrcweir@all:
40cc99daadSHerbert Dürr	@echo "No nss -> no libxmlsec -> no xmlsecurity..."
41cdf0e10cSrcweir.ENDIF
42cdf0e10cSrcweir
43cdf0e10cSrcweir# --- Files --------------------------------------------------------
44cdf0e10cSrcweir
45cdf0e10cSrcweirBMP_IN=$(PRJ)$/res
46cdf0e10cSrcweir
47cdf0e10cSrcweir# --- Shared-Library -----------------------------------------------
48cdf0e10cSrcweir
49cdf0e10cSrcweir#
50cdf0e10cSrcweir# The 1st shared library
51cdf0e10cSrcweir#
52cdf0e10cSrcweirSHL1NAME=xsec_fw
53cdf0e10cSrcweirSHL1TARGET= $(SHL1NAME)
54cdf0e10cSrcweirSHL1LIBS= $(SLB)$/fw.lib
55cdf0e10cSrcweir
56cdf0e10cSrcweirSHL1STDLIBS +=		\
57cdf0e10cSrcweir	$(SALLIB)		\
58cdf0e10cSrcweir	$(CPPULIB)		\
59cdf0e10cSrcweir	$(CPPUHELPERLIB)
60cdf0e10cSrcweir
61cdf0e10cSrcweirSHL1IMPLIB = $(SHL1TARGET)
62cdf0e10cSrcweirSHL1DEF = $(MISC)$/$(SHL1TARGET).def
63cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
64cdf0e10cSrcweirDEF1EXPORTFILE = xsec_fw.dxp
65cdf0e10cSrcweir
66cdf0e10cSrcweir#
67cdf0e10cSrcweir# The 2nd shared library
68cdf0e10cSrcweir#
69cdf0e10cSrcweir
70cdf0e10cSrcweirSHL2NAME=xsec_xmlsec
715b11f0d3SYuri Dario.IF "$(GUI)"=="OS2"
725b11f0d3SYuri DarioSHL2NAME=xsec_xs
735b11f0d3SYuri Dario.ENDIF
74cdf0e10cSrcweirSHL2TARGET= $(SHL2NAME)
75cdf0e10cSrcweir
76cdf0e10cSrcweir
77cdf0e10cSrcweirSHL2LIBS= \
78cdf0e10cSrcweir	$(SLB)$/xs_comm.lib
79cdf0e10cSrcweir
80cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
81cdf0e10cSrcweirSHL2LIBS += \
82cdf0e10cSrcweir	$(SLB)$/xs_mscrypt.lib
83cdf0e10cSrcweir.ENDIF
84cdf0e10cSrcweir
85cdf0e10cSrcweirSHL2LIBS += \
86cdf0e10cSrcweir	$(SLB)$/xs_nss.lib
87cdf0e10cSrcweir
88cdf0e10cSrcweir
89cdf0e10cSrcweirSHL2STDLIBS +=			\
90cdf0e10cSrcweir	$(SALLIB)			\
91cdf0e10cSrcweir	$(CPPULIB)			\
92cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
93cdf0e10cSrcweir	$(SALLIB)	\
94cdf0e10cSrcweir	$(SVLLIB)			\
95cdf0e10cSrcweir	$(TOOLSLIB)			\
96cdf0e10cSrcweir	$(COMPHELPERLIB)	\
97cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
98cdf0e10cSrcweir	$(XMLOFFLIB)
99cdf0e10cSrcweir
100cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS"
101cdf0e10cSrcweirSHL2STDLIBS +=-ldl
102cdf0e10cSrcweir.ENDIF
103cdf0e10cSrcweir
104*08bb353fSPedro Giffuni.IF "$(ENABLE_NSS_MODULE)"=="YES"
105*08bb353fSPedro Giffuni.IF "$(SYSTEM_NSS)"!="YES"
106cdf0e10cSrcweir.IF "$(NSPR_LIB)" != ""
107cdf0e10cSrcweirSHL2STDLIBS += $(NSPR_LIB)
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir.IF "$(NSS_LIB)" != ""
110cdf0e10cSrcweirSHL2STDLIBS += $(NSS_LIB)
111cdf0e10cSrcweir.ENDIF
112*08bb353fSPedro Giffuni.ELSE
113*08bb353fSPedro GiffuniSHL2STDLIBS += $(NSS_LIBS)
114*08bb353fSPedro Giffuni.ENDIF
115cdf0e10cSrcweir.ENDIF
116cdf0e10cSrcweir
117cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
118cdf0e10cSrcweirSHL2STDLIBS+= $(MSCRYPTOLIBS)
119cdf0e10cSrcweir# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB)
120cdf0e10cSrcweirSHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB)
121cdf0e10cSrcweir.ELSE
122cdf0e10cSrcweirSHL2STDLIBS+= $(NSSCRYPTOLIBS)
123cdf0e10cSrcweir.ENDIF
124cdf0e10cSrcweir
125cdf0e10cSrcweir
126cdf0e10cSrcweirSHL2IMPLIB = $(SHL2TARGET)
127cdf0e10cSrcweirSHL2DEF = $(MISC)$/$(SHL2TARGET).def
128cdf0e10cSrcweirDEF2NAME = $(SHL2TARGET)
129cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
130cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsmscrypt.dxp
131cdf0e10cSrcweir.ENDIF
132cdf0e10cSrcweir
133cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsnss.dxp
134cdf0e10cSrcweir
135cdf0e10cSrcweirSRSFILELIST=	\
136cdf0e10cSrcweir                $(SRS)$/component.srs   \
137cdf0e10cSrcweir                $(SRS)$/dialogs.srs
138cdf0e10cSrcweir
139cdf0e10cSrcweirRESLIB1NAME=xmlsec
140cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res
141cdf0e10cSrcweirRESLIB1SRSFILES= $(SRSFILELIST)
142cdf0e10cSrcweir
143cdf0e10cSrcweirSHL4TARGET=$(TARGET)
14497d9eac0SYuri Dario.IF "$(GUI)"=="OS2"
14597d9eac0SYuri DarioSHL4TARGET=xmlsecur
14697d9eac0SYuri Dario.ENDIF
147cdf0e10cSrcweirSHL4LIBS=\
148cdf0e10cSrcweir                $(SLB)$/helper.lib      \
149cdf0e10cSrcweir                $(SLB)$/dialogs.lib     \
150cdf0e10cSrcweir                $(SLB)$/component.lib
151cdf0e10cSrcweir
152cdf0e10cSrcweirSHL4STDLIBS=\
153cdf0e10cSrcweir                $(CPPULIB)			\
154cdf0e10cSrcweir				$(CPPUHELPERLIB)	\
155cdf0e10cSrcweir				$(COMPHELPERLIB)	\
156cdf0e10cSrcweir				$(UCBHELPERLIB)	    \
157cdf0e10cSrcweir				$(UNOTOOLSLIB)	    \
158cdf0e10cSrcweir				$(VCLLIB)			\
159cdf0e10cSrcweir				$(TOOLSLIB) 		\
160cdf0e10cSrcweir				$(SVTOOLLIB) 		\
161cdf0e10cSrcweir				$(SALLIB)			\
162cdf0e10cSrcweir				$(SVLLIB)			\
163cdf0e10cSrcweir				$(XMLOFFLIB)		\
164cdf0e10cSrcweir				$(SVXCORELIB)
165cdf0e10cSrcweir
166cdf0e10cSrcweirSHL4VERSIONMAP = $(SOLARENV)/src/component.map
167cdf0e10cSrcweirSHL4DEPN=
168cdf0e10cSrcweirSHL4IMPLIB=i$(TARGET)
169cdf0e10cSrcweirSHL4DEF=$(MISC)$/$(SHL4TARGET).def
170cdf0e10cSrcweirDEF4NAME=$(SHL4TARGET)
171cdf0e10cSrcweir
172cdf0e10cSrcweir# --- Targets ----------------------------------------------------------
173cdf0e10cSrcweir
174cdf0e10cSrcweir.INCLUDE :  target.mk
175cdf0e10cSrcweir
176cdf0e10cSrcweir# --- Filter -----------------------------------------------------------
177cdf0e10cSrcweir
178cdf0e10cSrcweir$(MISC)$/$(SHL3TARGET).flt: makefile.mk
179cdf0e10cSrcweir	$(TYPE) $(SHL3TARGET).flt > $@
180cdf0e10cSrcweir
181cdf0e10cSrcweirALLTAR : \
182cdf0e10cSrcweir    $(MISC)/xmlsecurity.component \
183cdf0e10cSrcweir    $(MISC)/xsec_fw.component \
184cdf0e10cSrcweir    $(MISC)/xsec_xmlsec.component
185cdf0e10cSrcweir
186cdf0e10cSrcweir.IF "$(OS)" == "WNT"
187cdf0e10cSrcweirmy_platform = .windows
188cdf0e10cSrcweir.END
189cdf0e10cSrcweir
190cdf0e10cSrcweir$(MISC)/xmlsecurity.component .ERRREMOVE : \
191cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
192cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
193cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
194cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
195cdf0e10cSrcweir
196cdf0e10cSrcweir$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
197cdf0e10cSrcweir        xsec_fw.component
198cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
199cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
200cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component
201cdf0e10cSrcweir
202cdf0e10cSrcweir$(MISC)/xsec_xmlsec.component .ERRREMOVE : \
203cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component
204cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
205cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
206cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component
207