b7bec728e1b63e1d8a01b34e39adf8a95b428f6e
[silc.git] / lib / contrib / Makefile.am
1 #
2 #  Makefile.am
3 #
4 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
5 #
6 #  Copyright (C) 2000 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
20
21 noinst_LTLIBRARIES = libcontrib.la
22
23 if HAVE_GETOPT_LONG
24 GETOPT =
25 else
26 GETOPT = getopt.c getopt1.c
27 endif
28
29 if HAVE_REGEX
30 REGEX =
31 else
32 REGEX = regex.c
33 endif
34
35 if SILC_WIN32
36 libcontrib_la_SOURCES =
37 else
38 libcontrib_la_SOURCES = \
39         $(GETOPT) \
40         $(REGEX)
41 endif
42
43 if SILC_DIST_TOOLKIT
44 include_HEADERS = getopt.h regex.h
45 endif
46
47 EXTRA_DIST = *.c *.h
48
49 include $(top_srcdir)/Makefile.defines.in