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