Commit | Line | Data |
---|---|---|
18c831dc MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Build script for event-driven networking | |
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 = libsel.la | |
30 | libsel_la_SOURCES = | |
31 | ||
32 | ###-------------------------------------------------------------------------- | |
33 | ### Component files. | |
34 | ||
35 | ## Core event selection. | |
36 | pkginclude_HEADERS += sel.h | |
37 | libsel_la_SOURCES += sel.c | |
c4ccbbf9 | 38 | EXTRA_DIST += sel.3.in |
18c831dc MW |
39 | LIBMANS += sel.3 |
40 | ||
41 | ## Waiting for buffers to fill. | |
42 | pkginclude_HEADERS += selbuf.h selpk.h | |
43 | libsel_la_SOURCES += selbuf.c selpk.c | |
c4ccbbf9 | 44 | EXTRA_DIST += selbuf.3.in selpk.3.in |
18c831dc MW |
45 | LIBMANS += selbuf.3 selpk.3 |
46 | ||
47 | ## RFC931 identification. | |
48 | pkginclude_HEADERS += ident.h | |
49 | libsel_la_SOURCES += ident.c | |
c4ccbbf9 | 50 | EXTRA_DIST += ident.3.in |
18c831dc MW |
51 | LIBMANS += ident.3 |
52 | ||
53 | ## Nonblocking connections. | |
54 | pkginclude_HEADERS += conn.h | |
55 | libsel_la_SOURCES += conn.c | |
c4ccbbf9 | 56 | EXTRA_DIST += conn.3.in |
18c831dc MW |
57 | LIBMANS += conn.3 |
58 | ||
59 | ## Signal handling | |
60 | pkginclude_HEADERS += sig.h | |
61 | libsel_la_SOURCES += sig.c | |
c4ccbbf9 | 62 | EXTRA_DIST += sig.3.in |
18c831dc MW |
63 | LIBMANS += sig.3 |
64 | ||
65 | ## Name resolution. | |
66 | pkginclude_HEADERS += bres.h | |
c4ccbbf9 | 67 | EXTRA_DIST += bres.3.in |
18c831dc MW |
68 | LIBMANS += bres.3 |
69 | ||
70 | if WITH_ADNS | |
71 | libsel_la_SOURCES += bres-adns.c | |
72 | else | |
73 | libsel_la_SOURCES += bres.c | |
74 | pkglibexec_PROGRAMS = bres | |
75 | bres_SOURCES = bres.c | |
76 | bres_CPPFLAGS = -DBRES_STANDALONE $(AM_CPPFLAGS) | |
77 | bres_LDADD = | |
78 | endif | |
79 | ||
80 | ###----- That's all, folks -------------------------------------------------- |