blob: abd3797da237ad21821f4f6ea457561659737ba2 [file] [log] [blame]
Avneesh Sachdev5779fda2016-04-04 10:54:58 -07001include ../common.am
2
paul718e3742002-12-13 20:15:29 +00003## Process this file with automake to produce Makefile.in.
4
David Lamparter237aac52014-06-28 22:23:10 +02005AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
Donald Sharpd1839632015-12-09 08:24:44 -05006DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
paul718e3742002-12-13 20:15:29 +00007INSTALL_SDATA=@INSTALL@ -m 600
8
paulfd6ff2f2003-08-27 06:17:18 +00009LIBCAP = @LIBCAP@
paul718e3742002-12-13 20:15:29 +000010
11ipforward = @IPFORWARD@
12if_method = @IF_METHOD@
paul718e3742002-12-13 20:15:29 +000013rt_method = @RT_METHOD@
14rtread_method = @RTREAD_METHOD@
15kernel_method = @KERNEL_METHOD@
paul19877dd2004-05-11 10:49:35 +000016ioctl_method = @IOCTL_METHOD@
paul718e3742002-12-13 20:15:29 +000017
David Lamparter2e5ca492014-06-28 20:54:31 +020018otherobj = $(ioctl_method) $(ipforward) $(if_method) \
David Lamparter0f048b92014-06-28 21:01:32 +020019 $(rt_method) $(rtread_method) $(kernel_method)
paul718e3742002-12-13 20:15:29 +000020
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000021if HAVE_NETLINK
22othersrc = zebra_fpm_netlink.c
23endif
24
Avneesh Sachdev5779fda2016-04-04 10:54:58 -070025if HAVE_PROTOBUF
26protobuf_srcs = zebra_fpm_protobuf.c
27endif
28
Avneesh Sachdev3bccb4f2016-03-11 12:21:26 -080029if DEV_BUILD
30dev_srcs = zebra_fpm_dt.c
31endif
32
Paul Jakma52c0bc72015-08-20 21:30:17 +010033AM_CFLAGS = $(WERROR)
Paul P Komkoff Jr46bc0e42008-08-13 16:17:04 +010034
paul718e3742002-12-13 20:15:29 +000035sbin_PROGRAMS = zebra
36
Paul Jakma457eb9a2006-07-27 19:59:58 +000037noinst_PROGRAMS = testzebra
38
paul718e3742002-12-13 20:15:29 +000039zebra_SOURCES = \
Paul Jakma7514fb72007-05-02 16:05:35 +000040 zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
hassoca776982004-06-12 14:33:05 +000041 redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000042 irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
Avneesh Sachdev3bccb4f2016-03-11 12:21:26 -080043 $(othersrc) $(protobuf_srcs) $(dev_srcs)
paul718e3742002-12-13 20:15:29 +000044
Paul Jakma457eb9a2006-07-27 19:59:58 +000045testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \
46 zebra_vty.c \
47 kernel_null.c redistribute_null.c ioctl_null.c misc_null.c
48
paul718e3742002-12-13 20:15:29 +000049noinst_HEADERS = \
50 connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
David Lamparter4209a882012-12-13 10:59:00 +010051 interface.h ipforward.h irdp.h router-id.h kernel_socket.h \
David Lamparter285ed0c2015-09-15 02:46:53 -070052 rt_netlink.h zebra_fpm.h zebra_fpm_private.h \
53 ioctl_solaris.h
paul718e3742002-12-13 20:15:29 +000054
Avneesh Sachdev5779fda2016-04-04 10:54:58 -070055zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP) $(Q_FPM_PB_CLIENT_LDOPTS)
paul718e3742002-12-13 20:15:29 +000056
David Lamparter29ed6222014-06-28 21:42:25 +020057testzebra_LDADD = ../lib/libzebra.la $(LIBCAP)
Paul Jakma457eb9a2006-07-27 19:59:58 +000058
paul718e3742002-12-13 20:15:29 +000059zebra_DEPENDENCIES = $(otherobj)
60
David Lamparter2e5ca492014-06-28 20:54:31 +020061EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c \
David Lamparter0f048b92014-06-28 21:01:32 +020062 if_sysctl.c ipforward_proc.c \
David Lamparter39b233f2014-06-28 21:49:18 +020063 ipforward_solaris.c ipforward_sysctl.c rt_netlink.c \
David Lamparter2e5ca492014-06-28 20:54:31 +020064 rt_socket.c rtread_netlink.c rtread_sysctl.c \
David Lamparter0f048b92014-06-28 21:01:32 +020065 rtread_getmsg.c kernel_socket.c kernel_netlink.c \
paul19877dd2004-05-11 10:49:35 +000066 ioctl.c ioctl_solaris.c \
pauledd7c242003-06-04 13:59:38 +000067 GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
paul718e3742002-12-13 20:15:29 +000068
Paul Jakma7a6eec52014-10-09 10:51:41 +010069client : client_main.o ../lib/libzebra.la
70 $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
paul718e3742002-12-13 20:15:29 +000071
paul04bd4842003-10-24 04:24:39 +000072quaggaconfdir = $(sysconfdir)
gdtd6b72f72003-12-03 17:24:27 +000073
74examplesdir = $(exampledir)
75dist_examples_DATA = zebra.conf.sample