e6f9fb2f1617ca4d88ded4a30ff042b1791a5622
[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 . include examples
21
22 INCLUDES = -I$(srcdir)/include
23 AM_CFLAGS = -Wall -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 libradsec_la_SOURCES += \
45         rsp_debug.c \
46         rsp_hash.c \
47         rsp_list.c \
48         rsp_util.c
49
50 if RS_ENABLE_TLS
51 libradsec_la_SOURCES += \
52         tls.c \
53         rsp_tlscommon.c
54 endif
55
56 EXTRA_DIST = HACKING LICENSE
57
58 libradsec_la_LIBADD = radius/libradsec-radius.la
59 libradsec_la_LDFLAGS = -version-info 0:0:0 -export-symbols radsec.sym
60 libradsec_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H -Werror # -DDEBUG -DDEBUG_LEVENT