blob: 2835aa24059a223f2e185a9894a390740d0d7c3c [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 = libripng.a
8sbin_PROGRAMS = ripngd
9
10libripng_a_SOURCES = \
11 ripng_interface.c ripngd.c ripng_zebra.c ripng_route.c ripng_debug.c \
hasso0750d212003-05-24 21:41:49 +000012 ripng_routemap.c
paul718e3742002-12-13 20:15:29 +000013
14noinst_HEADERS = \
hasso0750d212003-05-24 21:41:49 +000015 ripng_debug.h ripng_route.h ripngd.h
paul718e3742002-12-13 20:15:29 +000016
17ripngd_SOURCES = \
18 ripng_main.c $(libripng_a_SOURCES)
19
20ripngd_LDADD = ../lib/libzebra.a
21
22sysconf_DATA = ripngd.conf.sample
23
24EXTRA_DIST = $(sysconf_DATA)
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