1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..$/..
25
26PRJNAME=xmlsecurity
27TARGET=xmlsecurity-cxsfit
28ENABLE_EXCEPTIONS=TRUE
29NO_BSYMBOLIC=TRUE
30TARGETTYPE=CUI
31LIBTARGET=NO
32
33# --- Settings -----------------------------------------------------
34
35.INCLUDE :  settings.mk
36.INCLUDE :	$(PRJ)$/util$/target.pmk
37
38
39.IF "$(CRYPTO_ENGINE)" == "nss"
40
41MOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
42NSS_INC = $(MOZ_INC)$/nss
43NSPR_INC = $(MOZ_INC)$/nspr
44
45CDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
46SOLARINC += \
47	-I$(MOZ_INC) \
48        -I$(NSPR_INC) \
49        -I$(NSS_INC) \
50	-I$(PRJ)$/source$/xmlsec \
51	-I$(PRJ)$/source$/xmlsec$/nss
52
53# --- Files --------------------------------------------------------
54
55SHARE_LIBS =	\
56		$(CPPULIB)	\
57		$(CPPUHELPERLIB) \
58		$(SALHELPERLIB)	\
59		$(SALLIB)
60
61.IF "$(GUI)"=="WNT"
62SHARE_LIBS+= "ixml2.lib" "nss3.lib" "nspr4.lib" "libxmlsec.lib" "libxmlsec-nss.lib" "xsec_xmlsec.lib"
63.ELSE
64SHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec"
65.ENDIF
66
67SHARE_OBJS =	\
68		$(OBJ)$/helper.obj
69
70#
71# The 1st application
72#
73
74APP2TARGET=	signer
75APP2OBJS=	\
76		$(SHARE_OBJS)	\
77		$(OBJ)$/signer.obj
78
79.IF "$(OS)" == "LINUX"
80APP2STDLIBS+= -lstdc++
81.ENDIF
82
83APP2STDLIBS+=	\
84		$(SHARE_LIBS)
85
86#
87# The 2nd application
88#
89APP3TARGET=	encrypter
90APP3OBJS=	\
91		$(SHARE_OBJS)	\
92		$(OBJ)$/encrypter.obj
93
94.IF "$(OS)" == "LINUX"
95APP3STDLIBS+= -lstdc++
96.ENDIF
97
98APP3STDLIBS+=	\
99		$(SHARE_LIBS)
100
101#
102# The 3rd application
103#
104APP4TARGET=	verifier
105APP4OBJS=	\
106		$(SHARE_OBJS)	\
107		$(OBJ)$/verifier.obj
108
109.IF "$(OS)" == "LINUX"
110APP4STDLIBS+= -lstdc++
111.ENDIF
112
113APP4STDLIBS+=	\
114		$(SHARE_LIBS)
115
116#
117# The 4th application
118#
119APP5TARGET=	decrypter
120APP5OBJS=	\
121		$(SHARE_OBJS)	\
122		$(OBJ)$/decrypter.obj
123
124.IF "$(OS)" == "LINUX"
125APP5STDLIBS+= -lstdc++
126.ENDIF
127
128APP5STDLIBS+=	\
129		$(SHARE_LIBS)
130
131#
132# The 5th application
133#
134APP6TARGET=	certmngr
135APP6OBJS=	\
136		$(SHARE_OBJS)	\
137		$(OBJ)$/certmngr.obj
138
139.IF "$(OS)" == "LINUX"
140APP6STDLIBS+= -lstdc++
141.ENDIF
142
143APP6STDLIBS+=	\
144		$(SHARE_LIBS)
145
146.ENDIF
147
148# --- Targets ------------------------------------------------------
149
150.INCLUDE :  target.mk
151
152