1 | # Beware this is autogenerated by index.py
|
---|
2 | INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
|
---|
3 | DEPS = $(top_builddir)/libxml2.la
|
---|
4 | LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@
|
---|
5 |
|
---|
6 | rebuild: examples.xml index.html
|
---|
7 |
|
---|
8 | examples.xml: index.py *.c
|
---|
9 | -@($(srcdir)/index.py)
|
---|
10 |
|
---|
11 | index.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 |
|
---|
15 | install-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 |
|
---|
19 | EXTRA_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 |
|
---|
21 | noinst_PROGRAMS=io1 io2 parse1 parse2 parse3 parse4 reader1 reader2 reader3 reader4 testWriter tree1 tree2 xpath1 xpath2
|
---|
22 |
|
---|
23 | io1_SOURCES=io1.c
|
---|
24 | io1_LDFLAGS=
|
---|
25 | io1_DEPENDENCIES= $(DEPS)
|
---|
26 | io1_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
27 |
|
---|
28 | io2_SOURCES=io2.c
|
---|
29 | io2_LDFLAGS=
|
---|
30 | io2_DEPENDENCIES= $(DEPS)
|
---|
31 | io2_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
32 |
|
---|
33 | parse1_SOURCES=parse1.c
|
---|
34 | parse1_LDFLAGS=
|
---|
35 | parse1_DEPENDENCIES= $(DEPS)
|
---|
36 | parse1_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
37 |
|
---|
38 | parse2_SOURCES=parse2.c
|
---|
39 | parse2_LDFLAGS=
|
---|
40 | parse2_DEPENDENCIES= $(DEPS)
|
---|
41 | parse2_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
42 |
|
---|
43 | parse3_SOURCES=parse3.c
|
---|
44 | parse3_LDFLAGS=
|
---|
45 | parse3_DEPENDENCIES= $(DEPS)
|
---|
46 | parse3_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
47 |
|
---|
48 | parse4_SOURCES=parse4.c
|
---|
49 | parse4_LDFLAGS=
|
---|
50 | parse4_DEPENDENCIES= $(DEPS)
|
---|
51 | parse4_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
52 |
|
---|
53 | reader1_SOURCES=reader1.c
|
---|
54 | reader1_LDFLAGS=
|
---|
55 | reader1_DEPENDENCIES= $(DEPS)
|
---|
56 | reader1_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
57 |
|
---|
58 | reader2_SOURCES=reader2.c
|
---|
59 | reader2_LDFLAGS=
|
---|
60 | reader2_DEPENDENCIES= $(DEPS)
|
---|
61 | reader2_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
62 |
|
---|
63 | reader3_SOURCES=reader3.c
|
---|
64 | reader3_LDFLAGS=
|
---|
65 | reader3_DEPENDENCIES= $(DEPS)
|
---|
66 | reader3_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
67 |
|
---|
68 | reader4_SOURCES=reader4.c
|
---|
69 | reader4_LDFLAGS=
|
---|
70 | reader4_DEPENDENCIES= $(DEPS)
|
---|
71 | reader4_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
72 |
|
---|
73 | testWriter_SOURCES=testWriter.c
|
---|
74 | testWriter_LDFLAGS=
|
---|
75 | testWriter_DEPENDENCIES= $(DEPS)
|
---|
76 | testWriter_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
77 |
|
---|
78 | tree1_SOURCES=tree1.c
|
---|
79 | tree1_LDFLAGS=
|
---|
80 | tree1_DEPENDENCIES= $(DEPS)
|
---|
81 | tree1_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
82 |
|
---|
83 | tree2_SOURCES=tree2.c
|
---|
84 | tree2_LDFLAGS=
|
---|
85 | tree2_DEPENDENCIES= $(DEPS)
|
---|
86 | tree2_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
87 |
|
---|
88 | xpath1_SOURCES=xpath1.c
|
---|
89 | xpath1_LDFLAGS=
|
---|
90 | xpath1_DEPENDENCIES= $(DEPS)
|
---|
91 | xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
92 |
|
---|
93 | xpath2_SOURCES=xpath2.c
|
---|
94 | xpath2_LDFLAGS=
|
---|
95 | xpath2_DEPENDENCIES= $(DEPS)
|
---|
96 | xpath2_LDADD= @RDL_LIBS@ $(LDADDS)
|
---|
97 |
|
---|
98 | valgrind:
|
---|
99 | $(MAKE) CHECKER='valgrind -q' tests
|
---|
100 |
|
---|
101 | tests: $(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 |
|
---|