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-cxsfit 28cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 29cdf0e10cSrcweirNO_BSYMBOLIC=TRUE 30cdf0e10cSrcweirTARGETTYPE=CUI 31cdf0e10cSrcweirLIBTARGET=NO 32cdf0e10cSrcweir 33cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 34cdf0e10cSrcweir 35cdf0e10cSrcweir.INCLUDE : settings.mk 36cdf0e10cSrcweir.INCLUDE : $(PRJ)$/util$/target.pmk 37cdf0e10cSrcweir 38cdf0e10cSrcweir 39cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss" 40cdf0e10cSrcweir 41cdf0e10cSrcweirMOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla 42cdf0e10cSrcweirNSS_INC = $(MOZ_INC)$/nss 43cdf0e10cSrcweirNSPR_INC = $(MOZ_INC)$/nspr 44cdf0e10cSrcweir 45cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS -DXMLSEC_NO_XSLT 46cdf0e10cSrcweirSOLARINC += \ 47cdf0e10cSrcweir -I$(MOZ_INC) \ 48cdf0e10cSrcweir -I$(NSPR_INC) \ 49cdf0e10cSrcweir -I$(NSS_INC) \ 50cdf0e10cSrcweir -I$(PRJ)$/source$/xmlsec \ 51cdf0e10cSrcweir -I$(PRJ)$/source$/xmlsec$/nss 52cdf0e10cSrcweir 53cdf0e10cSrcweir# --- Files -------------------------------------------------------- 54cdf0e10cSrcweir 55cdf0e10cSrcweirSHARE_LIBS = \ 56cdf0e10cSrcweir $(CPPULIB) \ 57cdf0e10cSrcweir $(CPPUHELPERLIB) \ 58cdf0e10cSrcweir $(SALHELPERLIB) \ 59cdf0e10cSrcweir $(SALLIB) 60cdf0e10cSrcweir 61cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 62cdf0e10cSrcweirSHARE_LIBS+= "ixml2.lib" "nss3.lib" "nspr4.lib" "libxmlsec.lib" "libxmlsec-nss.lib" "xsec_xmlsec.lib" 63cdf0e10cSrcweir.ELSE 64cdf0e10cSrcweirSHARE_LIBS+= "-lxml2" "-lnss3" "-lnspr4" "-lxmlsec1" "-lxmlsec1-nss" "-lxsec_xmlsec" 65cdf0e10cSrcweir.ENDIF 66cdf0e10cSrcweir 67cdf0e10cSrcweirSHARE_OBJS = \ 68cdf0e10cSrcweir $(OBJ)$/helper.obj 69cdf0e10cSrcweir 70cdf0e10cSrcweir# 71cdf0e10cSrcweir# The 1st application 72cdf0e10cSrcweir# 73cdf0e10cSrcweir 74cdf0e10cSrcweirAPP2TARGET= signer 75cdf0e10cSrcweirAPP2OBJS= \ 76cdf0e10cSrcweir $(SHARE_OBJS) \ 77cdf0e10cSrcweir $(OBJ)$/signer.obj 78cdf0e10cSrcweir 79cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 80cdf0e10cSrcweirAPP2STDLIBS+= -lstdc++ 81cdf0e10cSrcweir.ENDIF 82cdf0e10cSrcweir 83cdf0e10cSrcweirAPP2STDLIBS+= \ 84cdf0e10cSrcweir $(SHARE_LIBS) 85cdf0e10cSrcweir 86cdf0e10cSrcweir# 87cdf0e10cSrcweir# The 2nd application 88cdf0e10cSrcweir# 89cdf0e10cSrcweirAPP3TARGET= encrypter 90cdf0e10cSrcweirAPP3OBJS= \ 91cdf0e10cSrcweir $(SHARE_OBJS) \ 92cdf0e10cSrcweir $(OBJ)$/encrypter.obj 93cdf0e10cSrcweir 94cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 95cdf0e10cSrcweirAPP3STDLIBS+= -lstdc++ 96cdf0e10cSrcweir.ENDIF 97cdf0e10cSrcweir 98cdf0e10cSrcweirAPP3STDLIBS+= \ 99cdf0e10cSrcweir $(SHARE_LIBS) 100cdf0e10cSrcweir 101cdf0e10cSrcweir# 102cdf0e10cSrcweir# The 3rd application 103cdf0e10cSrcweir# 104cdf0e10cSrcweirAPP4TARGET= verifier 105cdf0e10cSrcweirAPP4OBJS= \ 106cdf0e10cSrcweir $(SHARE_OBJS) \ 107cdf0e10cSrcweir $(OBJ)$/verifier.obj 108cdf0e10cSrcweir 109cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 110cdf0e10cSrcweirAPP4STDLIBS+= -lstdc++ 111cdf0e10cSrcweir.ENDIF 112cdf0e10cSrcweir 113cdf0e10cSrcweirAPP4STDLIBS+= \ 114cdf0e10cSrcweir $(SHARE_LIBS) 115cdf0e10cSrcweir 116cdf0e10cSrcweir# 117cdf0e10cSrcweir# The 4th application 118cdf0e10cSrcweir# 119cdf0e10cSrcweirAPP5TARGET= decrypter 120cdf0e10cSrcweirAPP5OBJS= \ 121cdf0e10cSrcweir $(SHARE_OBJS) \ 122cdf0e10cSrcweir $(OBJ)$/decrypter.obj 123cdf0e10cSrcweir 124cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 125cdf0e10cSrcweirAPP5STDLIBS+= -lstdc++ 126cdf0e10cSrcweir.ENDIF 127cdf0e10cSrcweir 128cdf0e10cSrcweirAPP5STDLIBS+= \ 129cdf0e10cSrcweir $(SHARE_LIBS) 130cdf0e10cSrcweir 131cdf0e10cSrcweir# 132cdf0e10cSrcweir# The 5th application 133cdf0e10cSrcweir# 134cdf0e10cSrcweirAPP6TARGET= certmngr 135cdf0e10cSrcweirAPP6OBJS= \ 136cdf0e10cSrcweir $(SHARE_OBJS) \ 137cdf0e10cSrcweir $(OBJ)$/certmngr.obj 138cdf0e10cSrcweir 139cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 140cdf0e10cSrcweirAPP6STDLIBS+= -lstdc++ 141cdf0e10cSrcweir.ENDIF 142cdf0e10cSrcweir 143cdf0e10cSrcweirAPP6STDLIBS+= \ 144cdf0e10cSrcweir $(SHARE_LIBS) 145cdf0e10cSrcweir 146cdf0e10cSrcweir.ENDIF 147cdf0e10cSrcweir 148cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 149cdf0e10cSrcweir 150cdf0e10cSrcweir.INCLUDE : target.mk 151cdf0e10cSrcweir 152