blob: 81f212c46d3eb09379a5d1815cad76796f1197b9 [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
paul1b5d0192003-03-17 23:54:15 +00007lib_LIBRARIES = libospf.a
paul718e3742002-12-13 20:15:29 +00008sbin_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 \
paul1bb066b2003-03-17 01:18:55 +000015 ospf_opaque.c ospf_te.c ospf_vty.c ospf_api.c ospf_apiserver.c
paul718e3742002-12-13 20:15:29 +000016
paul1b5d0192003-03-17 23:54:15 +000017ospfdheaderdir = $(includedir)/ospfd
18
19ospfdheader_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
paul718e3742002-12-13 20:15:29 +000023noinst_HEADERS = \
paul1b5d0192003-03-17 23:54:15 +000024 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
paul718e3742002-12-13 20:15:29 +000027
28ospfd_SOURCES = \
29 ospf_main.c $(libospf_a_SOURCES)
30
pauledd7c242003-06-04 13:59:38 +000031ospfd_LDADD = -L../lib -lzebra @LIBCAP@
paul718e3742002-12-13 20:15:29 +000032
33sysconf_DATA = ospfd.conf.sample
34
paul1bb066b2003-03-17 01:18:55 +000035EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
paul718e3742002-12-13 20:15:29 +000036
37install-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