17871dc3eSAndrew Rist#************************************************************** 2*da7ca839SMatthias Seidel# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*da7ca839SMatthias Seidel# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*da7ca839SMatthias Seidel# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 19*da7ca839SMatthias Seidel# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 22cdf0e10cSrcweirPRJ=..$/..$/.. 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJNAME=xmlsecurity 25cdf0e10cSrcweirTARGET=xmlsecurity-cxsfit 26cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 27cdf0e10cSrcweirNO_BSYMBOLIC=TRUE 28cdf0e10cSrcweirTARGETTYPE=CUI 29cdf0e10cSrcweirLIBTARGET=NO 30cdf0e10cSrcweir 31cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir.INCLUDE : settings.mk 34cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/target.pmk 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss" 38cdf0e10cSrcweir 39cdf0e10cSrcweirMOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla 40cdf0e10cSrcweirNSS_INC = $(MOZ_INC)$/nss 41cdf0e10cSrcweirNSPR_INC = $(MOZ_INC)$/nspr 42cdf0e10cSrcweir 43cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT 44cdf0e10cSrcweirSOLARINC += \ 45cdf0e10cSrcweir -I$(MOZ_INC) \ 46cdf0e10cSrcweir -I$(NSPR_INC) \ 47cdf0e10cSrcweir -I$(NSS_INC) \ 48cdf0e10cSrcweir -I$(PRJ)$/source$/xmlsec \ 49cdf0e10cSrcweir -I$(PRJ)$/source$/xmlsec$/nss 50cdf0e10cSrcweir 51cdf0e10cSrcweir# --- Files -------------------------------------------------------- 52cdf0e10cSrcweir 53cdf0e10cSrcweirSHARE_LIBS = \ 54cdf0e10cSrcweir $(CPPULIB) \ 55cdf0e10cSrcweir $(CPPUHELPERLIB) \ 56cdf0e10cSrcweir $(SALHELPERLIB) \ 57cdf0e10cSrcweir $(SALLIB) 58cdf0e10cSrcweir 59cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 60*da7ca839SMatthias SeidelSHARE_LIBS+= "ixml2.lib" "nss3.lib" "libnspr4.lib" "libxmlsec.lib" "libxmlsec-nss.lib" "xsec_xmlsec.lib" 61cdf0e10cSrcweir.ELSE 62cdf0e10cSrcweirSHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" 63cdf0e10cSrcweir.ENDIF 64cdf0e10cSrcweir 65cdf0e10cSrcweirSHARE_OBJS = \ 66cdf0e10cSrcweir $(OBJ)$/helper.obj 67cdf0e10cSrcweir 68cdf0e10cSrcweir# 69cdf0e10cSrcweir# The 1st application 70cdf0e10cSrcweir# 71cdf0e10cSrcweir 72cdf0e10cSrcweirAPP2TARGET= signer 73cdf0e10cSrcweirAPP2OBJS= \ 74cdf0e10cSrcweir $(SHARE_OBJS) \ 75cdf0e10cSrcweir $(OBJ)$/signer.obj 76cdf0e10cSrcweir 77cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 78cdf0e10cSrcweirAPP2STDLIBS+= -lstdc++ 79cdf0e10cSrcweir.ENDIF 80cdf0e10cSrcweir 81cdf0e10cSrcweirAPP2STDLIBS+= \ 82cdf0e10cSrcweir $(SHARE_LIBS) 83cdf0e10cSrcweir 84cdf0e10cSrcweir# 85cdf0e10cSrcweir# The 2nd application 86cdf0e10cSrcweir# 87cdf0e10cSrcweirAPP3TARGET= encrypter 88cdf0e10cSrcweirAPP3OBJS= \ 89cdf0e10cSrcweir $(SHARE_OBJS) \ 90cdf0e10cSrcweir $(OBJ)$/encrypter.obj 91cdf0e10cSrcweir 92cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 93cdf0e10cSrcweirAPP3STDLIBS+= -lstdc++ 94cdf0e10cSrcweir.ENDIF 95cdf0e10cSrcweir 96cdf0e10cSrcweirAPP3STDLIBS+= \ 97cdf0e10cSrcweir $(SHARE_LIBS) 98cdf0e10cSrcweir 99cdf0e10cSrcweir# 100cdf0e10cSrcweir# The 3rd application 101cdf0e10cSrcweir# 102cdf0e10cSrcweirAPP4TARGET= verifier 103cdf0e10cSrcweirAPP4OBJS= \ 104cdf0e10cSrcweir $(SHARE_OBJS) \ 105cdf0e10cSrcweir $(OBJ)$/verifier.obj 106cdf0e10cSrcweir 107cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 108cdf0e10cSrcweirAPP4STDLIBS+= -lstdc++ 109cdf0e10cSrcweir.ENDIF 110cdf0e10cSrcweir 111cdf0e10cSrcweirAPP4STDLIBS+= \ 112cdf0e10cSrcweir $(SHARE_LIBS) 113cdf0e10cSrcweir 114cdf0e10cSrcweir# 115cdf0e10cSrcweir# The 4th application 116cdf0e10cSrcweir# 117cdf0e10cSrcweirAPP5TARGET= decrypter 118cdf0e10cSrcweirAPP5OBJS= \ 119cdf0e10cSrcweir $(SHARE_OBJS) \ 120cdf0e10cSrcweir $(OBJ)$/decrypter.obj 121cdf0e10cSrcweir 122cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 123cdf0e10cSrcweirAPP5STDLIBS+= -lstdc++ 124cdf0e10cSrcweir.ENDIF 125cdf0e10cSrcweir 126cdf0e10cSrcweirAPP5STDLIBS+= \ 127cdf0e10cSrcweir $(SHARE_LIBS) 128cdf0e10cSrcweir 129cdf0e10cSrcweir# 130cdf0e10cSrcweir# The 5th application 131cdf0e10cSrcweir# 132cdf0e10cSrcweirAPP6TARGET= certmngr 133cdf0e10cSrcweirAPP6OBJS= \ 134cdf0e10cSrcweir $(SHARE_OBJS) \ 135cdf0e10cSrcweir $(OBJ)$/certmngr.obj 136cdf0e10cSrcweir 137cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 138cdf0e10cSrcweirAPP6STDLIBS+= -lstdc++ 139cdf0e10cSrcweir.ENDIF 140cdf0e10cSrcweir 141cdf0e10cSrcweirAPP6STDLIBS+= \ 142cdf0e10cSrcweir $(SHARE_LIBS) 143cdf0e10cSrcweir 144cdf0e10cSrcweir.ENDIF 145cdf0e10cSrcweir 146cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 147cdf0e10cSrcweir 148cdf0e10cSrcweir.INCLUDE : target.mk 149cdf0e10cSrcweir 150