xref: /AOO41X/main/xmlsecurity/util/makefile.mk (revision 7871dc3ea494bf86c742e1f4dfc9c6e20f5bcb2a)
1*7871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew 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
38cdf0e10cSrcweir.IF "$(WITH_MOZILLA)" == "NO"
39cdf0e10cSrcweir@all:
40cdf0e10cSrcweir	@echo "No mozilla -> 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
74cdf0e10cSrcweir.IF "$(ENABLE_NSS_MODULE)"=="YES" || "$(SYSTEM_MOZILLA)" == "YES"
75cdf0e10cSrcweir
76cdf0e10cSrcweirSHL2LIBS= \
77cdf0e10cSrcweir	$(SLB)$/xs_comm.lib
78cdf0e10cSrcweir
79cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
80cdf0e10cSrcweirSHL2LIBS += \
81cdf0e10cSrcweir	$(SLB)$/xs_mscrypt.lib
82cdf0e10cSrcweir.ENDIF
83cdf0e10cSrcweir
84cdf0e10cSrcweirSHL2LIBS += \
85cdf0e10cSrcweir	$(SLB)$/xs_nss.lib
86cdf0e10cSrcweir
87cdf0e10cSrcweir.ENDIF
88cdf0e10cSrcweir
89cdf0e10cSrcweir
90cdf0e10cSrcweirSHL2STDLIBS +=			\
91cdf0e10cSrcweir	$(SALLIB)			\
92cdf0e10cSrcweir	$(CPPULIB)			\
93cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
94cdf0e10cSrcweir	$(SALLIB)	\
95cdf0e10cSrcweir	$(SVLLIB)			\
96cdf0e10cSrcweir	$(TOOLSLIB)			\
97cdf0e10cSrcweir	$(COMPHELPERLIB)	\
98cdf0e10cSrcweir	$(CPPUHELPERLIB)	\
99cdf0e10cSrcweir	$(XMLOFFLIB)
100cdf0e10cSrcweir
101cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS"
102cdf0e10cSrcweirSHL2STDLIBS +=-ldl
103cdf0e10cSrcweir.ENDIF
104cdf0e10cSrcweir
105cdf0e10cSrcweir.IF "$(SYSTEM_MOZILLA)" == "YES"
106cdf0e10cSrcweir.IF "$(NSPR_LIB)" != ""
107cdf0e10cSrcweirSHL2STDLIBS += $(NSPR_LIB)
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir.IF "$(NSS_LIB)" != ""
110cdf0e10cSrcweirSHL2STDLIBS += $(NSS_LIB)
111cdf0e10cSrcweir.ENDIF
112cdf0e10cSrcweir.ENDIF
113cdf0e10cSrcweir
114cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
115cdf0e10cSrcweirSHL2STDLIBS+= $(MSCRYPTOLIBS)
116cdf0e10cSrcweir# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB)
117cdf0e10cSrcweirSHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB)
118cdf0e10cSrcweir.ELSE
119cdf0e10cSrcweirSHL2STDLIBS+= $(NSSCRYPTOLIBS)
120cdf0e10cSrcweir.ENDIF
121cdf0e10cSrcweir
122cdf0e10cSrcweir
123cdf0e10cSrcweirSHL2IMPLIB = $(SHL2TARGET)
124cdf0e10cSrcweirSHL2DEF = $(MISC)$/$(SHL2TARGET).def
125cdf0e10cSrcweirDEF2NAME = $(SHL2TARGET)
126cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
127cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsmscrypt.dxp
128cdf0e10cSrcweir.ENDIF
129cdf0e10cSrcweir
130cdf0e10cSrcweirDEF2EXPORTFILE = exports_xsnss.dxp
131cdf0e10cSrcweir
132cdf0e10cSrcweirSRSFILELIST=	\
133cdf0e10cSrcweir                $(SRS)$/component.srs   \
134cdf0e10cSrcweir                $(SRS)$/dialogs.srs
135cdf0e10cSrcweir
136cdf0e10cSrcweirRESLIB1NAME=xmlsec
137cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res
138cdf0e10cSrcweirRESLIB1SRSFILES= $(SRSFILELIST)
139cdf0e10cSrcweir
140cdf0e10cSrcweirSHL4TARGET=$(TARGET)
141cdf0e10cSrcweirSHL4LIBS=\
142cdf0e10cSrcweir                $(SLB)$/helper.lib      \
143cdf0e10cSrcweir                $(SLB)$/dialogs.lib     \
144cdf0e10cSrcweir                $(SLB)$/component.lib
145cdf0e10cSrcweir
146cdf0e10cSrcweirSHL4STDLIBS=\
147cdf0e10cSrcweir                $(CPPULIB)			\
148cdf0e10cSrcweir				$(CPPUHELPERLIB)	\
149cdf0e10cSrcweir				$(COMPHELPERLIB)	\
150cdf0e10cSrcweir				$(UCBHELPERLIB)	    \
151cdf0e10cSrcweir				$(UNOTOOLSLIB)	    \
152cdf0e10cSrcweir				$(VCLLIB)			\
153cdf0e10cSrcweir				$(TOOLSLIB) 		\
154cdf0e10cSrcweir				$(SVTOOLLIB) 		\
155cdf0e10cSrcweir				$(SALLIB)			\
156cdf0e10cSrcweir				$(SVLLIB)			\
157cdf0e10cSrcweir				$(XMLOFFLIB)		\
158cdf0e10cSrcweir				$(SVXCORELIB)
159cdf0e10cSrcweir
160cdf0e10cSrcweirSHL4VERSIONMAP = $(SOLARENV)/src/component.map
161cdf0e10cSrcweirSHL4DEPN=
162cdf0e10cSrcweirSHL4IMPLIB=i$(TARGET)
163cdf0e10cSrcweirSHL4DEF=$(MISC)$/$(SHL4TARGET).def
164cdf0e10cSrcweirDEF4NAME=$(SHL4TARGET)
165cdf0e10cSrcweir
166cdf0e10cSrcweir# --- Targets ----------------------------------------------------------
167cdf0e10cSrcweir
168cdf0e10cSrcweir.INCLUDE :  target.mk
169cdf0e10cSrcweir
170cdf0e10cSrcweir# --- Filter -----------------------------------------------------------
171cdf0e10cSrcweir
172cdf0e10cSrcweir$(MISC)$/$(SHL3TARGET).flt: makefile.mk
173cdf0e10cSrcweir	$(TYPE) $(SHL3TARGET).flt > $@
174cdf0e10cSrcweir
175cdf0e10cSrcweirALLTAR : \
176cdf0e10cSrcweir    $(MISC)/xmlsecurity.component \
177cdf0e10cSrcweir    $(MISC)/xsec_fw.component \
178cdf0e10cSrcweir    $(MISC)/xsec_xmlsec.component
179cdf0e10cSrcweir
180cdf0e10cSrcweir.IF "$(OS)" == "WNT"
181cdf0e10cSrcweirmy_platform = .windows
182cdf0e10cSrcweir.END
183cdf0e10cSrcweir
184cdf0e10cSrcweir$(MISC)/xmlsecurity.component .ERRREMOVE : \
185cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
186cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
187cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
188cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
189cdf0e10cSrcweir
190cdf0e10cSrcweir$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
191cdf0e10cSrcweir        xsec_fw.component
192cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
193cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
194cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component
195cdf0e10cSrcweir
196cdf0e10cSrcweir$(MISC)/xsec_xmlsec.component .ERRREMOVE : \
197cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component
198cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
199cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
200cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component
201