Commit | Line | Data |
---|---|---|
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 | ||
27 | include $(top_srcdir)/vars.am | |
28 | ||
29 | noinst_LTLIBRARIES = libsys.la | |
30 | libsys_la_SOURCES = | |
31 | ||
32 | ###-------------------------------------------------------------------------- | |
33 | ### Component files. | |
34 | ||
35 | ## Daemons. | |
36 | pkginclude_HEADERS += daemonize.h | |
37 | libsys_la_SOURCES += daemonize.c | |
c4ccbbf9 | 38 | EXTRA_DIST += daemonize.3.in |
18c831dc MW |
39 | LIBMANS += daemonize.3 |
40 | ||
41 | ## Environment variables. | |
42 | pkginclude_HEADERS += env.h | |
43 | libsys_la_SOURCES += env.c | |
c4ccbbf9 | 44 | EXTRA_DIST += env.3.in |
18c831dc MW |
45 | LIBMANS += env.3 |
46 | ||
47 | ## File and descriptor flags. | |
48 | pkginclude_HEADERS += fdflags.h | |
49 | libsys_la_SOURCES += fdflags.c | |
c4ccbbf9 | 50 | EXTRA_DIST += fdflags.3.in |
18c831dc MW |
51 | LIBMANS += fdflags.3 |
52 | ||
53 | ## File descriptor passing. | |
54 | pkginclude_HEADERS += fdpass.h | |
55 | libsys_la_SOURCES += fdpass.c | |
c4ccbbf9 | 56 | EXTRA_DIST += fdpass.3.in |
18c831dc MW |
57 | LIBMANS += fdpass.3 |
58 | ||
fbc7337c MW |
59 | check_PROGRAMS += t/fdpass.t |
60 | t_fdpass_t_SOURCES = t/fdpass-test.c | |
61 | t_fdpass_t_CPPFLAGS = $(TEST_CPPFLAGS) | |
62 | t_fdpass_t_LDFLAGS = -static | |
63 | ||
18c831dc MW |
64 | ## Watching files for modification. |
65 | pkginclude_HEADERS += fwatch.h | |
66 | libsys_la_SOURCES += fwatch.c | |
c4ccbbf9 | 67 | EXTRA_DIST += fwatch.3.in |
18c831dc MW |
68 | LIBMANS += fwatch.3 |
69 | ||
70 | ## File locking. | |
71 | pkginclude_HEADERS += lock.h | |
72 | libsys_la_SOURCES += lock.c | |
c4ccbbf9 | 73 | EXTRA_DIST += lock.3.in |
18c831dc MW |
74 | LIBMANS += lock.3 |
75 | ||
76 | ## File descriptor juggling. | |
77 | pkginclude_HEADERS += mdup.h | |
78 | libsys_la_SOURCES += mdup.c | |
c4ccbbf9 | 79 | EXTRA_DIST += mdup.3.in |
18c831dc MW |
80 | LIBMANS += mdup.3 |
81 | ||
7cf5c72a MW |
82 | check_PROGRAMS += t/mdup.t |
83 | t_mdup_t_SOURCES = t/mdup-test.c | |
84 | t_mdup_t_CPPFLAGS = $(TEST_CPPFLAGS) | |
85 | t_mdup_t_LDFLAGS = -static | |
18c831dc MW |
86 | |
87 | ## Time arithmetic. | |
88 | pkginclude_HEADERS += tv.h | |
89 | libsys_la_SOURCES += tv.c | |
c4ccbbf9 | 90 | EXTRA_DIST += tv.3.in |
18c831dc MW |
91 | LIBMANS += tv.3 |
92 | ||
93 | ###----- That's all, folks -------------------------------------------------- |