|
1 |
| - |
2 |
| -SOURCES = \ |
3 |
| - src/modp_b2.c src/modp_b2.h \ |
4 |
| - src/modp_b16.c src/modp_b16.h modp_b16_data.h \ |
5 |
| - src/modp_b64.c src/modp_b64.h modp_b64_data.h \ |
6 |
| - src/modp_b64w.c src/modp_b64w.h modp_b64w_data.h \ |
7 |
| - src/modp_b64r.c src/modp_b64r.h modp_b64r_data.h \ |
8 |
| - src/modp_b85.h src/modp_b85.c modp_b85_data.h \ |
9 |
| - src/modp_burl.h src/modp_burl.c src/modp_burl_data.h \ |
10 |
| - src/modp_bjavascript.h src/modp_bjavascript.c \ |
11 |
| - src/modp_numtoa.h src/modp_numtoa.c \ |
12 |
| - src/modp_qsiter.h src/modp_qsiter.c \ |
13 |
| - src/modp_xml.h src/modp_xml.c \ |
14 |
| - src/modp_ascii.h src/modp_ascii.c modp_ascii_data.h \ |
15 |
| - src/modp_utf8.h src/modp_utf8.c \ |
16 |
| - src/modp_html.h src/modp_html.c \ |
17 |
| - src/modp_json.h src/modp_json.c \ |
18 |
| - src/modp_messagepack.h src/modp_messagepack.c |
19 |
| - |
20 |
| -lib_LTLIBRARIES = libmodpbase64.la |
21 |
| -libmodpbase64_la_SOURCES = ${SOURCES} |
22 |
| - |
23 |
| -libmodpbase64_la_DEPENDENCIES = \ |
24 |
| - modp_b2_data.h modp_b2_gen \ |
25 |
| - modp_b16_data.h modp_b16_gen \ |
26 |
| - modp_b64_data.h modp_b64w_data.h modp_b64r_data.h modp_b64_gen \ |
27 |
| - modp_b85_data.h modp_b85_gen \ |
28 |
| - modp_ascii_data.h modp_ascii_gen |
29 |
| - |
30 |
| -include_HEADERS = \ |
31 |
| - src/modp_b16.h src/modp_b64.h src/modp_b64w.h src/modp_b64r.h \ |
32 |
| - src/modp_b85.h src/modp_burl.h src/modp_bjavascript.h \ |
33 |
| - src/modp_numtoa.h src/modp_ascii.h src/modp_b2.h \ |
34 |
| - src/modp_qsiter.h src/modp_xml.h src/modp_html.h src/modp_json.h |
35 |
| - |
36 |
| -CLEANFILES = *.log \ |
37 |
| - *~ src/*~ test/*~ \ |
38 |
| - *.tmp src/*.tmp test/*.tmp \ |
39 |
| - doxy/html/* \ |
40 |
| - doxy/*.tmp \ |
41 |
| - m4 \ |
42 |
| - *.loT \ |
43 |
| - *.ll *.ll.out \ |
44 |
| - *.gcda *.gcno *.gcov stringencoders.info \ |
45 |
| - modp_b16_data.h modp_b64_data.h modp_b85_data.h \ |
46 |
| - modp_b64w_data.h src/modp_b64w.c test/modp_b64w_test.c \ |
47 |
| - modp_b64r_data.h src/modp_b64r.c test/modp_b64r_test.c \ |
48 |
| - modp_ascii_data.h modp_b2_data.h \ |
49 |
| - modp_xml_test modp_qsiter_test modp_html_test modp_json_test \ |
50 |
| - cxx_test |
51 |
| - |
52 |
| -superclean: |
53 |
| - rm -rf autom4te.cache |
54 |
| - rm -rf lcov-html/html |
55 |
| - rm -f Makefile.in aclocal.m4 autom4te.cache config.guess config.h.in config.sub configure |
56 |
| - rm -f ltmain.sh depcomp install-sh missing |
57 |
| - |
58 |
| -src/modp_b2.c: src/modp_b2.h modp_b2_data.h |
59 |
| - |
60 |
| -src/modp_b16.c: src/modp_b16.h modp_b16_data.h |
61 |
| - |
62 |
| -src/modp_b64.c: src/modp_b64.h modp_b64_data.h |
63 |
| - |
64 |
| -src/modp_b64r.c: src/modp_b64.c src/modp_b64r.h modp_b64r_data.h |
65 |
| - perl -p -i -e 's/b64/b64r/g' < src/modp_b64.c > src/modp_b64r.c |
66 |
| - |
67 |
| -src/modp_b64w.c: src/modp_b64.c src/modp_b64w.h modp_b64w_data.h |
68 |
| - perl -p -i -e 's/b64/b64w/g' < src/modp_b64.c > src/modp_b64w.c |
69 |
| - |
70 |
| -src/modp_b85.c: src/modp_b85.h modp_b85_data.h |
71 |
| - |
72 |
| -src/modp_burl.c: src/modp_burl.h src/modp_burl_data.h |
73 |
| - |
74 |
| -src/modp_bjavascript.c: src/modp_bjavascript.h src/modp_bjavascript_data.h |
75 |
| - |
76 |
| -src/modp_json.c: src/modp_json.h src/modp_json_data.h |
77 |
| - |
78 |
| -src/modp_ascii.c: src/modp_ascii.h modp_ascii_data.h |
79 |
| - |
80 |
| -src/modp_qsiter.c: src/modp_qsiter.h |
81 |
| - |
82 |
| -src/modp_xml.c: src/modp_xml.h |
83 |
| - |
84 |
| -modp_b2_data.h: modp_b2_gen |
85 |
| - ./modp_b2_gen > modp_b2_data.h |
86 |
| - |
87 |
| -modp_b16_data.h: modp_b16_gen |
88 |
| - ./modp_b16_gen > modp_b16_data.h |
89 |
| - |
90 |
| -modp_b64_data.h: modp_b64_gen |
91 |
| - ./modp_b64_gen > modp_b64_data.h |
92 |
| - |
93 |
| -modp_ascii_data.h: modp_ascii_gen |
94 |
| - ./modp_ascii_gen > modp_ascii_data.h |
95 |
| - |
96 |
| -# |
97 |
| -# Recall B64WCHARS by default is "-_." |
98 |
| -# |
99 |
| -modp_b64w_data.h: modp_b64_gen |
100 |
| - ./modp_b64_gen $(B64WCHARS) > modp_b64w_data.h |
101 |
| - |
102 |
| -# |
103 |
| -# RFC 4648 alphabet is -_= |
104 |
| -# http://www.ietf.org/rfc/rfc4648.txt |
105 |
| -modp_b64r_data.h: modp_b64_gen |
106 |
| - ./modp_b64_gen "-_=" > modp_b64r_data.h |
107 |
| - |
108 |
| -modp_b85_data.h: modp_b85_gen |
109 |
| - ./modp_b85_gen > modp_b85_data.h |
110 |
| - |
111 |
| -modp_burl_data.h: modp_burl_gen |
112 |
| - ./modp_burl_gen > modp_burl_data.h |
113 |
| - |
114 |
| -src/modp_bjavascript_data.h: modp_bjavascript_gen |
115 |
| - ./modp_bjavascript_gen > src/modp_bjavascript_data.h |
116 |
| - |
117 |
| -noinst_PROGRAMS = \ |
118 |
| - modp_b2_gen modp_b16_gen modp_b64_gen modp_b85_gen \ |
119 |
| - modp_burl_gen modp_ascii_gen \ |
120 |
| - modp_b2_test \ |
121 |
| - modp_b16_test modp_b64_test modp_b64w_test modp_b64r_test \ |
122 |
| - modp_b85_test modp_burl_test \ |
123 |
| - modp_bjavascript_gen modp_bjavascript_test \ |
124 |
| - modp_numtoa_test modp_ascii_test modp_xml_test \ |
125 |
| - modp_html_test \ |
126 |
| - modp_qsiter_test \ |
127 |
| - modp_utf8_test \ |
128 |
| - modp_json_test \ |
129 |
| - cxx_test \ |
130 |
| - speedtest speedtest_numtoa speedtest_ascii speedtest_msg |
131 |
| - |
132 |
| -modp_b2_gen_SOURCES = src/arraytoc.c src/modp_b2_gen.c |
133 |
| -modp_b16_gen_SOURCES = src/arraytoc.c src/modp_b16_gen.c |
134 |
| -modp_b64_gen_SOURCES = src/arraytoc.c src/modp_b64_gen.c |
135 |
| -modp_b85_gen_SOURCES = src/arraytoc.c src/modp_b85_gen.c |
136 |
| -modp_burl_gen_SOURCES = src/arraytoc.c src/modp_burl_gen.c |
137 |
| -modp_ascii_gen_SOURCES = src/arraytoc.c src/modp_ascii_gen.c |
138 |
| -modp_bjavascript_gen_SOURCES = src/arraytoc.c src/modp_bjavascript_gen.c |
139 |
| - |
140 |
| -speedtest_SOURCES = test/apr_base64.h test/apr_base64.c test/speedtest.c |
141 |
| -speedtest_LDADD = libmodpbase64.la |
142 |
| - |
143 |
| -speedtest_numtoa_SOURCES = test/speedtest_numtoa.c |
144 |
| -speedtest_numtoa_LDADD = libmodpbase64.la |
145 |
| - |
146 |
| -speedtest_msg_SOURCES = test/speedtest_msg.c |
147 |
| -speedtest_msg_LDADD = libmodpbase64.la |
148 |
| - |
149 |
| -test/speedtest_ascii.c: modp_ascii_data.h |
150 |
| -speedtest_ascii_SOURCES = test/speedtest_ascii.c |
151 |
| -speedtest_ascii_LDADD = libmodpbase64.la |
152 |
| - |
153 |
| -modp_b2_test_SOURCES = test/modp_b2_test.c |
154 |
| -modp_b2_test_LDADD = libmodpbase64.la |
155 |
| - |
156 |
| -modp_b16_test_SOURCES = test/modp_b16_test.c |
157 |
| -modp_b16_test_LDADD = libmodpbase64.la |
158 |
| - |
159 |
| -modp_b64_test_SOURCES = test/modp_b64_test.c |
160 |
| -modp_b64_test_LDADD = libmodpbase64.la |
161 |
| - |
162 |
| -test/modp_b64w_test.c: test/modp_b64_test.c |
163 |
| - perl -p -i -e 's/b64/b64w/g' < test/modp_b64_test.c > test/modp_b64w_test.c |
164 |
| - |
165 |
| -modp_b64w_test_SOURCES = test/modp_b64w_test.c |
166 |
| -modp_b64w_test_LDADD = libmodpbase64.la |
167 |
| - |
168 |
| -test/modp_b64r_test.c: test/modp_b64_test.c |
169 |
| - perl -p -i -e 's/b64/b64r/g' < test/modp_b64_test.c > test/modp_b64r_test.c |
170 |
| - |
171 |
| -modp_b64r_test_SOURCES = test/modp_b64r_test.c |
172 |
| -modp_b64r_test_LDADD = libmodpbase64.la |
173 |
| - |
174 |
| -modp_b85_test_SOURCES = test/modp_b85_test.c |
175 |
| -modp_b85_test_LDADD = libmodpbase64.la |
176 |
| - |
177 |
| -modp_burl_test_SOURCES = test/modp_burl_test.c |
178 |
| -modp_burl_test_LDADD = libmodpbase64.la |
179 |
| - |
180 |
| -modp_bjavascript_test_SOURCES = test/modp_bjavascript_test.c |
181 |
| -modp_bjavascript_test_LDADD = libmodpbase64.la |
182 |
| - |
183 |
| -modp_numtoa_test_SOURCES = test/modp_numtoa_test.c |
184 |
| -modp_numtoa_test_LDADD = libmodpbase64.la |
185 |
| - |
186 |
| -modp_ascii_test_SOURCES = test/modp_ascii_test.c |
187 |
| -modp_ascii_test_LDADD = libmodpbase64.la |
188 |
| - |
189 |
| -modp_xml_test_SOURCES = test/modp_xml_test.c |
190 |
| -modp_xml_test_LDADD = libmodpbase64.la |
191 |
| - |
192 |
| -modp_html_test_SOURCES = test/modp_html_test.c |
193 |
| -modp_html_test_LDADD = libmodpbase64.la |
194 |
| - |
195 |
| -modp_qsiter_test_SOURCES = test/modp_qsiter_test.c |
196 |
| -modp_qsiter_test_LDADD = libmodpbase64.la |
197 |
| - |
198 |
| -modp_utf8_test_SOURCES = test/modp_utf8_test.c |
199 |
| -modp_utf8_test_LDADD = libmodpbase64.la |
200 |
| - |
201 |
| -modp_json_test_SOURCES = test/modp_json_test.c |
202 |
| -modp_json_test_LDADD = libmodpbase64.la |
203 |
| - |
204 |
| -cxx_test_SOURCES = test/cxx_test.cc |
205 |
| -cxx_test_LDADD = libmodpbase64.la |
206 |
| - |
207 |
| -.PHONY: test unittest perftest doxy lcov-html help |
208 |
| -help: |
209 |
| - @echo "" |
210 |
| - @echo "make -- make everything" |
211 |
| - @echo "make install -- install everything" |
212 |
| - @echo "make test -- run unit and performance tests" |
213 |
| - @echo "make unittest -- run only unit tests" |
214 |
| - @echo "make perftest -- run only performance tests" |
215 |
| - @echo "make doxy -- generate doxygen output" |
216 |
| - @echo "make lcov-html -- make test + generate lcov html output" |
217 |
| - @echo "" |
218 |
| - |
219 |
| -lcov-html: |
220 |
| - lcov -b . --directory . --zerocounters |
221 |
| - @make unittest |
222 |
| - lcov -b . --directory . --capture --output-file stringencoders.info |
223 |
| - lcov -b . --directory . --remove stringencoders.info '*arraytoc.c' -o stringencoders.info |
224 |
| - lcov -b . --directory . --remove stringencoders.info '*test*' -o stringencoders.info |
225 |
| - lcov -b . --directory . --remove stringencoders.info '*_gen.c' -o stringencoders.info |
226 |
| - lcov -b . --directory . --remove stringencoders.info '/usr/include*' -o stringencoders.info |
227 |
| - rm -rf lcov-html/html |
228 |
| - mkdir lcov-html/html |
229 |
| - genhtml --branch-coverage -o lcov-html/html stringencoders.info |
230 |
| - |
231 |
| -test: unittest speedtest |
232 |
| - |
233 |
| - |
234 |
| - |
235 |
| -valgrind: modp_b16_test modp_b64_test modp_b64w_test modp_b64r_test modp_b85_test modp_b2_test modp_burl_test modp_bjavascript_test modp_numtoa_test modp_ascii_test modp_xml_test modp_qsiter_test modp_utf8_test modp_html_test cxx_test |
236 |
| - @find . -name '*.da' | xargs rm -f |
237 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b16_test |
238 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b64_test |
239 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b64w_test |
240 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b64r_test |
241 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b85_test |
242 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_b2_test |
243 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_burl_test |
244 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_bjavascript_test |
245 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_numtoa_test |
246 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_ascii_test |
247 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_xml_test |
248 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_html_test |
249 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_qsiter_test |
250 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_utf8_test |
251 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./modp_json_test |
252 |
| - ${LIBTOOL} --mode=execute valgrind --leak-check=full --error-exitcode=1 ./cxx_test |
253 |
| - |
254 |
| -.PHONY: valgrind |
255 |
| - |
256 |
| -unittest: modp_b16_test modp_b64_test modp_b64w_test modp_b64r_test modp_b85_test modp_b2_test modp_burl_test modp_bjavascript_test modp_numtoa_test modp_ascii_test modp_xml_test modp_html_test cxx_test modp_qsiter_test modp_utf8_test modp_json_test |
257 |
| - @find . -name '*da' | xargs rm -fr |
258 |
| - @./modp_b16_test |
259 |
| - @./modp_b64_test |
260 |
| - @./modp_b64w_test |
261 |
| - @./modp_b64r_test |
262 |
| - @./modp_b85_test |
263 |
| - @./modp_b2_test |
264 |
| - @./modp_burl_test |
265 |
| - @./modp_bjavascript_test |
266 |
| - @./modp_numtoa_test |
267 |
| - @./modp_ascii_test |
268 |
| - @./modp_xml_test |
269 |
| - @./modp_html_test |
270 |
| - @./modp_qsiter_test |
271 |
| - @./modp_utf8_test |
272 |
| - @./modp_json_test |
273 |
| - @./cxx_test |
274 |
| - |
275 |
| -perftest: speedtest speedtest_numtoa speedtest_ascii |
276 |
| - ./speedtest |
277 |
| - ./speedtest_numtoa |
278 |
| - ./speedtest_ascii |
279 |
| - |
280 |
| -.PHONY: doxy |
281 |
| - |
282 |
| -doxy: ${SOURCES} doxy/header.html doxy/footer.html Doxyfile |
283 |
| - doxygen Doxyfile |
284 |
| - |
| 1 | +SUBDIRS = src test |
0 commit comments