chiark / gitweb /
Infrastructure: Split the files into subdirectories.
[mLib] / sys / Makefile.am
CommitLineData
18c831dc
MW
1### -*-makefile-*-
2###
3### Build script for system 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
27include $(top_srcdir)/vars.am
28
29noinst_LTLIBRARIES = libsys.la
30libsys_la_SOURCES =
31
32###--------------------------------------------------------------------------
33### Component files.
34
35## Daemons.
36pkginclude_HEADERS += daemonize.h
37libsys_la_SOURCES += daemonize.c
38LIBMANS += daemonize.3
39
40## Environment variables.
41pkginclude_HEADERS += env.h
42libsys_la_SOURCES += env.c
43LIBMANS += env.3
44
45## File and descriptor flags.
46pkginclude_HEADERS += fdflags.h
47libsys_la_SOURCES += fdflags.c
48LIBMANS += fdflags.3
49
50## File descriptor passing.
51pkginclude_HEADERS += fdpass.h
52libsys_la_SOURCES += fdpass.c
53LIBMANS += fdpass.3
54
55## Watching files for modification.
56pkginclude_HEADERS += fwatch.h
57libsys_la_SOURCES += fwatch.c
58LIBMANS += fwatch.3
59
60## File locking.
61pkginclude_HEADERS += lock.h
62libsys_la_SOURCES += lock.c
63LIBMANS += lock.3
64
65## File descriptor juggling.
66pkginclude_HEADERS += mdup.h
67libsys_la_SOURCES += mdup.c
68LIBMANS += mdup.3
69
70check_PROGRAMS += mdup.t
71mdup_t_SOURCES = mdup-test.c
72mdup_t_CPPFLAGS = $(TEST_CPPFLAGS)
73mdup_t_LDFLAGS = -static
74
75EXTRA_DIST += mdup-test.sh
76CLEANFILES += mdup.[0-9]*.out mdup.[0-9]*.err
77tests:: mdup.t mdup-test.sh
78 $(srcdir)/mdup-test.sh
79
80## Time arithmetic.
81pkginclude_HEADERS += tv.h
82libsys_la_SOURCES += tv.c
83LIBMANS += tv.3
84
85###----- That's all, folks --------------------------------------------------