4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2000 - 2008 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; version 2 of the License.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
39 LIBTOOL_OPTS= -release $(CRYPTO_BASE_VERSION) -rpath $(DESTDIR)$(libdir) \
40 -export-dynamic -no-undefined
42 LIBTOOL_OPTS= -release $(CRYPTO_BASE_VERSION) -rpath $(DESTDIR)$(libdir)
44 LIBTOOL_CRYPTO_VERSION = \
45 -version-info $(CRYPTO_CURRENT):$(CRYPTO_REVISION):$(CRYPTO_AGE) \
46 -export-symbols-regex '^silc_'
49 LIBTOOL_CRYPTO_VERSION =
52 CRYPTO_LINK_LIBS=$(LIBS)
59 SUBDIRS = $(CRYPTO_DIRS)
61 CLEANFILES = $(CRYPTO_LIB)
62 DISTCLEANFILES = $(CRYPTO_LIB)
68 $(MAKE) remove $(CRYPTO_LIB)
71 -mkdir -p $(DESTDIR)$(libdir)
72 -$(LIBTOOL) $(INSTALL) libsct.la $(DESTDIR)$(libdir)/
75 find $(CRYPTO_DIRS) -type f -name *.lo | xargs \
76 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \
78 $(LIBTOOL_CRYPTO_VERSION) \
79 $(LIBTOOL_OPTS) -o libsct.la
81 pkgconfigdir = $(libdir)/pkgconfig
82 pkgconfig_DATA = sct.pc
84 EXTRA_DIST = sct.pc.in
86 include $(top_srcdir)/Makefile.defines.in