blob: 7f739f6e3f558c0a8f5db2d8fdd052b2f53ee19a [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001## Process this file with automake to produce Makefile.in.
2
3INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
4DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
5INSTALL_SDATA=@INSTALL@ -m 600
6
7noinst_LIBRARIES = libbgp.a
8sbin_PROGRAMS = bgpd
9
10libbgp_a_SOURCES = \
11 bgpd.c bgp_fsm.c bgp_aspath.c bgp_community.c bgp_attr.c \
12 bgp_debug.c bgp_route.c bgp_zebra.c bgp_open.c bgp_routemap.c \
13 bgp_packet.c bgp_network.c bgp_filter.c bgp_regex.c bgp_clist.c \
14 bgp_dump.c bgp_snmp.c bgp_ecommunity.c bgp_mplsvpn.c bgp_nexthop.c \
15 bgp_damp.c bgp_table.c bgp_advertise.c bgp_vty.c
16
17noinst_HEADERS = \
18 bgp_aspath.h bgp_attr.h bgp_community.h bgp_debug.h bgp_fsm.h \
19 bgp_network.h bgp_open.h bgp_packet.h bgp_regex.h bgp_route.h \
20 bgpd.h bgp_filter.h bgp_clist.h bgp_dump.h bgp_zebra.h \
21 bgp_ecommunity.h bgp_mplsvpn.h bgp_nexthop.h bgp_damp.h bgp_table.h \
22 bgp_advertise.h bgp_snmp.h bgp_vty.h
23
24bgpd_SOURCES = \
25 bgp_main.c $(libbgp_a_SOURCES)
26
27bgpd_LDADD = ../lib/libzebra.a
28
29sysconf_DATA = bgpd.conf.sample bgpd.conf.sample2
30
31EXTRA_DIST = $(sysconf_DATA) BGP4-MIB.txt
32
33install-sysconfDATA: $(sysconf_DATA)
34 @$(NORMAL_INSTALL)
35 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
36 @list='$(sysconf_DATA)'; for p in $$list; do \
37 if test -f $(srcdir)/$$p; then \
38 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
39 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
40 else if test -f $$p; then \
41 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
42 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
43 fi; fi; \
44 done