Commit | Line | Data |
---|---|---|
18c831dc MW |
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 | ## Utility macros. | |
36 | pkginclude_HEADERS += macros.h | |
37 | LIBMANS += macros.3 | |
38 | ||
39 | ## Alignment. | |
40 | pkginclude_HEADERS += align.h | |
41 | LIBMANS += align.3 | |
42 | ||
43 | ## Bit manipulation. | |
44 | pkginclude_HEADERS += bits.h | |
45 | LIBMANS += bits.3 | |
46 | ||
7cf5c72a MW |
47 | check_PROGRAMS += t/bits.t |
48 | t_bits_t_SOURCES = t/bits-test.c | |
49 | t_bits_t_CPPFLAGS = $(TEST_CPPFLAGS) | |
50 | t_bits_t_LDFLAGS = -static | |
51 | EXTRA_DIST += t/bits-testgen.py | |
18c831dc MW |
52 | |
53 | ## Exceptions. | |
54 | pkginclude_HEADERS += exc.h | |
55 | libutils_la_SOURCES += exc.c | |
56 | LIBMANS += exc.3 | |
57 | ||
7cf5c72a MW |
58 | check_PROGRAMS += t/exc.t |
59 | t_exc_t_SOURCES = t/exc-test.c | |
60 | t_exc_t_LDFLAGS = -static | |
61 | ||
18c831dc MW |
62 | ## String handling. |
63 | pkginclude_HEADERS += str.h | |
64 | libutils_la_SOURCES += str.c | |
65 | LIBMANS += str.3 | |
66 | ||
67 | ## Version comparison. | |
68 | pkginclude_HEADERS += versioncmp.h | |
69 | libutils_la_SOURCES += versioncmp.c | |
70 | LIBMANS += versioncmp.3 | |
71 | ||
7cf5c72a MW |
72 | check_PROGRAMS += t/versioncmp.t |
73 | t_versioncmp_t_SOURCES = t/versioncmp-test.c | |
74 | t_versioncmp_t_CPPFLAGS = $(TEST_CPPFLAGS) | |
75 | t_versioncmp_t_LDFLAGS = -static | |
76 | EXTRA_DIST += t/versioncmp.tests | |
18c831dc MW |
77 | |
78 | ###----- That's all, folks -------------------------------------------------- |