xref: /AOO42X/main/xmlsecurity/tools/standalone/mscsfit/makefile.mk (revision 5e48fca7e524eb943907f0a8808aae8b4c4c7424)
1*7871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=xmlsecurity
27cdf0e10cSrcweirTARGET=xmlsecurity-mscxsfit
28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
29cdf0e10cSrcweirNO_BSYMBOLIC=TRUE
30cdf0e10cSrcweir#TARGETTYPE=CUI
31cdf0e10cSrcweirLIBTARGET=NO
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweir# --- Settings -----------------------------------------------------
35cdf0e10cSrcweir
36cdf0e10cSrcweir.INCLUDE :  settings.mk
37cdf0e10cSrcweir.INCLUDE :  $(PRJ)$/util$/target.pmk
38cdf0e10cSrcweir
39cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "mscrypto"
40cdf0e10cSrcweir
41cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_MSCRYPTO -DXMLSEC_NO_XSLT
42cdf0e10cSrcweirSOLARINC += \
43cdf0e10cSrcweir    -I$(PRJ)$/source$/xmlsec \
44cdf0e10cSrcweir    -I$(PRJ)$/source$/xmlsec$/mscrypt
45cdf0e10cSrcweir
46cdf0e10cSrcweir# --- Files --------------------------------------------------------
47cdf0e10cSrcweir
48cdf0e10cSrcweirSHARE_LIBS =    \
49cdf0e10cSrcweir        $(CPPULIB)  \
50cdf0e10cSrcweir        $(CPPUHELPERLIB) \
51cdf0e10cSrcweir        $(SALLIB)
52cdf0e10cSrcweir
53cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
54cdf0e10cSrcweirSHARE_LIBS+= "libxml2.lib" "crypt32.lib" "advapi32.lib" "libxmlsec.lib" "libxmlsec-mscrypto.lib" "xsec_xmlsec.lib" "xs_comm.lib" "xs_mscrypt.lib"
55cdf0e10cSrcweir.ELSE
56cdf0e10cSrcweirSHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" "-lxs_comm" "-lxs_nss"
57cdf0e10cSrcweir.ENDIF
58cdf0e10cSrcweir
59cdf0e10cSrcweirSHARE_OBJS =    \
60cdf0e10cSrcweir        $(OBJ)$/helper.obj
61cdf0e10cSrcweir
62cdf0e10cSrcweir#
63cdf0e10cSrcweir# The 1st application
64cdf0e10cSrcweir#
65cdf0e10cSrcweir
66cdf0e10cSrcweirAPP2TARGET= signer
67cdf0e10cSrcweirAPP2OBJS=   \
68cdf0e10cSrcweir        $(SHARE_OBJS)   \
69cdf0e10cSrcweir        $(OBJ)$/signer.obj
70cdf0e10cSrcweir
71cdf0e10cSrcweir.IF "$(OS)" == "LINUX"
72cdf0e10cSrcweirAPP2STDLIBS+= -lstdc++
73cdf0e10cSrcweir.ENDIF
74cdf0e10cSrcweir
75cdf0e10cSrcweirAPP2STDLIBS+=   \
76cdf0e10cSrcweir        $(SHARE_LIBS)
77cdf0e10cSrcweir
78cdf0e10cSrcweir#
79cdf0e10cSrcweir# The 2nd application
80cdf0e10cSrcweir#
81cdf0e10cSrcweirAPP3TARGET= encrypter
82cdf0e10cSrcweirAPP3OBJS=   \
83cdf0e10cSrcweir        $(SHARE_OBJS)   \
84cdf0e10cSrcweir        $(OBJ)$/encrypter.obj
85cdf0e10cSrcweir
86cdf0e10cSrcweir.IF "$(OS)" == "LINUX"
87cdf0e10cSrcweirAPP3STDLIBS+= -lstdc++
88cdf0e10cSrcweir.ENDIF
89cdf0e10cSrcweir
90cdf0e10cSrcweirAPP3STDLIBS+=   \
91cdf0e10cSrcweir        $(SHARE_LIBS)
92cdf0e10cSrcweir
93cdf0e10cSrcweir#
94cdf0e10cSrcweir# The 3rd application
95cdf0e10cSrcweir#
96cdf0e10cSrcweirAPP4TARGET= verifier
97cdf0e10cSrcweirAPP4OBJS=   \
98cdf0e10cSrcweir        $(SHARE_OBJS)   \
99cdf0e10cSrcweir        $(OBJ)$/verifier.obj
100cdf0e10cSrcweir
101cdf0e10cSrcweir.IF "$(OS)" == "LINUX"
102cdf0e10cSrcweirAPP4STDLIBS+= -lstdc++
103cdf0e10cSrcweir.ENDIF
104cdf0e10cSrcweir
105cdf0e10cSrcweirAPP4STDLIBS+=   \
106cdf0e10cSrcweir        $(SHARE_LIBS)
107cdf0e10cSrcweir
108cdf0e10cSrcweir##
109cdf0e10cSrcweir## The 4th application
110cdf0e10cSrcweir##
111cdf0e10cSrcweir#APP5TARGET=    decrypter
112cdf0e10cSrcweir#APP5OBJS=  \
113cdf0e10cSrcweir#       $(SHARE_OBJS)   \
114cdf0e10cSrcweir#       $(OBJ)$/decrypter.obj
115cdf0e10cSrcweir#
116cdf0e10cSrcweir#.IF "$(OS)" == "LINUX"
117cdf0e10cSrcweir#APP5STDLIBS+= -lstdc++
118cdf0e10cSrcweir#.ENDIF
119cdf0e10cSrcweir#
120cdf0e10cSrcweir#APP5STDLIBS+=  \
121cdf0e10cSrcweir#       $(SHARE_LIBS)
122cdf0e10cSrcweir
123cdf0e10cSrcweir#
124cdf0e10cSrcweir# The 5th application
125cdf0e10cSrcweir#
126cdf0e10cSrcweirAPP6TARGET= certmngr
127cdf0e10cSrcweirAPP6OBJS=   \
128cdf0e10cSrcweir        $(SHARE_OBJS)   \
129cdf0e10cSrcweir        $(OBJ)$/certmngr.obj
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(OS)" == "LINUX"
132cdf0e10cSrcweirAPP6STDLIBS+= -lstdc++
133cdf0e10cSrcweir.ENDIF
134cdf0e10cSrcweir
135cdf0e10cSrcweirAPP6STDLIBS+=   \
136cdf0e10cSrcweir        $(SHARE_LIBS)
137cdf0e10cSrcweir
138cdf0e10cSrcweir.ENDIF
139cdf0e10cSrcweir
140cdf0e10cSrcweir# --- Targets ------------------------------------------------------
141cdf0e10cSrcweir
142cdf0e10cSrcweir.INCLUDE :  target.mk
143