merged tag ooo/OOO330_m14
[LibreOffice.git] / xmlsecurity / tools / standalone / csfit / makefile.mk
blob36efa47ff64886c2113282c98c2474c7a2e582c7
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=..$/..$/..
30 PRJNAME=xmlsecurity
31 TARGET=xmlsecurity-cxsfit
32 ENABLE_EXCEPTIONS=TRUE
33 NO_BSYMBOLIC=TRUE
34 TARGETTYPE=CUI
35 LIBTARGET=NO
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
40 .INCLUDE : $(PRJ)$/util$/target.pmk
43 .IF "$(CRYPTO_ENGINE)" == "nss"
45 MOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
46 NSS_INC = $(MOZ_INC)$/nss
47 NSPR_INC = $(MOZ_INC)$/nspr
49 CDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT
50 SOLARINC += \
51 -I$(MOZ_INC) \
52 -I$(NSPR_INC) \
53 -I$(NSS_INC) \
54 -I$(PRJ)$/source$/xmlsec \
55 -I$(PRJ)$/source$/xmlsec$/nss
57 # --- Files --------------------------------------------------------
59 SHARE_LIBS = \
60 $(CPPULIB) \
61 $(CPPUHELPERLIB) \
62 $(SALHELPERLIB) \
63 $(SALLIB)
65 .IF "$(GUI)"=="WNT"
66 SHARE_LIBS+= "ixml2.lib" "nss3.lib" "nspr4.lib" "libxmlsec.lib" "libxmlsec-nss.lib" "xsec_xmlsec.lib"
67 .ELSE
68 SHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec"
69 .ENDIF
71 SHARE_OBJS = \
72 $(OBJ)$/helper.obj
75 # The 1st application
78 APP2TARGET= signer
79 APP2OBJS= \
80 $(SHARE_OBJS) \
81 $(OBJ)$/signer.obj
83 .IF "$(OS)" == "LINUX"
84 APP2STDLIBS+= -lstdc++
85 .ENDIF
87 APP2STDLIBS+= \
88 $(SHARE_LIBS)
91 # The 2nd application
93 APP3TARGET= encrypter
94 APP3OBJS= \
95 $(SHARE_OBJS) \
96 $(OBJ)$/encrypter.obj
98 .IF "$(OS)" == "LINUX"
99 APP3STDLIBS+= -lstdc++
100 .ENDIF
102 APP3STDLIBS+= \
103 $(SHARE_LIBS)
106 # The 3rd application
108 APP4TARGET= verifier
109 APP4OBJS= \
110 $(SHARE_OBJS) \
111 $(OBJ)$/verifier.obj
113 .IF "$(OS)" == "LINUX"
114 APP4STDLIBS+= -lstdc++
115 .ENDIF
117 APP4STDLIBS+= \
118 $(SHARE_LIBS)
121 # The 4th application
123 APP5TARGET= decrypter
124 APP5OBJS= \
125 $(SHARE_OBJS) \
126 $(OBJ)$/decrypter.obj
128 .IF "$(OS)" == "LINUX"
129 APP5STDLIBS+= -lstdc++
130 .ENDIF
132 APP5STDLIBS+= \
133 $(SHARE_LIBS)
136 # The 5th application
138 APP6TARGET= certmngr
139 APP6OBJS= \
140 $(SHARE_OBJS) \
141 $(OBJ)$/certmngr.obj
143 .IF "$(OS)" == "LINUX"
144 APP6STDLIBS+= -lstdc++
145 .ENDIF
147 APP6STDLIBS+= \
148 $(SHARE_LIBS)
150 .ENDIF
152 # --- Targets ------------------------------------------------------
154 .INCLUDE : target.mk