/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 validate/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 = xerces-dom xml4c-dom oracle-dom libxml sun_dom2.class
 
4
 
 
5
TARGETS = 
 
6
 
 
7
ifeq ($(LIBXML), yes)
 
8
TARGETS += libxml
 
9
endif
 
10
 
 
11
ifeq ($(INTEL), yes)
 
12
TARGETS += intel-dom 
 
13
endif
 
14
ifeq ($(XERCESC), yes)
 
15
TARGETS += xerces-dom 
 
16
endif
 
17
ifeq ($(XML4C), yes)
 
18
TARGETS += xml4c-dom
 
19
endif
 
20
 
 
21
ifeq ($(XDKC), yes)
 
22
TARGETS += oracle-dom
 
23
endif
 
24
 
 
25
ifeq ($(SUN), yes)
 
26
TARGETS += sun_dom2.class
 
27
endif
 
28
 
 
29
 
 
30
HEADERS = tools.h tools2.h ../tools/disp.h ../xmlgen/xmlgen.h ../xmlgen/opcgen.h ../xmlgen/random.h
 
31
 
 
32
CLASSES = bench.class
 
33
 
 
34
all:    $(TARGETS)
 
35
 
 
36
clean:
 
37
        rm -f $(ALLTARGETS) $(CLASSES)
 
38
 
 
39
libxml: libxml.c $(HEADERS)
 
40
        $(gcc) $< -o libxml $(LIBXML_INCLUDE) $(LIBXML_LIB) -lxml2
 
41
 
 
42
 
 
43
intel-dom: intel-dom.cpp $(HEADERS) 
 
44
        $(gpp) $< -o intel-dom $(INTEL_INCLUDE) $(INTEL_LIB) $(LIBS) $(FLAGS) 
 
45
 
 
46
ifneq ($(XERCESC_VERSION), 2.1)
 
47
xerces-dom: xerces-dom.cpp $(HEADERS) tools/xerces/DOMTreeErrorReporter.cpp tools/xerces/DOMTreeErrorReporter.hpp
 
48
        $(gpp) $< tools/xerces/DOMTreeErrorReporter.cpp -o xerces-dom $(XERCESC_INCLUDE) $(XERCESC_LIB) $(LIBS) $(FLAGS) -I./tools/xerces
 
49
else
 
50
xerces-dom: xerces-dom.cpp $(HEADERS) tools/xerces/DOMTreeErrorReporter.cpp tools/xerces/DOMTreeErrorReporter.hpp
 
51
        $(compatgpp) $< tools/xml4c/DOMTreeErrorReporter.cpp -o xerces-dom $(XERCESC_INCLUDE) $(XERCESC_LIB)  $(LIBS) $(FLAGS) -I./tools/xml4c
 
52
endif
 
53
 
 
54
ifneq ($(XML4C_VERSION), 5.0)
 
55
xml4c-dom: xerces-dom.cpp $(HEADERS) tools/xml4c/DOMTreeErrorReporter.cpp tools/xml4c/DOMTreeErrorReporter.hpp
 
56
        $(gpp) $< tools/xerces/DOMTreeErrorReporter.cpp -o xml4c-dom $(XML4C_INCLUDE) $(XML4C_LIB)  $(LIBS) $(FLAGS) -I./tools/xerces
 
57
else
 
58
xml4c-dom: xerces-dom.cpp $(HEADERS) tools/xml4c/DOMTreeErrorReporter.cpp tools/xml4c/DOMTreeErrorReporter.hpp
 
59
        $(compatgpp) $< tools/xml4c/DOMTreeErrorReporter.cpp -o xml4c-dom $(XML4C_INCLUDE) $(XML4C_LIB)  $(LIBS) $(FLAGS) -I./tools/xml4c
 
60
endif
 
61
 
 
62
oracle-dom: oracle-dom.c $(HEADERS)
 
63
        $(gcc) $< -o oracle-dom $(XDKC_INCLUDE) $(XDKC_LIB_VALIDATE) $(LIBS) $(FLAGS) 
 
64
 
 
65
sun_dom2.class: sun_dom2.java $(CLASSES)
 
66
        $(javac) -classpath $(SUN_CLASSPATH) $< 
 
67
 
 
68
bench.class: bench.java
 
69
        $(javac) -classpath $(SUN_CLASSPATH) $<