X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=lib%2FMakefile.am;h=320218ca92da7d9e418d235e43049defd03a14be;hb=39603ec9b7991003c5c272de59e535f88206a369;hp=ca7de1f9ebce871126a4a494ae6f4dc2e1bfeb3c;hpb=83e82dba47aced4a93f9e431b4d8bca94c2f8517;p=libradsec.git diff --git a/lib/Makefile.am b/lib/Makefile.am index ca7de1f..320218c 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,28 +1,72 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = . examples include +# Shared library interface version, i.e. -version-info to Libtool, +# expressed as three integers CURRENT:REVISION:AGE. +# +# CURRENT is the version number of the current interface. Increment +# CURRENT when the library interface has changed or has been extended. +# +# REVISION is the version number of the _implementation_ of the +# CURRENT interface. Set REVISION to 0 when CURRENT changes, else +# increment. +# +# AGE is the number of interfaces this library implements, i.e. how +# many versions before CURRENT that are supported. Increment AGE when +# the library interface is _extended_. Set AGE to 0 when the library +# interface is _changed_. + + +SUBDIRS = radius radsecproxy include . examples +DIST_SUBDIRS = $(SUBDIRS) tests INCLUDES = -I$(srcdir)/include +AM_CFLAGS = -Wall -Werror -g lib_LTLIBRARIES = libradsec.la + libradsec_la_SOURCES = \ - attr.c \ + avp.c \ + compat.c \ conf.c \ conn.c \ debug.c \ err.c \ + event.c \ packet.c \ + peer.c \ radsec.c \ request.c \ - tls.c + send.c \ + tcp.c \ + udp.c \ + util.c + +if RS_ENABLE_TLS +libradsec_la_SOURCES += tls.c +else +libradsec_la_SOURCES += md5.c +endif libradsec_la_SOURCES += \ - rsp_debug.c \ - rsp_hash.c \ - rsp_list.c \ - rsp_tlscommon.c \ - rsp_util.c - -libradsec_la_LDFLAGS = -version-info 0:0:0 -libradsec_la_CFLAGS = $(CFLAGS) -DDEBUG -DDEBUG_LEVENT + compat.h \ + conn.h \ + debug.h \ + err.h \ + event.h \ + md5.h \ + packet.h \ + peer.h \ + radsec.h \ + tcp.h \ + tls.h \ + udp.h \ + util.h + +EXTRA_DIST = CHANGES HACKING LICENSE libradsec.spec radsec.sym +EXTRA_libradsec_la_DEPENDENCIES = radsec.sym +AM_DISTCHECK_CONFIGURE_FLAGS = --enable-tls --enable-tls-psk + +libradsec_la_LIBADD = radsecproxy/libradsec-radsecproxy.la radius/libradsec-radius.la +libradsec_la_LDFLAGS = -version-info 1:0:1 -export-symbols $(srcdir)/radsec.sym +libradsec_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H -Werror # -DDEBUG -DDEBUG_LEVENT