summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
blob: e2022189442c6c95150399aa24e14b3593570395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

# Shared library interface version, i.e. -version-info to Libtool,
# expressed as three integers CURRENT:REVISION:AGE.
#
# CURRENT is the version number of the current interface. Increment
# CURRENT when the library interface has changed or has been extended.
#
# REVISION is the version number of the _implementation_ of the
# CURRENT interface. Set REVISION to 0 when CURRENT changes, else
# increment.
#
# AGE is the number of interfaces this library implements, i.e. how
# many versions before CURRENT that are supported. Increment AGE when
# the library interface is _extended_. Set AGE to 0 when the library
# interface is _changed_.

VER_CUR = 1
VER_REV = 0
VER_AGE = 0

SUBDIRS = radius radsecproxy include . examples
DIST_SUBDIRS = $(SUBDIRS) tests

INCLUDES = -I$(srcdir)/include
AM_CFLAGS = -Wall -Werror -g

lib_LTLIBRARIES = libradsec.la

libradsec_la_SOURCES = \
	avp.c \
	compat.c \
	conf.c \
	confutil.c \
	conn.c \
	debug.c \
	err.c \
	event.c \
	listener.c \
	message.c \
	peer.c \
	radsec.c \
	request.c \
	send.c \
	tcp.c \
	udp.c \
	util.c

if RS_ENABLE_TLS
  libradsec_la_SOURCES += tls.c
else
  libradsec_la_SOURCES += md5.c
endif

libradsec_la_SOURCES += \
	compat.h \
	conn.h \
	debug.h \
	err.h \
	event.h \
	md5.h \
	peer.h \
	radsec.h \
	tcp.h \
	tls.h \
	udp.h \
	util.h

EXTRA_DIST = HACKING LICENSE radsec.sym
EXTRA_libradsec_la_DEPENDENCIES = radsec.sym

libradsec_la_CFLAGS = \
	$(AM_CFLAGS) -DHAVE_CONFIG_H #-DDEBUG -DDEBUG_LEVENT
libradsec_la_LDFLAGS = \
	-version-info $(VER_CUR):$(VER_REV):$(VER_AGE) \
	-export-symbols $(srcdir)/radsec.sym
libradsec_la_LIBADD = \
	radsecproxy/libradsec-radsecproxy.la \
	radius/libradsec-radius.la