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
|
include ../Makefile.in
ALLTARGETS = libxml libxml1 xerces-dom sun_dom2.class
HEADERS = tools.h ../tools/disp.h ../xmlgen/xmlgen.h ../xmlgen/opcgen.h ../xmlgen/random.h
CLASSES = bench.class
TARGETS =
ifeq ($(XMLSEC1), yes)
TARGETS += libxml1
endif
ifeq ($(XMLSEC), yes)
TARGETS += libxml
endif
ifeq ($(SUN), yes)
TARGETS += sun_dom2.class
endif
ifeq ($(XSECURITY), yes)
TARGETS += xerces-dom
endif
ifeq ($(MONO), yes)
TARGETS += mono-dom.exe
endif
all: $(TARGETS)
clean:
rm -f $(ALLTARGETS) $(CLASSES) *.exe *.dll
libxml: libxml.c $(HEADERS)
$(gcc) $< -o libxml $(XMLSEC_INCLUDE) $(XMLSEC_LIB) $(LIBS) $(FLAGS)
libxml1: libxml1.c $(HEADERS) libxml1.h
$(gcc) $< -o libxml1 $(XMLSEC1_INCLUDE) $(XMLSEC1_LIB) $(LIBS) $(FLAGS)
xerces-dom: xerces-dom.cpp $(HEADERS) xerces-dom.h
$(gpp) $< -o xerces-dom $(XSECURITY_INCLUDE) $(XSECURITY_LIB) $(LIBS) $(FLAGS)
sun_dom2.class: sun_dom2.java $(CLASSES)
$(javac) -classpath $(SUN_CLASSPATH) $<
bench.class: bench.java
$(javac) -classpath $(SUN_CLASSPATH) $<
bench.dll: bench.cs ../tools/disp.dll
$(mcs) /target:library /r:../tools/disp.dll bench.cs
mono-dom.exe: mono-dom.cs bench.dll
$(gmcs) /r:bench.dll /r:System.Security.dll /r:System.Xml.dll mono-dom.cs
|