blob: 2c4e4a1319510113b0a66f05627d7d842097303d [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
paul1b5d0192003-03-17 23:54:15 +00008lib_LIBRARIES = libospf.a
paul718e3742002-12-13 20:15:29 +00009sbin_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
paul1b5d0192003-03-17 23:54:15 +000018ospfdheaderdir = $(includedir)/ospfd
19
20ospfdheader_HEADERS = \
21 ospf_api.h ospf_asbr.h ospf_dump.h ospf_lsa.h ospf_lsdb.h \
22 ospf_nsm.h ospf_ism.h ospf_opaque.h ospfd.h
23
paul718e3742002-12-13 20:15:29 +000024noinst_HEADERS = \
paul1b5d0192003-03-17 23:54:15 +000025 ospf_interface.h ospf_neighbor.h ospf_network.h ospf_packet.h \
26 ospf_zebra.h ospf_spf.h ospf_route.h ospf_ase.h ospf_abr.h ospf_ia.h \
27 ospf_flood.h ospf_snmp.h ospf_te.h ospf_vty.h ospf_apiserver.h
paul718e3742002-12-13 20:15:29 +000028
29ospfd_SOURCES = \
30 ospf_main.c $(libospf_a_SOURCES)
31
32ospfd_LDADD = ../lib/libzebra.a
33
34sysconf_DATA = ospfd.conf.sample
35
paul1bb066b2003-03-17 01:18:55 +000036EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
paul718e3742002-12-13 20:15:29 +000037
38install-sysconfDATA: $(sysconf_DATA)
39 @$(NORMAL_INSTALL)
40 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
41 @list='$(sysconf_DATA)'; for p in $$list; do \
42 if test -f $(srcdir)/$$p; then \
43 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
44 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
45 else if test -f $$p; then \
46 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
47 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
48 fi; fi; \
49 done