xref: /AOO42X/main/xmlsecurity/source/xmlsec/nss/makefile.mk (revision 5e48fca7e524eb943907f0a8808aae8b4c4c7424)
17871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
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
10cdf0e10cSrcweir#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
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.
19cdf0e10cSrcweir#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME = xmlsecurity
27cdf0e10cSrcweirTARGET = xs_nss
28cdf0e10cSrcweir
29cdf0e10cSrcweirENABLE_EXCEPTIONS = TRUE
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE :  settings.mk
34cdf0e10cSrcweir.INCLUDE :  $(PRJ)$/util$/target.pmk
35cdf0e10cSrcweir
36cdf0e10cSrcweir.IF "$(SYSTEM_LIBXML)" == "YES"
37*2782f488SDon LewisINCSYSTEM+=$(LIBXML_CFLAGS)
38*2782f488SDon LewisCFLAGS+=-DSYSTEM_LIBXML
39cdf0e10cSrcweir.ENDIF
40cdf0e10cSrcweir
41cc99daadSHerbert Dürr.IF "$(ENABLE_NSS_MODULE)"!="YES"
42cdf0e10cSrcweir@all:
43cc99daadSHerbert Dürr    @echo "No nss -> no libxmlsec -> no xmlsecurity/nss"
44cdf0e10cSrcweir.ENDIF
45cdf0e10cSrcweir
461b373359SDamjan Jovanovic.IF "$(SYSTEM_NSS)" == "YES"
471b373359SDamjan JovanovicCFLAGS+=-DSYSTEM_NSS
481b373359SDamjan Jovanovic.ENDIF
491b373359SDamjan Jovanovic
500301d5ecSHerbert Dürr.IF "$(SYSTEM_NSS)" != "YES"
51cdf0e10cSrcweirMOZ_INC = $(SOLARVERSION)$/$(INPATH)$/inc$(UPDMINOREXT)$/mozilla
525293ed5bSPedro GiffuniNSS_CFLAGS = -I$(MOZ_INC)$/nss
535293ed5bSPedro GiffuniNSPR_CFLAGS = -I$(MOZ_INC)$/nspr
5466d4592eSYuri Dario.ELIF "$(GUI)" == "OS2"
555293ed5bSPedro GiffuniNSS_CFLAGS = -I/@unixroot/usr/include/nss3
56774c2d42SYuri DarioNSPR_CFLAGS = -I/@unixroot/usr/include/nspr4
57cdf0e10cSrcweir.ENDIF
58cdf0e10cSrcweir
59cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
60cdf0e10cSrcweir.IF "$(DBG_LEVEL)" == "0"
61cdf0e10cSrcweirINCPRE += \
62cdf0e10cSrcweir-I$(MOZ_INC)$/profile \
63cdf0e10cSrcweir-I$(MOZ_INC)$/string \
64cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base
655d5bb310SMichael Stahl.IF "$(COM)"=="GCC"
665d5bb310SMichael StahlCFLAGS += $(CFLAGSDEBUG)
675d5bb310SMichael Stahl.ELSE
68cdf0e10cSrcweirCFLAGS +=   -GR- -W3 -Gy -MD -UDEBUG
695d5bb310SMichael Stahl.ENDIF
70cdf0e10cSrcweir.ELSE
71cdf0e10cSrcweirINCPRE += \
72cdf0e10cSrcweir-I$(MOZ_INC)$/profile \
73cdf0e10cSrcweir-I$(MOZ_INC)$/string \
74cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base
755d5bb310SMichael Stahl.IF "$(COM)"=="GCC"
765d5bb310SMichael Stahl.ELSE
77cdf0e10cSrcweirCFLAGS += -Zi -GR- -W3 -Gy -MDd -UNDEBUG
78cdf0e10cSrcweir.ENDIF
79cdf0e10cSrcweir.ENDIF
805d5bb310SMichael Stahl.ENDIF
81cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
82cdf0e10cSrcweirINCPOST += \
83cdf0e10cSrcweir$(MOZ_INC)$/profile \
84cdf0e10cSrcweir-I$(MOZ_INC)$/string \
85cdf0e10cSrcweir-I$(MOZ_INC)$/embed_base
86cdf0e10cSrcweir#.IF "$(OS)" == "LINUX"
87cdf0e10cSrcweir#CFLAGS +=   -fPIC -g
88cdf0e10cSrcweir#CFLAGSCXX += \
89cdf0e10cSrcweir#            -fno-rtti -Wall -Wconversion -Wpointer-arith \
90cdf0e10cSrcweir#            -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
91cdf0e10cSrcweir#            -Wno-long-long -pthread
92cdf0e10cSrcweir#CDEFS     += -DTRACING
93cdf0e10cSrcweir#.ELIF "$(OS)" == "NETBSD"
94cdf0e10cSrcweir#CFLAGS +=   -fPIC
95cdf0e10cSrcweir#CFLAGSCXX += \
96cdf0e10cSrcweir#            -fno-rtti -Wall -Wconversion -Wpointer-arith \
97cdf0e10cSrcweir#            -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth \
98cdf0e10cSrcweir#            -Wno-long-long
99cdf0e10cSrcweir#CDEFS     += -DTRACING
100cdf0e10cSrcweir#.ENDIF
101cdf0e10cSrcweir.ENDIF
102cdf0e10cSrcweir
103cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss"
104cdf0e10cSrcweirCDEFS += -DXMLSEC_CRYPTO_NSS
105cdf0e10cSrcweir.ENDIF
106cdf0e10cSrcweir
107cdf0e10cSrcweirCDEFS += -DXMLSEC_NO_XSLT
108cdf0e10cSrcweir
109cdf0e10cSrcweir# --- Files --------------------------------------------------------
110cdf0e10cSrcweir
111cdf0e10cSrcweirSOLARINC += \
1125293ed5bSPedro Giffuni $(NSPR_CFLAGS) \
113cdf0e10cSrcweir -I$(PRJ)$/source$/xmlsec
114cdf0e10cSrcweir
1155293ed5bSPedro GiffuniSOLARINC += $(NSS_CFLAGS)
116cdf0e10cSrcweir
117cdf0e10cSrcweirSLOFILES = \
118cdf0e10cSrcweir    $(SLO)$/nssinitializer.obj \
119cdf0e10cSrcweir    $(SLO)$/digestcontext.obj \
120cdf0e10cSrcweir    $(SLO)$/ciphercontext.obj \
121cdf0e10cSrcweir    $(SLO)$/xsec_nss.obj
122cdf0e10cSrcweir
123cdf0e10cSrcweir.IF "$(CRYPTO_ENGINE)" == "nss"
124cdf0e10cSrcweirSLOFILES += \
125cdf0e10cSrcweir    $(SLO)$/securityenvironment_nssimpl.obj \
126cdf0e10cSrcweir    $(SLO)$/seinitializer_nssimpl.obj \
127cdf0e10cSrcweir    $(SLO)$/xmlencryption_nssimpl.obj \
128cdf0e10cSrcweir    $(SLO)$/xmlsecuritycontext_nssimpl.obj \
129cdf0e10cSrcweir    $(SLO)$/xmlsignature_nssimpl.obj \
130cdf0e10cSrcweir    $(SLO)$/x509certificate_nssimpl.obj \
131cdf0e10cSrcweir    $(SLO)$/sanextension_nssimpl.obj \
132cdf0e10cSrcweir    $(SLO)$/secerror.obj
133cdf0e10cSrcweir
134cdf0e10cSrcweir.ENDIF
135cdf0e10cSrcweir
136cdf0e10cSrcweir# --- Targets ------------------------------------------------------
137cdf0e10cSrcweir
138cdf0e10cSrcweir.INCLUDE :  target.mk
139