1# $Id: Makefile.am,v 1.21 2009/05/07 17:21:56 bagder Exp $ 2AUTOMAKE_OPTIONS = foreign nostdinc 3 4# Get the CRYPTO_CSOURCES, CRYPTO_HHEADERS and CRYPTO_LTLIBS defines 5if OPENSSL 6include ../Makefile.OpenSSL.inc 7endif 8if LIBGCRYPT 9include ../Makefile.libgcrypt.inc 10endif 11if WINCNG 12include ../Makefile.WinCNG.inc 13endif 14if MBEDTLS 15include ../Makefile.mbedTLS.inc 16endif 17 18# Makefile.inc provides the CSOURCES and HHEADERS defines 19include ../Makefile.inc 20 21libssh2_la_SOURCES = $(CSOURCES) $(HHEADERS) 22 23EXTRA_DIST = libssh2_config.h.in libssh2_config_cmake.h.in libssh2.pc.in 24EXTRA_DIST += CMakeLists.txt NMakefile 25 26lib_LTLIBRARIES = libssh2.la 27 28# srcdir/include for the shipped headers 29# builddir/src for the generated config header when building out of the source 30# tree 31AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/src 32 33VERSION=-version-info 1:1:0 34 35# This flag accepts an argument of the form current[:revision[:age]]. So, 36# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 37# 1. 38# 39# If either revision or age are omitted, they default to 0. Also note that age 40# must be less than or equal to the current interface number. 41# 42# Here are a set of rules to help you update your library version information: 43# 44# 1.Start with version information of 0:0:0 for each libtool library. 45# 46# 2.Update the version information only immediately before a public release of 47# your software. More frequent updates are unnecessary, and only guarantee 48# that the current interface number gets larger faster. 49# 50# 3.If the library source code has changed at all since the last update, then 51# increment revision (c:r+1:a) 52# 53# 4.If any interfaces have been added, removed, or changed since the last 54# update, increment current, and set revision to 0. (c+1:r=0:a) 55# 56# 5.If any interfaces have been added since the last public release, then 57# increment age. (c:r:a+1) 58# 59# 6.If any interfaces have been removed since the last public release, then 60# set age to 0. (c:r:a=0) 61# 62 63libssh2_la_LDFLAGS = $(VERSION) -no-undefined \ 64 -export-symbols-regex '^libssh2_.*' \ 65 $(CRYPTO_LTLIBS) $(LTLIBZ) 66