Cherry-picks the code from 0.1.x branch
[rahunas] / src / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 sbin_PROGRAMS = rahunasd
4
5 IPSET_VERSION:=4.2
6
7 AM_CFLAGS = \
8   $(LIBGNET_CFLAGS) \
9   $(LIBGDA_CFLAGS) \
10   -I$(top_srcdir)/src/ \
11   -DRAHUNAS_VERSION=\"$(RAHUNAS_VERSION)\" \
12   -DPROGRAM=\"$(PROGRAM)\" \
13   -DIPSET_VERSION=\"$(IPSET_VERSION)\" \
14   -DRAHUNAS_CONF_DIR=\"$(sysconfdir)/rahunas/\" \
15   -DRAHUNAS_DB_DIR=\"$(localstatedir)/lib/rahunas/\" \
16   -DRAHUNAS_LOG_DIR=\"$(localstatedir)/log/rahunas/\" \
17   -DRAHUNAS_RUN_DIR=\"$(localstatedir)/run/\" \
18   -DRAHUNAS_FIREWALL_WRAPPER=\"$(sbindir)/rahunas-firewall\" \
19   -DRAHUNAS_BANDWIDTH_WRAPPER=\"$(sbindir)/rahunas-bandwidth\" \
20   -D_GNU_SOURCE
21
22 rahunasd_SOURCES = \
23   rahunasd.c \
24   rahunasd.h \
25   rh-server.c \
26   rh-server.h \
27   rh-xmlrpc-server.c \
28   rh-xmlrpc-server.h \
29   rh-xmlrpc-cmd.c \
30   rh-xmlrpc-cmd.h \
31   rh-ipset.c \
32   rh-ipset.h \
33   rh-utils.c \
34   rh-utils.h \
35   rh-task.c \
36   rh-task.h \
37   rh-task-iptables.c \
38   rh-task-iptables.h \
39   rh-task-memset.c \
40   rh-task-memset.h \
41   rh-task-ipset.c \
42   rh-task-ipset.h \
43   rh-task-dbset.c \
44   rh-task-dbset.h \
45   rh-task-bandwidth.c \
46   rh-task-bandwidth.h \
47   rh-task-serviceclass.c \
48   rh-task-serviceclass.h \
49   rh-radius.h \
50   rh-config.c \
51   rh-config.h \
52   rh-serviceclass.h \
53   rh-serviceclass.c
54
55 rahunasd_LDADD =  \
56   $(top_builddir)/xmlrpc/libgnetxmlrpc.a \
57   $(top_builddir)/lcfg/liblcfg.a \
58   $(LIBGNET_LIBS) \
59   $(LIBGDA_LIBS)