Merge remote-tracking branch 'origin/libradsec' into moonshot
[libradsec.git] / lib / radius / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I m4
3
4 BUILT_SOURCES = dictionaries.c
5
6 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)
7 AM_CFLAGS = -Wall -g
8
9 noinst_LTLIBRARIES = libradsec-radius.la
10
11 libradsec_radius_la_SOURCES = \
12         attrs.c \
13         crypto.c \
14         custom.c \
15         dict.c \
16         client.h \
17         id.c \
18         parse.c \
19         print.c \
20         radpkt.c \
21         static.c \
22         valuepair.c
23
24 libradsec_radius_la_SOURCES += client.h
25
26 libradsec_radius_la_CFLAGS = $(AM_CFLAGS) -DHAVE_CONFIG_H
27
28 DICTIONARIES = \
29         share/dictionary.txt \
30         share/dictionary.juniper \
31         share/dictionary.microsoft \
32         share/dictionary.ukerna \
33         share/dictionary.abfab.ietf
34
35 EXTRA_DIST = dictionaries.c $(DICTIONARIES) common.pl convert.pl
36
37 $(top_srcdir)/include/radsec/radius.h dictionaries.c: ${DICTIONARIES} convert.pl common.pl
38         $(srcdir)/convert.pl ${DICTIONARIES}
39
40 static.$(OBJEXT): static.c dictionaries.c
41
42 clean-local:
43         rm -f dictionaries.c
44
45 $(libradsec_radius_la_SOURCES): $(top_srcdir)/include/radsec/radius.h