Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in. |
| 2 | ## $QuaggaId: $Format:%an, %ai, %h$ $ |
| 3 | |
| 4 | # qpimd - pimd for quagga |
| 5 | # Copyright (C) 2008 Everton da Silva Marques |
| 6 | # |
| 7 | # qpimd is free software; you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as |
| 9 | # published by the Free Software Foundation; either version 2, |
| 10 | # or (at your option) any later version. |
| 11 | # |
| 12 | # qpimd is distributed in the hope that it will be useful, but |
| 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public |
| 18 | # License along with qpimd; see the file COPYING. If not, write |
| 19 | # to the Free Software Foundation, Inc., 59 Temple Place - Suite |
| 20 | # 330, Boston, MA 02111-1307, USA. |
| 21 | |
| 22 | # PIM_DEBUG_BYDEFAULT: Automatically enables all pimd "debug ..." commands |
| 23 | # PIM_ZCLIENT_DEBUG: Support for internal ZEBRA client debugging |
| 24 | # PIM_MOTD_VERSION: Includes pimd version in default MOTD |
| 25 | # PIM_USE_QUAGGA_INET_CHECKSUM: Prefer Quagga inet checksum |
| 26 | # PIM_CHECK_RECV_IFINDEX_SANITY: Compare socket ifindex with recv ifindex |
| 27 | # PIM_REPORT_RECV_IFINDEX_MISMATCH: Report sock/recv ifindex mismatch |
| 28 | # PIM_ENFORCE_LOOPFREE_MFC: Refuse adding looping MFC entries |
| 29 | # PIM_UNEXPECTED_KERNEL_UPCALL: Report unexpected kernel upcall |
Everton Marques | 0ef36d8 | 2010-03-11 14:47:42 -0300 | [diff] [blame] | 30 | # PIM_USE_QUAGGA_GETTIME: Prefer quagga_gettime |
| 31 | # PIM_GETTIME_USE_GETTIMEOFDAY: Work-around improper monotonic clock |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 32 | |
| 33 | PIM_DEFS = |
| 34 | #PIM_DEFS += -DPIM_DEBUG_BYDEFAULT |
| 35 | PIM_DEFS += -DPIM_CHECK_RECV_IFINDEX_SANITY |
| 36 | #PIM_DEFS += -DPIM_REPORT_RECV_IFINDEX_MISMATCH |
| 37 | PIM_DEFS += -DPIM_ZCLIENT_DEBUG |
| 38 | PIM_DEFS += -DPIM_MOTD_VERSION |
| 39 | PIM_DEFS += -DPIM_USE_QUAGGA_INET_CHECKSUM |
| 40 | PIM_DEFS += -DPIM_ENFORCE_LOOPFREE_MFC |
| 41 | #PIM_DEFS += -DPIM_UNEXPECTED_KERNEL_UPCALL |
Everton Marques | 0ef36d8 | 2010-03-11 14:47:42 -0300 | [diff] [blame] | 42 | #PIM_DEFS += -DPIM_USE_QUAGGA_GETTIME |
| 43 | PIM_DEFS += -DPIM_GETTIME_USE_GETTIMEOFDAY |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 44 | |
| 45 | INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib |
| 46 | DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" $(PIM_DEFS) |
| 47 | INSTALL_SDATA=@INSTALL@ -m 600 |
Everton Marques | ff57d36 | 2014-06-25 15:54:03 -0300 | [diff] [blame^] | 48 | LIBS = @LIBS@ |
| 49 | |
| 50 | AM_CFLAGS = $(PICFLAGS) |
| 51 | AM_LDFLAGS = $(PILDFLAGS) |
| 52 | |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 53 | noinst_LIBRARIES = libpim.a |
| 54 | sbin_PROGRAMS = pimd |
Everton Marques | 40765fe | 2009-09-30 17:10:11 -0300 | [diff] [blame] | 55 | bin_PROGRAMS = test_igmpv3_join |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 56 | |
| 57 | libpim_a_SOURCES = \ |
| 58 | pimd.c pim_version.c pim_cmd.c pim_signals.c pim_iface.c \ |
| 59 | pim_vty.c pim_igmp.c pim_sock.c pim_zebra.c \ |
| 60 | pim_igmpv3.c pim_str.c pim_mroute.c pim_util.c pim_time.c \ |
| 61 | pim_oil.c pim_zlookup.c pim_pim.c pim_tlv.c pim_neighbor.c \ |
| 62 | pim_hello.c pim_ifchannel.c pim_join.c pim_assert.c \ |
Everton Marques | 40765fe | 2009-09-30 17:10:11 -0300 | [diff] [blame] | 63 | pim_msg.c pim_upstream.c pim_rpf.c pim_rand.c pim_macro.c \ |
Everton Marques | 7c5f501 | 2009-11-19 17:00:23 -0200 | [diff] [blame] | 64 | pim_igmp_join.c pim_ssmpingd.c pim_int.c |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 65 | |
| 66 | noinst_HEADERS = \ |
| 67 | pimd.h pim_version.h pim_cmd.h pim_signals.h pim_iface.h \ |
| 68 | pim_vty.h pim_igmp.h pim_sock.h pim_zebra.h \ |
| 69 | pim_igmpv3.h pim_str.h pim_mroute.h pim_util.h pim_time.h \ |
| 70 | pim_oil.h pim_zlookup.h pim_pim.h pim_tlv.h pim_neighbor.h \ |
| 71 | pim_hello.h pim_ifchannel.h pim_join.h pim_assert.h \ |
Everton Marques | 40765fe | 2009-09-30 17:10:11 -0300 | [diff] [blame] | 72 | pim_msg.h pim_upstream.h pim_rpf.h pim_rand.h pim_macro.h \ |
Everton Marques | 7c5f501 | 2009-11-19 17:00:23 -0200 | [diff] [blame] | 73 | pim_igmp_join.h pim_ssmpingd.h pim_int.h |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 74 | |
| 75 | pimd_SOURCES = \ |
| 76 | pim_main.c $(libpim_a_SOURCES) |
| 77 | |
Everton Marques | 40765fe | 2009-09-30 17:10:11 -0300 | [diff] [blame] | 78 | test_igmpv3_join_SOURCES = \ |
| 79 | test_igmpv3_join.c pim_igmp_join.c |
| 80 | |
Everton Marques | 871dbcf | 2009-08-11 15:43:05 -0300 | [diff] [blame] | 81 | pimd_LDADD = ../lib/libzebra.la @LIBCAP@ |
| 82 | |
| 83 | examplesdir = $(exampledir) |
| 84 | dist_examples_DATA = pimd.conf.sample |