chiark / gitweb /
@@@ tty mess
[mLib] / struct / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Build script for data structures
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       = libstruct.la
30 libstruct_la_SOURCES     =
31
32 ###--------------------------------------------------------------------------
33 ### Component files.
34
35 ## Dynamic strings.
36 pkginclude_HEADERS      += dstr.h dspool.h
37 libstruct_la_SOURCES    += dstr.c dstr-putf.c dspool.c
38 EXTRA_DIST              += dstr.3.in dspool.3.in
39 LIBMANS                 += dstr.3 dspool.3
40
41 check_PROGRAMS          += t/dstr-putf.t
42 t_dstr_putf_t_SOURCES    = t/dstr-putf-test.c
43 t_dstr_putf_t_LDFLAGS    = -static
44
45 ## Buffers.
46 pkginclude_HEADERS      += buf.h
47 libstruct_la_SOURCES    += buf.c buf-dstr.c buf-float.c buf-putf.c
48 EXTRA_DIST              += buf.3.in
49 LIBMANS                 += buf.3
50
51 ## Dynamic arrays.
52 pkginclude_HEADERS      += darray.h
53 libstruct_la_SOURCES    += darray.c
54 EXTRA_DIST              += darray.3.in
55 LIBMANS                 += darray.3
56
57 check_PROGRAMS          += t/darray.t
58 t_darray_t_SOURCES       = t/da-test.c
59 t_darray_t_CPPFLAGS      = $(TEST_CPPFLAGS)
60 t_darray_t_LDFLAGS       = -static
61
62 EXTRA_DIST              += t/da-gtest
63
64 ## Hash tables.
65 pkginclude_HEADERS      += hash.h
66 libstruct_la_SOURCES    += hash.c
67 EXTRA_DIST              += hash.3.in
68 LIBMANS                 += hash.3
69
70 ## Symbol tables.
71 pkginclude_HEADERS      += sym.h
72 libstruct_la_SOURCES    += sym.c
73 EXTRA_DIST              += sym.3.in
74 LIBMANS                 += sym.3
75
76 check_PROGRAMS          += t/sym.t
77 t_sym_t_SOURCES          = t/sym-test.c
78 t_sym_t_CPPFLAGS         = $(TEST_CPPFLAGS)
79 t_sym_t_LDFLAGS          = -static
80
81 EXTRA_DIST              += t/sym-gtest
82
83 ## Atoms.
84 pkginclude_HEADERS      += atom.h
85 libstruct_la_SOURCES    += atom.c
86 EXTRA_DIST              += atom.3.in
87 LIBMANS                 += atom.3
88
89 ## Association tables.
90 pkginclude_HEADERS      += assoc.h
91 libstruct_la_SOURCES    += assoc.c
92 EXTRA_DIST              += assoc.3.in
93 LIBMANS                 += assoc.3
94
95 check_PROGRAMS          += t/assoc.t
96 t_assoc_t_SOURCES        = t/assoc-test.c
97 t_assoc_t_CPPFLAGS       = $(TEST_CPPFLAGS)
98 t_assoc_t_LDFLAGS        = -static
99
100 ###----- That's all, folks --------------------------------------------------