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