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