enable dh-autoreconf
[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 SUBDIRS = radius radsecproxy include . examples
20 DIST_SUBDIRS = $(SUBDIRS) tests
21
22 AM_CPPFLAGS = -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 libradsec_la_SOURCES += \
51         compat.h \
52         conn.h \
53         debug.h \
54         err.h \
55         event.h \
56         md5.h \
57         packet.h \
58         peer.h \
59         radsec.h \
60         tcp.h \
61         tls.h \
62         udp.h \
63         util.h
64
65 EXTRA_DIST = CHANGES HACKING LICENSE libradsec.spec radsec.sym
66 EXTRA_libradsec_la_DEPENDENCIES = radsec.sym
67 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-tls --enable-tls-psk
68
69 libradsec_la_LIBADD = radsecproxy/libradsec-radsecproxy.la radius/libradsec-radius.la
70 libradsec_la_LDFLAGS = -version-info 1:0:1 -export-symbols $(srcdir)/radsec.sym
71 libradsec_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H -Werror # -DDEBUG -DDEBUG_LEVENT