paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame^] | 1 | ## Process this file with automake to produce Makefile.in. |
| 2 | |
| 3 | INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib |
| 4 | DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\" |
| 5 | INSTALL_SDATA=@INSTALL@ -m 600 |
| 6 | |
| 7 | noinst_LIBRARIES = libospf.a |
| 8 | sbin_PROGRAMS = ospfd |
| 9 | |
| 10 | libospf_a_SOURCES = \ |
| 11 | ospfd.c ospf_zebra.c ospf_interface.c ospf_ism.c ospf_neighbor.c \ |
| 12 | ospf_nsm.c ospf_dump.c ospf_network.c ospf_packet.c ospf_lsa.c \ |
| 13 | ospf_spf.c ospf_route.c ospf_ase.c ospf_abr.c ospf_ia.c ospf_flood.c \ |
| 14 | ospf_lsdb.c ospf_asbr.c ospf_routemap.c ospf_snmp.c \ |
| 15 | ospf_opaque.c ospf_te.c ospf_vty.c |
| 16 | |
| 17 | noinst_HEADERS = \ |
| 18 | ospf_dump.h ospf_interface.h ospf_ism.h ospf_neighbor.h \ |
| 19 | ospf_network.h ospf_nsm.h ospf_packet.h ospf_zebra.h ospfd.h \ |
| 20 | ospf_lsa.h ospf_spf.h ospf_route.h ospf_ase.h ospf_abr.h ospf_ia.h \ |
| 21 | ospf_flood.h ospf_lsdb.h ospf_asbr.h ospf_snmp.h ospf_opaque.h \ |
| 22 | ospf_te.h ospf_vty.h |
| 23 | |
| 24 | ospfd_SOURCES = \ |
| 25 | ospf_main.c $(libospf_a_SOURCES) |
| 26 | |
| 27 | ospfd_LDADD = ../lib/libzebra.a |
| 28 | |
| 29 | sysconf_DATA = ospfd.conf.sample |
| 30 | |
| 31 | EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt |
| 32 | |
| 33 | install-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 |