1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..$/..
29
30PRJNAME=xmlsecurity
31TARGET=xmlsecurity-mscxsfit
32ENABLE_EXCEPTIONS=TRUE
33NO_BSYMBOLIC=TRUE
34#TARGETTYPE=CUI
35LIBTARGET=NO
36
37
38# --- Settings -----------------------------------------------------
39
40.INCLUDE :  settings.mk
41.INCLUDE :	$(PRJ)$/util$/target.pmk
42
43.IF "$(CRYPTO_ENGINE)" == "mscrypto"
44
45CDEFS += -DXMLSEC_CRYPTO_MSCRYPTO -DXMLSEC_NO_XSLT
46SOLARINC += \
47	-I$(PRJ)$/source$/xmlsec \
48	-I$(PRJ)$/source$/xmlsec$/mscrypt
49
50# --- Files --------------------------------------------------------
51
52SHARE_LIBS =	\
53		$(CPPULIB)	\
54		$(CPPUHELPERLIB) \
55		$(SALLIB)
56
57.IF "$(GUI)"=="WNT"
58SHARE_LIBS+= "libxml2.lib" "crypt32.lib" "advapi32.lib" "libxmlsec.lib" "libxmlsec-mscrypto.lib" "xsec_xmlsec.lib" "xs_comm.lib" "xs_mscrypt.lib"
59.ELSE
60SHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" "-lxs_comm" "-lxs_nss"
61.ENDIF
62
63SHARE_OBJS =	\
64		$(OBJ)$/helper.obj
65
66#
67# The 1st application
68#
69
70APP2TARGET=	signer
71APP2OBJS=	\
72		$(SHARE_OBJS)	\
73		$(OBJ)$/signer.obj
74
75.IF "$(OS)" == "LINUX"
76APP2STDLIBS+= -lstdc++
77.ENDIF
78
79APP2STDLIBS+=	\
80		$(SHARE_LIBS)
81
82#
83# The 2nd application
84#
85APP3TARGET=	encrypter
86APP3OBJS=	\
87		$(SHARE_OBJS)	\
88		$(OBJ)$/encrypter.obj
89
90.IF "$(OS)" == "LINUX"
91APP3STDLIBS+= -lstdc++
92.ENDIF
93
94APP3STDLIBS+=	\
95		$(SHARE_LIBS)
96
97#
98# The 3rd application
99#
100APP4TARGET=	verifier
101APP4OBJS=	\
102		$(SHARE_OBJS)	\
103		$(OBJ)$/verifier.obj
104
105.IF "$(OS)" == "LINUX"
106APP4STDLIBS+= -lstdc++
107.ENDIF
108
109APP4STDLIBS+=	\
110		$(SHARE_LIBS)
111
112##
113## The 4th application
114##
115#APP5TARGET=	decrypter
116#APP5OBJS=	\
117#		$(SHARE_OBJS)	\
118#		$(OBJ)$/decrypter.obj
119#
120#.IF "$(OS)" == "LINUX"
121#APP5STDLIBS+= -lstdc++
122#.ENDIF
123#
124#APP5STDLIBS+=	\
125#		$(SHARE_LIBS)
126
127#
128# The 5th application
129#
130APP6TARGET=	certmngr
131APP6OBJS=	\
132		$(SHARE_OBJS)	\
133		$(OBJ)$/certmngr.obj
134
135.IF "$(OS)" == "LINUX"
136APP6STDLIBS+= -lstdc++
137.ENDIF
138
139APP6STDLIBS+=	\
140		$(SHARE_LIBS)
141
142.ENDIF
143
144# --- Targets ------------------------------------------------------
145
146.INCLUDE :  target.mk
147
148