VirtualBox

source: vbox/trunk/src/libs/libxml2-2.6.31/doc/examples/Makefile.am@ 41752

最後變更 在這個檔案從41752是 39915,由 vboxsync 提交於 13 年 前

libxml-2.6.31 unmodified

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.9 KB
 
1# Beware this is autogenerated by index.py
2INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
3DEPS = $(top_builddir)/libxml2.la
4LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@
5
6rebuild: examples.xml index.html
7
8examples.xml: index.py *.c
9 -@($(srcdir)/index.py)
10
11index.html: examples.xml examples.xsl
12 -@(touch index.html)
13 -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html)
14
15install-data-local:
16 $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
17 -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
18
19EXTRA_DIST=examples.xsl index.py examples.xml test1.xml test2.xml test3.xml tst.xml writer.xml io1.res io2.res reader1.res reader3.res reader4.res tree1.res tree2.res xpath1.res xpath2.res
20
21noinst_PROGRAMS=io1 io2 parse1 parse2 parse3 parse4 reader1 reader2 reader3 reader4 testWriter tree1 tree2 xpath1 xpath2
22
23io1_SOURCES=io1.c
24io1_LDFLAGS=
25io1_DEPENDENCIES= $(DEPS)
26io1_LDADD= @RDL_LIBS@ $(LDADDS)
27
28io2_SOURCES=io2.c
29io2_LDFLAGS=
30io2_DEPENDENCIES= $(DEPS)
31io2_LDADD= @RDL_LIBS@ $(LDADDS)
32
33parse1_SOURCES=parse1.c
34parse1_LDFLAGS=
35parse1_DEPENDENCIES= $(DEPS)
36parse1_LDADD= @RDL_LIBS@ $(LDADDS)
37
38parse2_SOURCES=parse2.c
39parse2_LDFLAGS=
40parse2_DEPENDENCIES= $(DEPS)
41parse2_LDADD= @RDL_LIBS@ $(LDADDS)
42
43parse3_SOURCES=parse3.c
44parse3_LDFLAGS=
45parse3_DEPENDENCIES= $(DEPS)
46parse3_LDADD= @RDL_LIBS@ $(LDADDS)
47
48parse4_SOURCES=parse4.c
49parse4_LDFLAGS=
50parse4_DEPENDENCIES= $(DEPS)
51parse4_LDADD= @RDL_LIBS@ $(LDADDS)
52
53reader1_SOURCES=reader1.c
54reader1_LDFLAGS=
55reader1_DEPENDENCIES= $(DEPS)
56reader1_LDADD= @RDL_LIBS@ $(LDADDS)
57
58reader2_SOURCES=reader2.c
59reader2_LDFLAGS=
60reader2_DEPENDENCIES= $(DEPS)
61reader2_LDADD= @RDL_LIBS@ $(LDADDS)
62
63reader3_SOURCES=reader3.c
64reader3_LDFLAGS=
65reader3_DEPENDENCIES= $(DEPS)
66reader3_LDADD= @RDL_LIBS@ $(LDADDS)
67
68reader4_SOURCES=reader4.c
69reader4_LDFLAGS=
70reader4_DEPENDENCIES= $(DEPS)
71reader4_LDADD= @RDL_LIBS@ $(LDADDS)
72
73testWriter_SOURCES=testWriter.c
74testWriter_LDFLAGS=
75testWriter_DEPENDENCIES= $(DEPS)
76testWriter_LDADD= @RDL_LIBS@ $(LDADDS)
77
78tree1_SOURCES=tree1.c
79tree1_LDFLAGS=
80tree1_DEPENDENCIES= $(DEPS)
81tree1_LDADD= @RDL_LIBS@ $(LDADDS)
82
83tree2_SOURCES=tree2.c
84tree2_LDFLAGS=
85tree2_DEPENDENCIES= $(DEPS)
86tree2_LDADD= @RDL_LIBS@ $(LDADDS)
87
88xpath1_SOURCES=xpath1.c
89xpath1_LDFLAGS=
90xpath1_DEPENDENCIES= $(DEPS)
91xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
92
93xpath2_SOURCES=xpath2.c
94xpath2_LDFLAGS=
95xpath2_DEPENDENCIES= $(DEPS)
96xpath2_LDADD= @RDL_LIBS@ $(LDADDS)
97
98valgrind:
99 $(MAKE) CHECKER='valgrind -q' tests
100
101tests: $(noinst_PROGRAMS)
102 @(echo '## examples regression tests')
103 @(echo > .memdump)
104 @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp)
105 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
106 @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp)
107 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
108 @($(CHECKER) ./parse1 test1.xml)
109 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
110 @($(CHECKER) ./parse2 test2.xml)
111 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
112 @($(CHECKER) ./parse3)
113 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
114 @($(CHECKER) ./parse4 test3.xml)
115 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
116 @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
117 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
118 @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
119 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
120 @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp)
121 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
122 @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp)
123 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
124 @($(CHECKER) ./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res)
125 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
126 @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp)
127 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
128 @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp)
129 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
130 @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp)
131 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
132 @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp)
133 @(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
134
135
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette