Avneesh Sachdev | 5779fda | 2016-04-04 10:54:58 -0700 | [diff] [blame] | 1 | include ../common.am |
| 2 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3 | ## Process this file with automake to produce Makefile.in. |
| 4 | |
David Lamparter | 237aac5 | 2014-06-28 22:23:10 +0200 | [diff] [blame] | 5 | AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib |
Donald Sharp | d183963 | 2015-12-09 08:24:44 -0500 | [diff] [blame] | 6 | DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7 | INSTALL_SDATA=@INSTALL@ -m 600 |
| 8 | |
paul | fd6ff2f | 2003-08-27 06:17:18 +0000 | [diff] [blame] | 9 | LIBCAP = @LIBCAP@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 10 | |
| 11 | ipforward = @IPFORWARD@ |
| 12 | if_method = @IF_METHOD@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 13 | rt_method = @RT_METHOD@ |
| 14 | rtread_method = @RTREAD_METHOD@ |
| 15 | kernel_method = @KERNEL_METHOD@ |
paul | 19877dd | 2004-05-11 10:49:35 +0000 | [diff] [blame] | 16 | ioctl_method = @IOCTL_METHOD@ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 17 | |
David Lamparter | 2e5ca49 | 2014-06-28 20:54:31 +0200 | [diff] [blame] | 18 | otherobj = $(ioctl_method) $(ipforward) $(if_method) \ |
David Lamparter | 0f048b9 | 2014-06-28 21:01:32 +0200 | [diff] [blame] | 19 | $(rt_method) $(rtread_method) $(kernel_method) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 20 | |
Avneesh Sachdev | 5adc252 | 2012-11-13 22:48:59 +0000 | [diff] [blame] | 21 | if HAVE_NETLINK |
| 22 | othersrc = zebra_fpm_netlink.c |
| 23 | endif |
| 24 | |
Avneesh Sachdev | 5779fda | 2016-04-04 10:54:58 -0700 | [diff] [blame] | 25 | if HAVE_PROTOBUF |
| 26 | protobuf_srcs = zebra_fpm_protobuf.c |
| 27 | endif |
| 28 | |
Avneesh Sachdev | 3bccb4f | 2016-03-11 12:21:26 -0800 | [diff] [blame] | 29 | if DEV_BUILD |
| 30 | dev_srcs = zebra_fpm_dt.c |
| 31 | endif |
| 32 | |
Paul Jakma | 52c0bc7 | 2015-08-20 21:30:17 +0100 | [diff] [blame] | 33 | AM_CFLAGS = $(WERROR) |
Paul P Komkoff Jr | 46bc0e4 | 2008-08-13 16:17:04 +0100 | [diff] [blame] | 34 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 35 | sbin_PROGRAMS = zebra |
| 36 | |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 37 | noinst_PROGRAMS = testzebra |
| 38 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 39 | zebra_SOURCES = \ |
Paul Jakma | 7514fb7 | 2007-05-02 16:05:35 +0000 | [diff] [blame] | 40 | zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \ |
hasso | ca77698 | 2004-06-12 14:33:05 +0000 | [diff] [blame] | 41 | redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \ |
Avneesh Sachdev | 5adc252 | 2012-11-13 22:48:59 +0000 | [diff] [blame] | 42 | irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \ |
Pradosh Mohapatra | 60cc959 | 2015-11-09 20:21:41 -0500 | [diff] [blame] | 43 | zebra_rnh.c \ |
Avneesh Sachdev | 3bccb4f | 2016-03-11 12:21:26 -0800 | [diff] [blame] | 44 | $(othersrc) $(protobuf_srcs) $(dev_srcs) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 45 | |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 46 | testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \ |
| 47 | zebra_vty.c \ |
Pradosh Mohapatra | 60cc959 | 2015-11-09 20:21:41 -0500 | [diff] [blame] | 48 | kernel_null.c redistribute_null.c ioctl_null.c misc_null.c zebra_rnh_null.c |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 49 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 50 | noinst_HEADERS = \ |
| 51 | connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \ |
David Lamparter | 4209a88 | 2012-12-13 10:59:00 +0100 | [diff] [blame] | 52 | interface.h ipforward.h irdp.h router-id.h kernel_socket.h \ |
David Lamparter | 285ed0c | 2015-09-15 02:46:53 -0700 | [diff] [blame] | 53 | rt_netlink.h zebra_fpm.h zebra_fpm_private.h \ |
Pradosh Mohapatra | 60cc959 | 2015-11-09 20:21:41 -0500 | [diff] [blame] | 54 | ioctl_solaris.h zebra_rnh.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 55 | |
Avneesh Sachdev | 5779fda | 2016-04-04 10:54:58 -0700 | [diff] [blame] | 56 | zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP) $(Q_FPM_PB_CLIENT_LDOPTS) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 57 | |
David Lamparter | 29ed622 | 2014-06-28 21:42:25 +0200 | [diff] [blame] | 58 | testzebra_LDADD = ../lib/libzebra.la $(LIBCAP) |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 59 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 60 | zebra_DEPENDENCIES = $(otherobj) |
| 61 | |
David Lamparter | 2e5ca49 | 2014-06-28 20:54:31 +0200 | [diff] [blame] | 62 | EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c \ |
David Lamparter | 0f048b9 | 2014-06-28 21:01:32 +0200 | [diff] [blame] | 63 | if_sysctl.c ipforward_proc.c \ |
David Lamparter | 39b233f | 2014-06-28 21:49:18 +0200 | [diff] [blame] | 64 | ipforward_solaris.c ipforward_sysctl.c rt_netlink.c \ |
David Lamparter | 2e5ca49 | 2014-06-28 20:54:31 +0200 | [diff] [blame] | 65 | rt_socket.c rtread_netlink.c rtread_sysctl.c \ |
David Lamparter | 0f048b9 | 2014-06-28 21:01:32 +0200 | [diff] [blame] | 66 | rtread_getmsg.c kernel_socket.c kernel_netlink.c \ |
paul | 19877dd | 2004-05-11 10:49:35 +0000 | [diff] [blame] | 67 | ioctl.c ioctl_solaris.c \ |
paul | edd7c24 | 2003-06-04 13:59:38 +0000 | [diff] [blame] | 68 | GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 69 | |
Paul Jakma | 7a6eec5 | 2014-10-09 10:51:41 +0100 | [diff] [blame] | 70 | client : client_main.o ../lib/libzebra.la |
| 71 | $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 72 | |
paul | 04bd484 | 2003-10-24 04:24:39 +0000 | [diff] [blame] | 73 | quaggaconfdir = $(sysconfdir) |
gdt | d6b72f7 | 2003-12-03 17:24:27 +0000 | [diff] [blame] | 74 | |
| 75 | examplesdir = $(exampledir) |
| 76 | dist_examples_DATA = zebra.conf.sample |