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 | |
paul | 1b5d019 | 2003-03-17 23:54:15 +0000 | [diff] [blame] | 7 | lib_LIBRARIES = libospf.a |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 15 | ospf_opaque.c ospf_te.c ospf_vty.c ospf_api.c ospf_apiserver.c |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 16 | |
paul | 1b5d019 | 2003-03-17 23:54:15 +0000 | [diff] [blame] | 17 | ospfdheaderdir = $(includedir)/ospfd |
| 18 | |
| 19 | ospfdheader_HEADERS = \ |
| 20 | ospf_api.h ospf_asbr.h ospf_dump.h ospf_lsa.h ospf_lsdb.h \ |
| 21 | ospf_nsm.h ospf_ism.h ospf_opaque.h ospfd.h |
| 22 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 23 | noinst_HEADERS = \ |
paul | 1b5d019 | 2003-03-17 23:54:15 +0000 | [diff] [blame] | 24 | ospf_interface.h ospf_neighbor.h ospf_network.h ospf_packet.h \ |
| 25 | ospf_zebra.h ospf_spf.h ospf_route.h ospf_ase.h ospf_abr.h ospf_ia.h \ |
| 26 | ospf_flood.h ospf_snmp.h ospf_te.h ospf_vty.h ospf_apiserver.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 27 | |
| 28 | ospfd_SOURCES = \ |
| 29 | ospf_main.c $(libospf_a_SOURCES) |
| 30 | |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame^] | 31 | ospfd_LDADD = -L../lib -lzebra @LIBCAP@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 32 | |
| 33 | sysconf_DATA = ospfd.conf.sample |
| 34 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 35 | EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 36 | |
| 37 | install-sysconfDATA: $(sysconf_DATA) |
| 38 | @$(NORMAL_INSTALL) |
| 39 | $(mkinstalldirs) $(DESTDIR)$(sysconfdir) |
| 40 | @list='$(sysconf_DATA)'; for p in $$list; do \ |
| 41 | if test -f $(srcdir)/$$p; then \ |
| 42 | echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \ |
| 43 | $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \ |
| 44 | else if test -f $$p; then \ |
| 45 | echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \ |
| 46 | $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \ |
| 47 | fi; fi; \ |
| 48 | done |