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 22 23 24PRJ=..$/..$/.. 25 26PRJNAME = xmlsecurity 27TARGET = xs_nss 28 29ENABLE_EXCEPTIONS = TRUE 30 31# --- Settings ----------------------------------------------------- 32 33.INCLUDE : settings.mk 34.INCLUDE : $(PRJ)$/util$/target.pmk 35 36.IF "$(SYSTEM_LIBXML)" == "YES" 37CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS) 38.ENDIF 39 40.IF "$(ENABLE_NSS_MODULE)"!="YES" 41@all: 42 @echo "No nss -> no libxmlsec -> no xmlsecurity/nss" 43.ENDIF 44 45.IF "$(SYSTEM_MOZILLA)" != "YES" 46MOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla 47NSS_INC = $(MOZ_INC)$/nss 48NSPR_INC = $(MOZ_INC)$/nspr 49.ELSE 50# MOZ_INC already defined from environment 51NSS_INC = $(MOZ_NSS_CFLAGS) 52NSPR_INC = $(MOZ_INC)$/nspr 53.ENDIF 54 55.IF "$(GUI)"=="UNX" 56.IF "$(COMNAME)"=="sunpro5" 57CFLAGS += -features=tmplife 58#This flag is needed to build mozilla 1.7 code 59.ENDIF # "$(COMNAME)"=="sunpro5" 60.ENDIF 61 62.IF "$(GUI)" == "WNT" 63.IF "$(DBG_LEVEL)" == "0" 64INCPRE += \ 65-I$(MOZ_INC)$/profile \ 66-I$(MOZ_INC)$/string \ 67-I$(MOZ_INC)$/embed_base 68.IF "$(COM)"=="GCC" 69CFLAGS += $(CFLAGSDEBUG) 70.ELSE 71CFLAGS += -GR- -W3 -Gy -MD -UDEBUG 72.ENDIF 73.ELSE 74INCPRE += \ 75-I$(MOZ_INC)$/profile \ 76-I$(MOZ_INC)$/string \ 77-I$(MOZ_INC)$/embed_base 78.IF "$(COM)"=="GCC" 79.ELSE 80CFLAGS += -Zi -GR- -W3 -Gy -MDd -UNDEBUG 81.ENDIF 82.ENDIF 83.ENDIF 84.IF "$(GUI)" == "UNX" 85INCPOST += \ 86$(MOZ_INC)$/profile \ 87-I$(MOZ_INC)$/string \ 88-I$(MOZ_INC)$/embed_base 89#.IF "$(OS)" == "LINUX" 90#CFLAGS += -fPIC -g 91#CFLAGSCXX += \ 92# -fno-rtti -Wall -Wconversion -Wpointer-arith \ 93# -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ 94# -Wno-long-long -pthread 95#CDEFS += -DTRACING 96#.ELIF "$(OS)" == "NETBSD" 97#CFLAGS += -fPIC 98#CFLAGSCXX += \ 99# -fno-rtti -Wall -Wconversion -Wpointer-arith \ 100# -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \ 101# -Wno-long-long 102#CDEFS += -DTRACING 103#.ENDIF 104.ENDIF 105 106.IF "$(CRYPTO_ENGINE)" == "nss" 107CDEFS += -DXMLSEC_CRYPTO_NSS 108.ENDIF 109 110CDEFS += -DXMLSEC_NO_XSLT 111 112# --- Files -------------------------------------------------------- 113 114SOLARINC += \ 115 -I$(MOZ_INC) \ 116-I$(NSPR_INC) \ 117-I$(PRJ)$/source$/xmlsec 118 119SOLARINC += -I$(NSS_INC) 120 121SLOFILES = \ 122 $(SLO)$/nssinitializer.obj \ 123 $(SLO)$/digestcontext.obj \ 124 $(SLO)$/ciphercontext.obj \ 125 $(SLO)$/xsec_nss.obj 126 127.IF "$(CRYPTO_ENGINE)" == "nss" 128SLOFILES += \ 129 $(SLO)$/securityenvironment_nssimpl.obj \ 130 $(SLO)$/seinitializer_nssimpl.obj \ 131 $(SLO)$/xmlencryption_nssimpl.obj \ 132 $(SLO)$/xmlsecuritycontext_nssimpl.obj \ 133 $(SLO)$/xmlsignature_nssimpl.obj \ 134 $(SLO)$/x509certificate_nssimpl.obj \ 135 $(SLO)$/sanextension_nssimpl.obj \ 136 $(SLO)$/secerror.obj 137 138.ENDIF 139 140# --- Targets ------------------------------------------------------ 141 142.INCLUDE : target.mk 143