chiark / gitweb /
@@@ wip
[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 LIBMANS                 += compiler.3
38
39 ## Utility macros.
40 pkginclude_HEADERS      += macros.h
41 LIBMANS                 += macros.3
42
43 ## Alignment.
44 pkginclude_HEADERS      += align.h
45 LIBMANS                 += align.3
46
47 ## Bit manipulation.
48 pkginclude_HEADERS      += bits.h
49 LIBMANS                 += bits.3
50
51 check_PROGRAMS          += t/bits.t
52 t_bits_t_SOURCES         = t/bits-test.c
53 t_bits_t_CPPFLAGS        = $(TEST_CPPFLAGS)
54 t_bits_t_LDFLAGS         = -static
55 EXTRA_DIST              += t/bits-testgen.py
56
57 ## Control flow.
58 pkginclude_HEADERS      += control.h
59 ##LIBMANS               += control.3
60
61 check_PROGRAMS          += t/control.t
62 t_control_t_SOURCES      = t/control-test.c
63 t_control_t_CPPFLAGS     = $(TEST_CPPFLAGS)
64 t_control_t_LDFLAGS      = -static
65
66 ## Exceptions.
67 pkginclude_HEADERS      += exc.h
68 libutils_la_SOURCES     += exc.c
69 LIBMANS                 += exc.3
70
71 check_PROGRAMS          += t/exc.t
72 t_exc_t_SOURCES          = t/exc-test.c
73 t_exc_t_LDFLAGS          = -static
74
75 ## Generalized formatting.
76 pkginclude_HEADERS      += gprintf.h
77 libutils_la_SOURCES     += gprintf.c
78 ##LIBMANS               += gprintf.3
79
80 ## Linear regression.
81 pkginclude_HEADERS      += linreg.h
82 libutils_la_SOURCES     += linreg.c
83 ##LIBMANS               += linreg.3
84
85 ## Mathematics.
86 pkginclude_HEADERS      += maths.h
87 ##LIBMANS               += maths.3
88
89 ## String handling.
90 pkginclude_HEADERS      += str.h
91 libutils_la_SOURCES     += str.c
92 LIBMANS                 += str.3
93
94 ## Version comparison.
95 pkginclude_HEADERS      += versioncmp.h
96 libutils_la_SOURCES     += versioncmp.c
97 LIBMANS                 += versioncmp.3
98
99 check_PROGRAMS          += t/versioncmp.t
100 t_versioncmp_t_SOURCES   = t/versioncmp-test.c
101 t_versioncmp_t_CPPFLAGS  = $(TEST_CPPFLAGS)
102 t_versioncmp_t_LDFLAGS   = -static
103 EXTRA_DIST              += t/versioncmp.tests
104
105 ###----- That's all, folks --------------------------------------------------