blob: 2c187e84a7a30f9934e4a359fa95ff6616c1878c [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 = librip.a
8sbin_PROGRAMS = ripd
9
10librip_a_SOURCES = \
11 ripd.c rip_zebra.c rip_interface.c rip_debug.c rip_snmp.c \
12 rip_routemap.c rip_peer.c rip_offset.c
13
14noinst_HEADERS = \
15 ripd.h rip_debug.h
16
17ripd_SOURCES = \
18 rip_main.c $(librip_a_SOURCES)
19
pauledd7c242003-06-04 13:59:38 +000020ripd_LDADD = -L../lib -lzebra @LIBCAP@
paul718e3742002-12-13 20:15:29 +000021
22sysconf_DATA = ripd.conf.sample
23
24EXTRA_DIST = $(sysconf_DATA) RIPv2-MIB.txt
25
26install-sysconfDATA: $(sysconf_DATA)
27 @$(NORMAL_INSTALL)
28 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
29 @list='$(sysconf_DATA)'; for p in $$list; do \
30 if test -f $(srcdir)/$$p; then \
31 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
32 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
33 else if test -f $$p; then \
34 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
35 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
36 fi; fi; \
37 done