summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 864c0ad22b34623042d6c3fa726e4732664e3afd (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
cfgdir = $(datadir)/vyatta-cfg/templates

initddir	 = /etc/init.d

AM_CPPFLAGS = -I src -Wall -DDEBUG

CLEANFILES = src/main.o src/lbdata.o src/lbdatafactory.o src/loadbalance.o src/rl_str_proc.o src/lbpathtest.o src/lboutput.o

sbin_SCRIPTS = scripts/vyatta-wanloadbalance.init
sbin_SCRIPTS += scripts/vyatta-wanloadbalance.pl

src_wan_lb_SOURCES = src/main.cc
src_wan_lb_SOURCES += src/lbdata.cc
src_wan_lb_SOURCES += src/lbdatafactory.cc
src_wan_lb_SOURCES += src/loadbalance.cc
src_wan_lb_SOURCES += src/rl_str_proc.cc
src_wan_lb_SOURCES += src/lbpathtest.cc
src_wan_lb_SOURCES += src/lbdecision.cc
src_wan_lb_SOURCES += src/lboutput.cc

sbin_PROGRAMS = src/wan_lb

cpiop = find  . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
	cpio -0pd

install-exec-hook:
	mkdir -p $(DESTDIR)$(cfgdir)
	cd templates; $(cpiop) $(DESTDIR)$(cfgdir)