merge the formfield patch from ooo-build
[ooovba.git] / xmlsecurity / tools / standalone / mscsfit / makefile.mk
bloba312f55fad0c99dd2930e8b32519d9a164ae8a23
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.6 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..$/..$/..
34 PRJNAME=xmlsecurity
35 TARGET=xmlsecurity-mscxsfit
36 ENABLE_EXCEPTIONS=TRUE
37 NO_BSYMBOLIC=TRUE
38 #TARGETTYPE=CUI
39 LIBTARGET=NO
42 # --- Settings -----------------------------------------------------
44 .INCLUDE : settings.mk
45 .INCLUDE : $(PRJ)$/util$/target.pmk
47 .IF "$(CRYPTO_ENGINE)" == "mscrypto"
49 CDEFS += -DXMLSEC_CRYPTO_MSCRYPTO -DXMLSEC_NO_XSLT
50 SOLARINC += \
51 -I$(PRJ)$/source$/xmlsec \
52 -I$(PRJ)$/source$/xmlsec$/mscrypt
54 # --- Files --------------------------------------------------------
56 SHARE_LIBS = \
57 $(CPPULIB) \
58 $(CPPUHELPERLIB) \
59 $(SALLIB)
61 .IF "$(GUI)"=="WNT"
62 SHARE_LIBS+= "libxml2.lib" "crypt32.lib" "advapi32.lib" "libxmlsec.lib" "libxmlsec-mscrypto.lib" "xsec_xmlsec.lib" "xs_comm.lib" "xs_mscrypt.lib"
63 .ELSE
64 SHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" "-lxs_comm" "-lxs_nss"
65 .ENDIF
67 SHARE_OBJS = \
68 $(OBJ)$/helper.obj
71 # The 1st application
74 APP2TARGET= signer
75 APP2OBJS= \
76 $(SHARE_OBJS) \
77 $(OBJ)$/signer.obj
79 .IF "$(OS)" == "LINUX"
80 APP2STDLIBS+= -lstdc++
81 .ENDIF
83 APP2STDLIBS+= \
84 $(SHARE_LIBS)
87 # The 2nd application
89 APP3TARGET= encrypter
90 APP3OBJS= \
91 $(SHARE_OBJS) \
92 $(OBJ)$/encrypter.obj
94 .IF "$(OS)" == "LINUX"
95 APP3STDLIBS+= -lstdc++
96 .ENDIF
98 APP3STDLIBS+= \
99 $(SHARE_LIBS)
102 # The 3rd application
104 APP4TARGET= verifier
105 APP4OBJS= \
106 $(SHARE_OBJS) \
107 $(OBJ)$/verifier.obj
109 .IF "$(OS)" == "LINUX"
110 APP4STDLIBS+= -lstdc++
111 .ENDIF
113 APP4STDLIBS+= \
114 $(SHARE_LIBS)
117 ## The 4th application
119 #APP5TARGET= decrypter
120 #APP5OBJS= \
121 # $(SHARE_OBJS) \
122 # $(OBJ)$/decrypter.obj
124 #.IF "$(OS)" == "LINUX"
125 #APP5STDLIBS+= -lstdc++
126 #.ENDIF
128 #APP5STDLIBS+= \
129 # $(SHARE_LIBS)
132 # The 5th application
134 APP6TARGET= certmngr
135 APP6OBJS= \
136 $(SHARE_OBJS) \
137 $(OBJ)$/certmngr.obj
139 .IF "$(OS)" == "LINUX"
140 APP6STDLIBS+= -lstdc++
141 .ENDIF
143 APP6STDLIBS+= \
144 $(SHARE_LIBS)
146 .ENDIF
148 # --- Targets ------------------------------------------------------
150 .INCLUDE : target.mk