updates. New data types.
[silc.git] / lib / 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 SUBDIRS = \
22         contrib \
23         silccore \
24         silccrypt \
25         silcsim \
26         silcmath \
27         silcske \
28         silcutil \
29         silcclient \
30         trq \
31         dotconf
32 #        zlib
33
34 # SILC Library dirs
35 SILCLIB_DIRS = \
36         contrib \
37         silccore \
38         silccrypt \
39         silcsim \
40         silcmath \
41         silcske \
42         silcutil \
43         trq \
44         dotconf
45
46 # SILC Client Library dirs
47 SILCCLIENTLIB_DIRS = \
48         silcclient
49
50 CLEANFILES = libsilc.a libsilcclient.a
51 DISTCLEANFILES = libsilc.a libsilcclient.a
52
53 all:  remove libsilc.a libsilcclient.a
54
55 remove:
56         -rm -rf libsilc.a
57         -rm -rf libsilcclient.a
58
59 libsilc.a:
60         find $(SILCLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilc.a
61         ranlib libsilc.a
62
63 libsilcclient.a:
64         find $(SILCCLIENTLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilcclient.a
65         ranlib libsilcclient.a
66