### -*-makefile-*- ### ### Build script for encoding and decoding ### ### (c) 2009 Straylight/Edgeware ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of the mLib utilities library. ### ### mLib is free software; you can redistribute it and/or modify ### it under the terms of the GNU Library General Public License as ### published by the Free Software Foundation; either version 2 of the ### License, or (at your option) any later version. ### ### mLib is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ### GNU Library General Public License for more details. ### ### You should have received a copy of the GNU Library General Public ### License along with mLib; if not, write to the Free ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ### MA 02111-1307, USA. include $(top_srcdir)/vars.am noinst_LTLIBRARIES = libcodec.la libcodec_la_SOURCES = ###-------------------------------------------------------------------------- ### Component files. ## form-urlencoded pkginclude_HEADERS += url.h libcodec_la_SOURCES += url.c LIBMANS += url.3 ## base64 pkginclude_HEADERS += base64.h libcodec_la_SOURCES += base64.c LIBMANS += base64.3 EXTRA_DIST += base64.in base64.ref CLEANFILES += base64.out tests:: base64.t base64.in base64.ref ./base64.t <$(srcdir)/base64.in >base64.out cmp base64.out $(srcdir)/base64.ref ./base64.t -d <$(srcdir)/base64.ref >base64.out cmp base64.out $(srcdir)/base64.in @echo "base64 OK" check_PROGRAMS += base64.t base64_t_SOURCES = base64.c base64_t_CPPFLAGS = $(TEST_CPPFLAGS) base64_t_LDFLAGS = -static ## base32 pkginclude_HEADERS += base32.h libcodec_la_SOURCES += base32.c LIBMANS += base32.3 EXTRA_DIST += base32.in base32.ref CLEANFILES += base32.out tests:: base32.t base32.in base32.ref ./base32.t <$(srcdir)/base32.in >base32.out cmp base32.out $(srcdir)/base32.ref ./base32.t -d <$(srcdir)/base32.ref >base32.out cmp base32.out $(srcdir)/base32.in @echo "base32 OK" check_PROGRAMS += base32.t base32_t_SOURCES = base32.c base32_t_CPPFLAGS = $(TEST_CPPFLAGS) base32_t_LDFLAGS = -static ## hex pkginclude_HEADERS += hex.h libcodec_la_SOURCES += hex.c LIBMANS += hex.3 EXTRA_DIST += hex.in hex.ref CLEANFILES += hex.out tests:: hex.t hex.in hex.ref ./hex.t <$(srcdir)/hex.in >hex.out cmp hex.out $(srcdir)/hex.ref ./hex.t -d <$(srcdir)/hex.ref >hex.out cmp hex.out $(srcdir)/hex.in @echo "hex OK" check_PROGRAMS += hex.t hex_t_SOURCES = hex.c hex_t_CPPFLAGS = $(TEST_CPPFLAGS) hex_t_LDFLAGS = -static ###----- That's all, folks --------------------------------------------------