3 ### Build script for utilities
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 = libutils.la
32 ###--------------------------------------------------------------------------
36 pkginclude_HEADERS += compiler.h
37 EXTRA_DIST += compiler.3.in
41 pkginclude_HEADERS += macros.h
42 EXTRA_DIST += macros.3.in
46 pkginclude_HEADERS += align.h
47 EXTRA_DIST += align.3.in
51 pkginclude_HEADERS += bits.h
52 EXTRA_DIST += bits.3.in
55 check_PROGRAMS += t/bits.t
56 t_bits_t_SOURCES = t/bits-test.c
57 t_bits_t_CPPFLAGS = $(TEST_CPPFLAGS)
58 t_bits_t_LDFLAGS = -static
59 EXTRA_DIST += t/bits-testgen
62 pkginclude_HEADERS += control.h
63 EXTRA_DIST += control.3.in
66 check_PROGRAMS += t/control.t
67 t_control_t_SOURCES = t/control-test.c
68 t_control_t_CPPFLAGS = $(TEST_CPPFLAGS)
69 t_control_t_LDFLAGS = -static
72 pkginclude_HEADERS += exc.h
73 libutils_la_SOURCES += exc.c
74 EXTRA_DIST += exc.3.in
77 check_PROGRAMS += t/exc.t
78 t_exc_t_SOURCES = t/exc-test.c
79 t_exc_t_LDFLAGS = -static
81 ## Generalized formatting.
82 pkginclude_HEADERS += gprintf.h
83 libutils_la_SOURCES += gprintf.c
84 EXTRA_DIST += gprintf.3.in
88 pkginclude_HEADERS += linreg.h
89 libutils_la_SOURCES += linreg.c
90 EXTRA_DIST += linreg.3.in
94 pkginclude_HEADERS += maths.h
95 EXTRA_DIST += maths.3.in
99 pkginclude_HEADERS += str.h
100 libutils_la_SOURCES += str.c
101 EXTRA_DIST += str.3.in
104 ## Version comparison.
105 pkginclude_HEADERS += versioncmp.h
106 libutils_la_SOURCES += versioncmp.c
107 EXTRA_DIST += versioncmp.3.in
108 LIBMANS += versioncmp.3
110 check_PROGRAMS += t/versioncmp.t
111 t_versioncmp_t_SOURCES = t/versioncmp-test.c
112 t_versioncmp_t_CPPFLAGS = $(TEST_CPPFLAGS)
113 t_versioncmp_t_LDFLAGS = -static
114 EXTRA_DIST += t/versioncmp.tests
116 ###----- That's all, folks --------------------------------------------------