3 ### Build script for encoding and decoding
5 ### (c) 2009 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the mLib utilities library.
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.
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.
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.
27 include $(top_srcdir)/vars.am
29 noinst_LTLIBRARIES = libcodec.la
32 ###--------------------------------------------------------------------------
36 pkginclude_HEADERS += url.h
37 libcodec_la_SOURCES += url.c
41 pkginclude_HEADERS += base64.h
42 libcodec_la_SOURCES += base64.c
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
54 check_PROGRAMS += base64.t
55 base64_t_SOURCES = base64.c
56 base64_t_CPPFLAGS = $(TEST_CPPFLAGS)
57 base64_t_LDFLAGS = -static
60 pkginclude_HEADERS += base32.h
61 libcodec_la_SOURCES += base32.c
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
73 check_PROGRAMS += base32.t
74 base32_t_SOURCES = base32.c
75 base32_t_CPPFLAGS = $(TEST_CPPFLAGS)
76 base32_t_LDFLAGS = -static
79 pkginclude_HEADERS += hex.h
80 libcodec_la_SOURCES += hex.c
83 EXTRA_DIST += hex.in hex.ref
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
92 check_PROGRAMS += hex.t
94 hex_t_CPPFLAGS = $(TEST_CPPFLAGS)
95 hex_t_LDFLAGS = -static
97 ###----- That's all, folks --------------------------------------------------