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