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         silcclient \
30         dotconf \
31         trq
32 #        zlib
33
34 SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
35 DIST_SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
36
37 # SILC Library dirs
38 if SILC_DIST_WIN32DLL
39 SILCLIB_DIRS = \
40         silccore \
41         silccrypt \
42         silcsim \
43         silcmath \
44         silcske \
45         silcutil \
46         trq
47 else
48 SILCLIB_DIRS = \
49         contrib \
50         silccore \
51         silccrypt \
52         silcsim \
53         silcmath \
54         silcske \
55         silcutil \
56         trq \
57         dotconf
58 endif
59
60 # SILC Client Library dirs
61 SILCCLIENTLIB_DIRS = \
62         silcclient
63
64 CLEANFILES = libsilc.a libsilcclient.a
65 DISTCLEANFILES = libsilc.a libsilcclient.a
66
67 if SILC_DIST_CLIENT
68 all:  remove libsilc.a libsilcclient.a
69 else
70 if SILC_DIST_TOOLKIT
71 all:  remove libsilc.a libsilcclient.a
72 else
73 if SILC_DIST_WIN32DLL
74 all:  remove libsilc.a libsilcclient.a
75 else
76 all:  remove libsilc.a
77 endif
78 endif
79 endif
80
81 remove:
82         -rm -rf libsilc.a
83         -rm -rf libsilcclient.a
84
85 libsilc.a:
86         find $(SILCLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilc.a
87         ranlib libsilc.a
88
89 libsilcclient.a:
90         find $(SILCCLIENTLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilcclient.a
91         ranlib libsilcclient.a
92