blob: 1ced11cc0cf0a8f7dfc29f548d5f1ddc5e79939f [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@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
5INSTALL_SDATA=@INSTALL@ -m 600
6
7noinst_LIBRARIES = libospf.a
8sbin_PROGRAMS = ospfd
9
10libospf_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
17noinst_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
24ospfd_SOURCES = \
25 ospf_main.c $(libospf_a_SOURCES)
26
27ospfd_LDADD = ../lib/libzebra.a
28
29sysconf_DATA = ospfd.conf.sample
30
31EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-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