/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to create/Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2009-02-16 09:27:17 UTC
  • Revision ID: csa@dside.dyndns.org-20090216092717-wipyvaaw2srxhgns
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../Makefile.in
 
2
 
 
3
ALLTARGETS = libxml libxml-dom expat-cslxml-dom expat-sablotron-dom \
 
4
        xerces-dom xml4c-dom oracle-dom oracle-dom++ qt-dom \
 
5
        sun_dom2.class oracle_dom2.class
 
6
 
 
7
TARGETS = 
 
8
 
 
9
ifeq ($(LIBXML), yes)
 
10
TARGETS += libxml
 
11
ifeq ($(GDOME), yes)
 
12
TARGETS +=  libxml-dom
 
13
endif
 
14
endif
 
15
 
 
16
ifeq ($(CSLXML), yes)
 
17
TARGETS += expat-cslxml-dom 
 
18
endif
 
19
ifeq ($(SABLOTRON), yes)
 
20
TARGETS += expat-sablotron-dom
 
21
endif
 
22
 
 
23
ifeq ($(INTEL), yes)
 
24
TARGETS += intel-dom 
 
25
endif
 
26
ifeq ($(XERCESC), yes)
 
27
TARGETS += xerces-dom 
 
28
endif
 
29
ifeq ($(XML4C), yes)
 
30
TARGETS += xml4c-dom
 
31
endif
 
32
 
 
33
ifeq ($(XDKC), yes)
 
34
TARGETS += oracle-dom
 
35
endif
 
36
ifeq ($(XDKP), yes)
 
37
TARGETS += oracle-dom++
 
38
endif
 
39
 
 
40
ifeq ($(QT), yes)
 
41
TARGETS += qt-dom
 
42
endif
 
43
 
 
44
ifeq ($(XDKJ), yes)
 
45
TARGETS += oracle_dom2.class
 
46
endif
 
47
ifeq ($(SUN), yes)
 
48
TARGETS += sun_dom2.class
 
49
endif
 
50
 
 
51
HEADERS = tools.h ../tools/disp.h
 
52
CLASSES = bench.class
 
53
 
 
54
all:    $(TARGETS)
 
55
 
 
56
clean:
 
57
        rm -f $(ALLTARGETS) $(CLASSES)
 
58
 
 
59
libxml: libxml.c $(HEADERS)
 
60
        $(gcc) $< -o libxml $(LIBXML_INCLUDE) $(LIBXML_LIB) $(LIBS) $(FLAGS)
 
61
 
 
62
libxml-dom: libxml-dom.c $(HEADERS)
 
63
        $(gcc) $< -o libxml-dom $(GDOME_INCLUDE) $(GDOME_LIB) $(LIBS) $(FLAGS)
 
64
 
 
65
intel-dom: intel-dom.cpp $(HEADERS)
 
66
        $(gpp) $< -o intel-dom $(INTEL_INCLUDE) $(INTEL_LIB) -I./tools/xerces $(LIBS) $(FLAGS)
 
67
 
 
68
ifneq ($(XERCESC_VERSION), 2.1)
 
69
xerces-dom: xerces-dom.cpp $(HEADERS)
 
70
        $(gpp) $< -o xerces-dom $(XERCESC_INCLUDE) $(XERCESC_LIB) -I./tools/xerces $(LIBS) $(FLAGS)
 
71
else
 
72
xerces-dom: xerces-dom.cpp $(HEADERS)
 
73
        $(compatgpp) $< -o xerces-dom $(XERCESC_INCLUDE) $(XERCESC_LIB) -I./tools/xml4c $(LIBS) $(FLAGS)
 
74
endif
 
75
 
 
76
ifneq ($(XML4C_VERSION), 5.0)
 
77
xml4c-dom: xerces-dom.cpp $(HEADERS)
 
78
        $(gpp) $< -o xml4c-dom $(XML4C_INCLUDE) $(XML4C_LIB) -I./tools/xerces $(LIBS) $(FLAGS)
 
79
else
 
80
xml4c-dom: xerces-dom.cpp $(HEADERS)
 
81
        $(compatgpp) $< -o xml4c-dom $(XML4C_INCLUDE) $(XML4C_LIB) -I./tools/xml4c $(LIBS) $(FLAGS)
 
82
endif
 
83
 
 
84
oracle-dom: oracle-dom.c $(HEADERS)
 
85
        $(gcc) $< -o oracle-dom $(XDKC_INCLUDE) $(XDKC_LIB)  $(LIBS) $(FLAGS)
 
86
 
 
87
oracle-dom++: oracle-dom.cpp $(HEADERS)
 
88
        $(gpp) $< -o oracle-dom++ $(XDKP_INCLUDE) $(XDKP_LIB) $(LIBS) $(FLAGS)
 
89
 
 
90
oracle_dom2.class: oracle_dom2.java $(CLASSES)
 
91
        $(javac) -classpath "$(ORACLE_CLASSPATH)" $< 
 
92
 
 
93
sun_dom2.class: sun_dom2.java $(CLASSES)
 
94
        $(javac) -classpath $(SUN_CLASSPATH) $< 
 
95
 
 
96
bench.class: bench.java
 
97
        $(javac) -classpath $(SUN_CLASSPATH) $<
 
98
 
 
99
qt-dom: qt-dom.cpp $(HEADERS)
 
100
        $(gpp) $< $(QT_INCLUDE) $(QT_LIB) -o qt-dom $(LIBS) $(FLAGS)
 
101
 
 
102
expat-sablotron-dom: expat-sablotron-dom.cpp $(HEADERS)
 
103
        $(gpp) $< -o expat-sablotron-dom $(SABLOTRON_INCLUDE) $(SABLOTRON_LIB) $(LIBS) $(FLAGS)
 
104
 
 
105
expat-cslxml-dom: expat-cslxml-dom.cpp $(HEADERS)
 
106
        $(gppstd)  $< -o expat-cslxml-dom $(CSLXML_INCLUDE) $(CSLXML_LIB) $(LIBS) $(FLAGS)