46f573a016e90d232eda6e59ec5932e1bbc0732e
[libradsec.git] / lib / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I m4
3
4 # Shared library interface version, i.e. -version-info to Libtool,
5 # expressed as three integers CURRENT:REVISION:AGE.
6
7 # CURRENT is the version number of the current interface.  Increment
8 #         CURRENT when the library interface changes.
9
10 # REVISION is the version number of the _implementation_ of the
11 #          CURRENT interface.  Set REVISION to 0 when CURRENT changes,
12 #          else increment.
13
14 # AGE is the number of interfaces this library implements, i.e. how
15 #     many versions before CURRENT that are supported.  Increment AGE
16 #     when the library interface is _extended_.  Set AGE to 0 when the
17 #     library interface is _changed_.
18
19
20 SUBDIRS = radius radsecproxy . include examples
21
22 INCLUDES = -I$(srcdir)/include
23 AM_CFLAGS = -Wall -Werror -g
24
25 lib_LTLIBRARIES = libradsec.la
26
27 libradsec_la_SOURCES = \
28         avp.c \
29         compat.c \
30         conf.c \
31         conn.c \
32         debug.c \
33         err.c \
34         event.c \
35         packet.c \
36         peer.c \
37         radsec.c \
38         request.c \
39         send.c \
40         tcp.c \
41         udp.c \
42         util.c
43
44 if RS_ENABLE_TLS
45 libradsec_la_SOURCES += tls.c
46 else
47 libradsec_la_SOURCES += md5.c
48 endif
49
50 EXTRA_DIST = HACKING LICENSE
51
52 libradsec_la_LIBADD = radsecproxy/libradsec-radsecproxy.la radius/libradsec-radius.la
53 libradsec_la_LDFLAGS = -version-info 0:0:0 -export-symbols radsec.sym
54 libradsec_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H -Werror # -DDEBUG -DDEBUG_LEVENT