Enable tls psk
[radsecproxy.git] / 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 has changed or has been extended.
9 #
10 # REVISION is the version number of the _implementation_ of the
11 # CURRENT interface. Set REVISION to 0 when CURRENT changes, else
12 # 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 when
16 # the library interface is _extended_. Set AGE to 0 when the library
17 # interface is _changed_.
18
19
20 SUBDIRS = radius radsecproxy include . examples
21 DIST_SUBDIRS = $(SUBDIRS) tests
22
23 AM_CPPFLAGS = -I$(srcdir)/include
24 AM_CFLAGS = -Wall -Werror -g
25
26 lib_LTLIBRARIES = libradsec.la
27
28 libradsec_la_SOURCES = \
29         avp.c \
30         compat.c \
31         conf.c \
32         conn.c \
33         debug.c \
34         err.c \
35         event.c \
36         packet.c \
37         peer.c \
38         radsec.c \
39         request.c \
40         send.c \
41         tcp.c \
42         udp.c \
43         util.c
44
45 if RS_ENABLE_TLS
46 libradsec_la_SOURCES += tls.c
47 else
48 libradsec_la_SOURCES += md5.c
49 endif
50
51 libradsec_la_SOURCES += \
52         compat.h \
53         conn.h \
54         debug.h \
55         err.h \
56         event.h \
57         md5.h \
58         packet.h \
59         peer.h \
60         radsec.h \
61         tcp.h \
62         tls.h \
63         udp.h \
64         util.h
65
66 EXTRA_DIST = CHANGES HACKING LICENSE libradsec.spec radsec.sym
67 EXTRA_libradsec_la_DEPENDENCIES = radsec.sym
68 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-tls --enable-tls-psk
69
70 libradsec_la_LIBADD = radsecproxy/libradsec-radsecproxy.la radius/libradsec-radius.la
71 libradsec_la_LDFLAGS = -version-info 1:0:1 -export-symbols $(srcdir)/radsec.sym
72 libradsec_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H -Werror # -DDEBUG -DDEBUG_LEVENT