blob: 990b0f1e294f6706c1be4987643d286107b006cf [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
paul1bb066b2003-03-17 01:18:55 +00004LOCAL_OPTS =-DSUPPORT_OSPF_API
paul718e3742002-12-13 20:15:29 +00005DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
6INSTALL_SDATA=@INSTALL@ -m 600
7
8noinst_LIBRARIES = libospf.a
9sbin_PROGRAMS = ospfd
10
11libospf_a_SOURCES = \
12 ospfd.c ospf_zebra.c ospf_interface.c ospf_ism.c ospf_neighbor.c \
13 ospf_nsm.c ospf_dump.c ospf_network.c ospf_packet.c ospf_lsa.c \
14 ospf_spf.c ospf_route.c ospf_ase.c ospf_abr.c ospf_ia.c ospf_flood.c \
15 ospf_lsdb.c ospf_asbr.c ospf_routemap.c ospf_snmp.c \
paul1bb066b2003-03-17 01:18:55 +000016 ospf_opaque.c ospf_te.c ospf_vty.c ospf_api.c ospf_apiserver.c
paul718e3742002-12-13 20:15:29 +000017
18noinst_HEADERS = \
19 ospf_dump.h ospf_interface.h ospf_ism.h ospf_neighbor.h \
20 ospf_network.h ospf_nsm.h ospf_packet.h ospf_zebra.h ospfd.h \
21 ospf_lsa.h ospf_spf.h ospf_route.h ospf_ase.h ospf_abr.h ospf_ia.h \
22 ospf_flood.h ospf_lsdb.h ospf_asbr.h ospf_snmp.h ospf_opaque.h \
paul1bb066b2003-03-17 01:18:55 +000023 ospf_te.h ospf_vty.h ospf_api.h ospf_apiserver.h
paul718e3742002-12-13 20:15:29 +000024
25ospfd_SOURCES = \
26 ospf_main.c $(libospf_a_SOURCES)
27
28ospfd_LDADD = ../lib/libzebra.a
29
30sysconf_DATA = ospfd.conf.sample
31
paul1bb066b2003-03-17 01:18:55 +000032EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
paul718e3742002-12-13 20:15:29 +000033
34install-sysconfDATA: $(sysconf_DATA)
35 @$(NORMAL_INSTALL)
36 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
37 @list='$(sysconf_DATA)'; for p in $$list; do \
38 if test -f $(srcdir)/$$p; then \
39 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
40 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
41 else if test -f $$p; then \
42 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
43 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
44 fi; fi; \
45 done