chiark / gitweb /
Infrastructure: Split the files into subdirectories.
[mLib] / codec / Makefile.am
CommitLineData
18c831dc
MW
1### -*-makefile-*-
2###
3### Build script for encoding and decoding
4###
5### (c) 2009 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the mLib utilities library.
11###
12### mLib is free software; you can redistribute it and/or modify
13### it under the terms of the GNU Library General Public License as
14### published by the Free Software Foundation; either version 2 of the
15### License, or (at your option) any later version.
16###
17### mLib is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20### GNU Library General Public License for more details.
21###
22### You should have received a copy of the GNU Library General Public
23### License along with mLib; if not, write to the Free
24### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25### MA 02111-1307, USA.
26
27include $(top_srcdir)/vars.am
28
29noinst_LTLIBRARIES = libcodec.la
30libcodec_la_SOURCES =
31
32###--------------------------------------------------------------------------
33### Component files.
34
35## form-urlencoded
36pkginclude_HEADERS += url.h
37libcodec_la_SOURCES += url.c
38LIBMANS += url.3
39
40## base64
41pkginclude_HEADERS += base64.h
42libcodec_la_SOURCES += base64.c
43LIBMANS += base64.3
44
45EXTRA_DIST += base64.in base64.ref
46CLEANFILES += base64.out
47tests:: base64.t base64.in base64.ref
48 ./base64.t <$(srcdir)/base64.in >base64.out
49 cmp base64.out $(srcdir)/base64.ref
50 ./base64.t -d <$(srcdir)/base64.ref >base64.out
51 cmp base64.out $(srcdir)/base64.in
52 @echo "base64 OK"
53
54check_PROGRAMS += base64.t
55base64_t_SOURCES = base64.c
56base64_t_CPPFLAGS = $(TEST_CPPFLAGS)
57base64_t_LDFLAGS = -static
58
59## base32
60pkginclude_HEADERS += base32.h
61libcodec_la_SOURCES += base32.c
62LIBMANS += base32.3
63
64EXTRA_DIST += base32.in base32.ref
65CLEANFILES += base32.out
66tests:: base32.t base32.in base32.ref
67 ./base32.t <$(srcdir)/base32.in >base32.out
68 cmp base32.out $(srcdir)/base32.ref
69 ./base32.t -d <$(srcdir)/base32.ref >base32.out
70 cmp base32.out $(srcdir)/base32.in
71 @echo "base32 OK"
72
73check_PROGRAMS += base32.t
74base32_t_SOURCES = base32.c
75base32_t_CPPFLAGS = $(TEST_CPPFLAGS)
76base32_t_LDFLAGS = -static
77
78## hex
79pkginclude_HEADERS += hex.h
80libcodec_la_SOURCES += hex.c
81LIBMANS += hex.3
82
83EXTRA_DIST += hex.in hex.ref
84CLEANFILES += hex.out
85tests:: hex.t hex.in hex.ref
86 ./hex.t <$(srcdir)/hex.in >hex.out
87 cmp hex.out $(srcdir)/hex.ref
88 ./hex.t -d <$(srcdir)/hex.ref >hex.out
89 cmp hex.out $(srcdir)/hex.in
90 @echo "hex OK"
91
92check_PROGRAMS += hex.t
93hex_t_SOURCES = hex.c
94hex_t_CPPFLAGS = $(TEST_CPPFLAGS)
95hex_t_LDFLAGS = -static
96
97###----- That's all, folks --------------------------------------------------