@@@ fltfmt mess
[mLib] / utils / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Build script for utilities
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 = libutils.la
30 libutils_la_SOURCES =
31
32 ###--------------------------------------------------------------------------
33 ### Component files.
34
35 ## Compiler checking.
36 pkginclude_HEADERS += compiler.h
37 EXTRA_DIST += compiler.3.in
38 LIBMANS += compiler.3
39
40 ## Utility macros.
41 pkginclude_HEADERS += macros.h
42 EXTRA_DIST += macros.3.in
43 LIBMANS += macros.3
44
45 ## Alignment.
46 pkginclude_HEADERS += align.h
47 EXTRA_DIST += align.3.in
48 LIBMANS += align.3
49
50 ## Bit manipulation.
51 pkginclude_HEADERS += bits.h
52 EXTRA_DIST += bits.3.in
53 LIBMANS += bits.3
54
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
60
61 ## Control flow.
62 pkginclude_HEADERS += control.h
63 EXTRA_DIST += control.3.in
64 LIBMANS += control.3
65
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
70
71 ## Exceptions.
72 pkginclude_HEADERS += exc.h
73 libutils_la_SOURCES += exc.c
74 EXTRA_DIST += exc.3.in
75 LIBMANS += exc.3
76
77 check_PROGRAMS += t/exc.t
78 t_exc_t_SOURCES = t/exc-test.c
79 t_exc_t_LDFLAGS = -static
80
81 ## Floating-point formatt conversion.
82 pkginclude_HEADERS += fltfmt.h
83 libutils_la_SOURCES += fltfmt.c fltfmt-convert.c
84 ##EXTRA_DIST += fltfmt.3.in
85 ##LIBMANS += fltfmt.3
86
87 check_PROGRAMS += t/fltfmt.t
88 t_fltfmt_t_SOURCES = t/fltfmt-test.c
89 t_fltfmt_t_LDFLAGS = -static
90
91 ## Generalized formatting.
92 pkginclude_HEADERS += gprintf.h
93 libutils_la_SOURCES += gprintf.c
94 EXTRA_DIST += gprintf.3.in
95 LIBMANS += gprintf.3
96
97 ## Linear regression.
98 pkginclude_HEADERS += linreg.h
99 libutils_la_SOURCES += linreg.c
100 EXTRA_DIST += linreg.3.in
101 LIBMANS += linreg.3
102
103 ## Mathematics.
104 pkginclude_HEADERS += maths.h
105 EXTRA_DIST += maths.3.in
106 LIBMANS += maths.3
107
108 ## String handling.
109 pkginclude_HEADERS += str.h
110 libutils_la_SOURCES += str.c
111 EXTRA_DIST += str.3.in
112 LIBMANS += str.3
113
114 ## Version comparison.
115 pkginclude_HEADERS += versioncmp.h
116 libutils_la_SOURCES += versioncmp.c
117 EXTRA_DIST += versioncmp.3.in
118 LIBMANS += versioncmp.3
119
120 check_PROGRAMS += t/versioncmp.t
121 t_versioncmp_t_SOURCES = t/versioncmp-test.c
122 t_versioncmp_t_CPPFLAGS = $(TEST_CPPFLAGS)
123 t_versioncmp_t_LDFLAGS = -static
124 EXTRA_DIST += t/versioncmp.tests
125
126 ###----- That's all, folks --------------------------------------------------