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-mscxsfit
28ENABLE_EXCEPTIONS=TRUE
29NO_BSYMBOLIC=TRUE
30#TARGETTYPE=CUI
31LIBTARGET=NO
32
33
34# --- Settings -----------------------------------------------------
35
36.INCLUDE :  settings.mk
37.INCLUDE :	$(PRJ)$/util$/target.pmk
38
39.IF "$(CRYPTO_ENGINE)" == "mscrypto"
40
41CDEFS += -DXMLSEC_CRYPTO_MSCRYPTO -DXMLSEC_NO_XSLT
42SOLARINC += \
43	-I$(PRJ)$/source$/xmlsec \
44	-I$(PRJ)$/source$/xmlsec$/mscrypt
45
46# --- Files --------------------------------------------------------
47
48SHARE_LIBS =	\
49		$(CPPULIB)	\
50		$(CPPUHELPERLIB) \
51		$(SALLIB)
52
53.IF "$(GUI)"=="WNT"
54SHARE_LIBS+= "libxml2.lib" "crypt32.lib" "advapi32.lib" "libxmlsec.lib" "libxmlsec-mscrypto.lib" "xsec_xmlsec.lib" "xs_comm.lib" "xs_mscrypt.lib"
55.ELSE
56SHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" "-lxs_comm" "-lxs_nss"
57.ENDIF
58
59SHARE_OBJS =	\
60		$(OBJ)$/helper.obj
61
62#
63# The 1st application
64#
65
66APP2TARGET=	signer
67APP2OBJS=	\
68		$(SHARE_OBJS)	\
69		$(OBJ)$/signer.obj
70
71.IF "$(OS)" == "LINUX"
72APP2STDLIBS+= -lstdc++
73.ENDIF
74
75APP2STDLIBS+=	\
76		$(SHARE_LIBS)
77
78#
79# The 2nd application
80#
81APP3TARGET=	encrypter
82APP3OBJS=	\
83		$(SHARE_OBJS)	\
84		$(OBJ)$/encrypter.obj
85
86.IF "$(OS)" == "LINUX"
87APP3STDLIBS+= -lstdc++
88.ENDIF
89
90APP3STDLIBS+=	\
91		$(SHARE_LIBS)
92
93#
94# The 3rd application
95#
96APP4TARGET=	verifier
97APP4OBJS=	\
98		$(SHARE_OBJS)	\
99		$(OBJ)$/verifier.obj
100
101.IF "$(OS)" == "LINUX"
102APP4STDLIBS+= -lstdc++
103.ENDIF
104
105APP4STDLIBS+=	\
106		$(SHARE_LIBS)
107
108##
109## The 4th application
110##
111#APP5TARGET=	decrypter
112#APP5OBJS=	\
113#		$(SHARE_OBJS)	\
114#		$(OBJ)$/decrypter.obj
115#
116#.IF "$(OS)" == "LINUX"
117#APP5STDLIBS+= -lstdc++
118#.ENDIF
119#
120#APP5STDLIBS+=	\
121#		$(SHARE_LIBS)
122
123#
124# The 5th application
125#
126APP6TARGET=	certmngr
127APP6OBJS=	\
128		$(SHARE_OBJS)	\
129		$(OBJ)$/certmngr.obj
130
131.IF "$(OS)" == "LINUX"
132APP6STDLIBS+= -lstdc++
133.ENDIF
134
135APP6STDLIBS+=	\
136		$(SHARE_LIBS)
137
138.ENDIF
139
140# --- Targets ------------------------------------------------------
141
142.INCLUDE :  target.mk
143
144