/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#gcc = /opt/intel/Compiler/11.0/081/bin/intel64/icc 
#gpp = /opt/intel/Compiler/11.0/081/bin/intel64/icc 
#gcc = icc -no_cpprt
gcc = gcc
#gpp = icc
gpp = g++
compatgpp = g++-2.95
gppstd = g++
javac = javac

# 	Since linking with pthreads drastically affects performance and 
#	threading enviroment is standard case nowdays, all tests can be
#	linked with threads library. Some of libraries in standard 
#	distributions are linked, others not. Forethore this can affect
#	relative performance
FORCE_LINK_PTHREAD = no

#	Support for XMark xml generator from 
#	http://monetdb.cwi.nl/xml/index.html
GENERATOR_XMARK = yes

#	DTD validation in parsing benchmark (implemented only for few parsers)
DTD_VALIDATION = no

ifeq ($(FORCE_LINK_PTHREAD),yes)
PTHREAD_LIBS = -lpthread
else
PTHREAD_LIBS = 
endif


LIBS = -lm $(PTHREAD_LIBS)
#FLAGS = -march=nocona -pipe -O2 -DMAXOUTSIZE=67108864 -DCYRILLIC_TEXT
FLAGS = -march=nocona -pipe -O2 -DMAXOUTSIZE=67108864 

####################################################################################

LIBXML = yes
LIBXML_INCLUDE = -I /opt/xml/libxml2-2.6.32/include -L /opt/xml/libxml2-2.6.32/.libs/
LIBXML_LIB =  -lxml2
#LIBXML_INCLUDE = -I /usr/include/libxml2
#LIBXML_LIB =  -lxml2

ifeq ($(LIBXML),yes)
GDOME = yes
GDOME_INCLUDE = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/libgdome
GDOME_LIB =  -lgdome -lglib $(LIBXML_LIB)

LIBXSLT = yes
LIBXSLT_INCLUDE = -I/usr/include/libxml2 -I/usr/include/libxslt
LIBXSLT_LIB = -lxslt $(LIBXML_LIB)

XMLSEC = no
XMLSEC_INCLUDE = $(shell xmlsec-config --cflags)
XMLSEC_LIB = $(shell xmlsec-config --libs)

XMLSEC1 = yes
XMLSEC1_INCLUDE = $(shell xmlsec1-config --cflags)
XMLSEC1_LIB = $(shell xmlsec1-config --libs)
endif

EXPAT = yes
EXPAT_INCLUDE = 
EXPAT_LIB = -lexpat

ifeq ($(EXPAT),yes)
SABLOTRON = yes
SABLOTRON_INCLUDE =
SABLOTRON_LIB =  -lsablot $(EXPAT_LIB)

ARABICA = yes
ARABICA_GCC = $(gpp)
ARABICA_INCLUDE = -I/usr/local/include/
ARABICA_LIB = -L/usr/local/lib -lpthread -larabica

CSLXML = no
CSLXML_INCLUDE = -I/usr/include/cslxml
CSLXML_LIB =  -lcslxml
endif

INTEL = yes
INTEL_INCLUDE = -I/opt/intel/xmlsoftwaresuite/cpp/1.2/
INTEL_LIB = -L/opt/intel/xmlsoftwaresuite/cpp/1.2/bin/intel64 -lintel-xss

XERCESC = yes
# Supported versions 2.1 (xalan<=1.3, gcc 2.96), 2.2, 2.3 (xalan>=1.4)
XERCESC_VERSION = 2.3
XERCESC_INCLUDE = -I/usr/include/xerces/
XERCESC_LIB = -lxerces-c

ifeq ($(XERCESC), yes)
XALANC = yes
XALANC_INCLUDE = -I/usr/include/xercesc/ -I/usr/include/xalanc/
XALANC_LIB = -lxalan-c $(XERCESC_LIB)

ifneq ($(XERCESC_VERSION), 2.1)
XSECURITY = yes
XSECURITY_POST_10 = yes
XSECURITY_LIB = -lxml-security-c $(XERCESC_LIB) -lcrypto
ifeq ($(XSECURITY_POST_10), yes)
XSECURITY_INCLUDE =  -I/usr/include/xsec $(XERCES_INCLUDE) -I/usr/include/openssl -D_APACHE_XML_SECURITY_1
else
XSECURITY_INCLUDE = -I/usr/include/xsec $(XERCES_INCLUDE) -I/usr/include/openssl
endif
endif
endif

XML4C = no
# Supported versions 5.0 (xalan<=1.3, gcc 2.96), 5.1, 5.2 (xalan>=1.4)
XML4C_VERSION = 5.2
XML4C_INCLUDE = -I/usr/include/xml4c/
XML4C_LIB = -lxml4c

ifeq ($(XML4C), yes)
# Realy using xalan library...
LOTUSXSL = no
LOTUSXSL_INCLUDE = -I/usr/include/xml4c/ -I/usr/include/xalan/
LOTUSXSL_LIB = -lxalan-c $(XML4C_LIB)
endif

RXP = yes
RXP_INCLUDE = -I/opt/xml/rxp
RXP_LIB =  -L/opt/xml/rxp -lrxp

XDKC = yes
XDKC_INCLUDE = -I/opt/xml/xdk_c/xdk/include -DORACLE_PARSER_FIX
XDKC_LIB = -L/opt/xml/xdk_c/lib -lxml10 -lcore10 -lnls10 -lunls10 -lcore10 -lnls10 -lcore10 -lnls10 -lnsl -lirc -lpthread -lm -ldl -m32
XDKC_LIB_VALIDATE = -L/opt/xml/xdk_c/lib -lxml10 -lcore10 -lnls10 -lunls10 -lcore10 -lnls10 -lcore10 -lnls10 -lnsl -lirc -lpthread -lm -ldl -m32

XDKP = yes
XDKP_INCLUDE = -I/opt/xml/xdk_c/xdk/include
XDKP_LIB = -L/opt/xml/xdk_c/lib -lxml10 -lcore10 -lnls10 -lunls10 -lcore10 -lnls10 -lcore10 -lnls10 -lnsl -lirc -lpthread -lm -ldl -m32
XDKP_LIB_VALIDATE = -L/opt/xml/xdk_c/lib -lxml10 -lcore10 -lnls10 -lunls10 -lcore10 -lnls10 -lcore10 -lnls10 -lnsl -lirc -lpthread -lm -ldl -m32

QT = yes
QT_INCLUDE = -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtCore -I/usr/include/qt4/ -I/usr/include/qt4/QtGui
QT_LIB = -L/usr/lib/qt4/ -lQtXml -lQtCore

PARABIX = no
PARABIX_INCLUDE = -DPARABIX_PARSER_FIX

ASMXML = yes

JAVA = yes
ifeq ($(JAVA),yes)
XDKJ = yes
ORACLE_CLASSPATH = .:../tools/:/opt/xml/xdk_j/lib/xmlparserv2.jar:$(CLASSPATH)

SUN = yes
SUN_CLASSPATH = .:../tools/:/opt/xml/apache/*:$(CLASSPATH)
#OLD_CLASSPATH = .:../tools/:/usr/share/java/xmlsec.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/xalan-j2.jar:/usr/share/java/log4j.jar:$(CLASSPATH)
endif