Infrastructure: Split the files into subdirectories.
[mLib] / codec / Makefile.am
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
27 include $(top_srcdir)/vars.am
28
29 noinst_LTLIBRARIES = libcodec.la
30 libcodec_la_SOURCES =
31
32 ###--------------------------------------------------------------------------
33 ### Component files.
34
35 ## form-urlencoded
36 pkginclude_HEADERS += url.h
37 libcodec_la_SOURCES += url.c
38 LIBMANS += url.3
39
40 ## base64
41 pkginclude_HEADERS += base64.h
42 libcodec_la_SOURCES += base64.c
43 LIBMANS += base64.3
44
45 EXTRA_DIST += base64.in base64.ref
46 CLEANFILES += base64.out
47 tests:: 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
54 check_PROGRAMS += base64.t
55 base64_t_SOURCES = base64.c
56 base64_t_CPPFLAGS = $(TEST_CPPFLAGS)
57 base64_t_LDFLAGS = -static
58
59 ## base32
60 pkginclude_HEADERS += base32.h
61 libcodec_la_SOURCES += base32.c
62 LIBMANS += base32.3
63
64 EXTRA_DIST += base32.in base32.ref
65 CLEANFILES += base32.out
66 tests:: 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
73 check_PROGRAMS += base32.t
74 base32_t_SOURCES = base32.c
75 base32_t_CPPFLAGS = $(TEST_CPPFLAGS)
76 base32_t_LDFLAGS = -static
77
78 ## hex
79 pkginclude_HEADERS += hex.h
80 libcodec_la_SOURCES += hex.c
81 LIBMANS += hex.3
82
83 EXTRA_DIST += hex.in hex.ref
84 CLEANFILES += hex.out
85 tests:: 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
92 check_PROGRAMS += hex.t
93 hex_t_SOURCES = hex.c
94 hex_t_CPPFLAGS = $(TEST_CPPFLAGS)
95 hex_t_LDFLAGS = -static
96
97 ###----- That's all, folks --------------------------------------------------