WIP commit moving towards working server support.
[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.
8 # Increment CURRENT when the library interface changes.
9 #
10 # REVISION is the version number of the _implementation_ of the
11 # CURRENT interface.
12 # Set REVISION to 0 when CURRENT changes, else increment.
13 #
14 # AGE is the number of interfaces this library implements, i.e. how
15 # many versions before CURRENT that are supported.
16 # Increment AGE when the library interface is _extended_.
17 # Set AGE to 0 when the library interface is _changed_.
18
19 VER_CUR = 1
20 VER_REV = 0
21 VER_AGE = 0
22
23 SUBDIRS = radius radsecproxy . include examples
24
25 INCLUDES = -I$(srcdir)/include
26 AM_CFLAGS = -Wall -Werror -g
27
28 lib_LTLIBRARIES = libradsec.la
29
30 libradsec_la_SOURCES = \
31         avp.c \
32         compat.c \
33         conf.c \
34         confutil.c \
35         conn.c \
36         debug.c \
37         err.c \
38         event.c \
39         listener.c \
40         message.c \
41         peer.c \
42         radsec.c \
43         request.c \
44         send.c \
45         tcp.c \
46         udp.c \
47         util.c
48
49 if RS_ENABLE_TLS
50   libradsec_la_SOURCES += tls.c
51 else
52   libradsec_la_SOURCES += md5.c
53 endif
54
55 EXTRA_DIST = HACKING LICENSE
56 EXTRA_libradsec_la_DEPENDENCIES = radsec.sym
57
58 libradsec_la_CFLAGS = \
59         $(AM_CFLAGS) -DHAVE_CONFIG_H -DDEBUG -DDEBUG_LEVENT
60 libradsec_la_LDFLAGS = \
61         -version-info $(VER_CUR):$(VER_REV):$(VER_AGE) \
62         -export-symbols radsec.sym
63 libradsec_la_LIBADD = \
64         radsecproxy/libradsec-radsecproxy.la \
65         radius/libradsec-radius.la