4 # Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6 # Copyright (C) 2000 Pekka Riikonen
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.
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.
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
33 SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
34 DIST_SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
47 # SILC Client Library dirs
48 SILCCLIENTLIB_DIRS = \
51 CLEANFILES = libsilc.a libsilcclient.a
52 DISTCLEANFILES = libsilc.a libsilcclient.a
55 all: remove libsilc.a libsilcclient.a
58 all: remove libsilc.a libsilcclient.a
61 all: silc.dll silcclient.dll
70 -rm -rf libsilcclient.a
75 -$(INSTALL) libsilc.a $(libdir)/
76 -$(INSTALL) libsilcclient.a $(libdir)/
83 # WIN32 DLL generation
85 dllwrap --export-all --output-def silc.def --output-exp silc.exp \
86 --output-lib silc.lib --driver-name $(CC) --target i386-mingw32 \
87 -mno-cygwin -o silc.dll libsilc.a -lwsock32
89 silcclient.dll: libsilcclient.a
90 dllwrap --export-all --output-def silcclient.def \
91 --output-lib silcclient.lib --output-exp silcclient.exp \
92 --driver-name $(CC) --target i386-mingw32 \
93 -mno-cygwin -o silcclient.dll libsilcclient.a -L. -lsilc -lwsock32
97 find $(SILCLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilc.a
101 find $(SILCCLIENTLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilcclient.a
102 $(RANLIB) libsilcclient.a