xref: /aoo42x/main/xmlsecurity/util/makefile.mk (revision 66d4592e)
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
71*66d4592eSYuri Dario.IF "$(GUI)"=="OS2"
72*66d4592eSYuri DarioSHL2NAME=xsec_xs
73*66d4592eSYuri 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
1040021cf80SHerbert Dürr.IF "$(ENABLE_NSS_MODULE)"=="YES" && "$(SYSTEM_NSS)"!="YES"
105cdf0e10cSrcweir.IF "$(NSPR_LIB)" != ""
106cdf0e10cSrcweirSHL2STDLIBS += $(NSPR_LIB)
107cdf0e10cSrcweir.ENDIF
108cdf0e10cSrcweir.IF "$(NSS_LIB)" != ""
109cdf0e10cSrcweirSHL2STDLIBS += $(NSS_LIB)
110cdf0e10cSrcweir.ENDIF
111cdf0e10cSrcweir.ENDIF
112cdf0e10cSrcweir
113cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
114cdf0e10cSrcweirSHL2STDLIBS+= $(MSCRYPTOLIBS)
115cdf0e10cSrcweir# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB)
116cdf0e10cSrcweirSHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB)
117cdf0e10cSrcweir.ELSE
118cdf0e10cSrcweirSHL2STDLIBS+= $(NSSCRYPTOLIBS)
119cdf0e10cSrcweir.ENDIF
120cdf0e10cSrcweir
121cdf0e10cSrcweir
122cdf0e10cSrcweirSHL2IMPLIB = $(SHL2TARGET)
123cdf0e10cSrcweirSHL2DEF = $(MISC)$/$(SHL2TARGET).def
124cdf0e10cSrcweirDEF2NAME = $(SHL2TARGET)
125cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
126cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsmscrypt.dxp
127cdf0e10cSrcweir.ENDIF
128cdf0e10cSrcweir
129cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsnss.dxp
130cdf0e10cSrcweir
131cdf0e10cSrcweirSRSFILELIST=	\
132cdf0e10cSrcweir                $(SRS)$/component.srs   \
133cdf0e10cSrcweir                $(SRS)$/dialogs.srs
134cdf0e10cSrcweir
135cdf0e10cSrcweirRESLIB1NAME=xmlsec
136cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res
137cdf0e10cSrcweirRESLIB1SRSFILES= $(SRSFILELIST)
138cdf0e10cSrcweir
139cdf0e10cSrcweirSHL4TARGET=$(TARGET)
140cdf0e10cSrcweirSHL4LIBS=\
141cdf0e10cSrcweir                $(SLB)$/helper.lib      \
142cdf0e10cSrcweir                $(SLB)$/dialogs.lib     \
143cdf0e10cSrcweir                $(SLB)$/component.lib
144cdf0e10cSrcweir
145cdf0e10cSrcweirSHL4STDLIBS=\
146cdf0e10cSrcweir                $(CPPULIB)			\
147cdf0e10cSrcweir				$(CPPUHELPERLIB)	\
148cdf0e10cSrcweir				$(COMPHELPERLIB)	\
149cdf0e10cSrcweir				$(UCBHELPERLIB)	    \
150cdf0e10cSrcweir				$(UNOTOOLSLIB)	    \
151cdf0e10cSrcweir				$(VCLLIB)			\
152cdf0e10cSrcweir				$(TOOLSLIB) 		\
153cdf0e10cSrcweir				$(SVTOOLLIB) 		\
154cdf0e10cSrcweir				$(SALLIB)			\
155cdf0e10cSrcweir				$(SVLLIB)			\
156cdf0e10cSrcweir				$(XMLOFFLIB)		\
157cdf0e10cSrcweir				$(SVXCORELIB)
158cdf0e10cSrcweir
159cdf0e10cSrcweirSHL4VERSIONMAP = $(SOLARENV)/src/component.map
160cdf0e10cSrcweirSHL4DEPN=
161cdf0e10cSrcweirSHL4IMPLIB=i$(TARGET)
162cdf0e10cSrcweirSHL4DEF=$(MISC)$/$(SHL4TARGET).def
163cdf0e10cSrcweirDEF4NAME=$(SHL4TARGET)
164cdf0e10cSrcweir
165cdf0e10cSrcweir# --- Targets ----------------------------------------------------------
166cdf0e10cSrcweir
167cdf0e10cSrcweir.INCLUDE :  target.mk
168cdf0e10cSrcweir
169cdf0e10cSrcweir# --- Filter -----------------------------------------------------------
170cdf0e10cSrcweir
171cdf0e10cSrcweir$(MISC)$/$(SHL3TARGET).flt: makefile.mk
172cdf0e10cSrcweir	$(TYPE) $(SHL3TARGET).flt > $@
173cdf0e10cSrcweir
174cdf0e10cSrcweirALLTAR : \
175cdf0e10cSrcweir    $(MISC)/xmlsecurity.component \
176cdf0e10cSrcweir    $(MISC)/xsec_fw.component \
177cdf0e10cSrcweir    $(MISC)/xsec_xmlsec.component
178cdf0e10cSrcweir
179cdf0e10cSrcweir.IF "$(OS)" == "WNT"
180cdf0e10cSrcweirmy_platform = .windows
181cdf0e10cSrcweir.END
182cdf0e10cSrcweir
183cdf0e10cSrcweir$(MISC)/xmlsecurity.component .ERRREMOVE : \
184cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
185cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
186cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
187cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
188cdf0e10cSrcweir
189cdf0e10cSrcweir$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
190cdf0e10cSrcweir        xsec_fw.component
191cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
192cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
193cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component
194cdf0e10cSrcweir
195cdf0e10cSrcweir$(MISC)/xsec_xmlsec.component .ERRREMOVE : \
196cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component
197cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
198cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
199cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component
200