blob: 045897ad75927e0a8950fa3544a4c93f4298f886 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001## Process this file with automake to produce Makefile.in.
2
Vincent Bernat08d7f652012-05-22 22:29:17 +02003INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
paul718e3742002-12-13 20:15:29 +00004DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
5INSTALL_SDATA=@INSTALL@ -m 600
6
paulfd6ff2f2003-08-27 06:17:18 +00007LIBCAP = @LIBCAP@
paul718e3742002-12-13 20:15:29 +00008
9ipforward = @IPFORWARD@
10if_method = @IF_METHOD@
paul718e3742002-12-13 20:15:29 +000011rt_method = @RT_METHOD@
12rtread_method = @RTREAD_METHOD@
13kernel_method = @KERNEL_METHOD@
paul19877dd2004-05-11 10:49:35 +000014ioctl_method = @IOCTL_METHOD@
paul718e3742002-12-13 20:15:29 +000015
David Lamparter2e5ca492014-06-28 20:54:31 +020016otherobj = $(ioctl_method) $(ipforward) $(if_method) \
David Lamparter0f048b92014-06-28 21:01:32 +020017 $(rt_method) $(rtread_method) $(kernel_method)
paul718e3742002-12-13 20:15:29 +000018
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000019if HAVE_NETLINK
20othersrc = zebra_fpm_netlink.c
21endif
22
Paul P Komkoff Jr46bc0e42008-08-13 16:17:04 +010023AM_CFLAGS = $(PICFLAGS)
24AM_LDFLAGS = $(PILDFLAGS)
25
paul718e3742002-12-13 20:15:29 +000026sbin_PROGRAMS = zebra
27
Paul Jakma457eb9a2006-07-27 19:59:58 +000028noinst_PROGRAMS = testzebra
29
paul718e3742002-12-13 20:15:29 +000030zebra_SOURCES = \
Paul Jakma7514fb72007-05-02 16:05:35 +000031 zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
hassoca776982004-06-12 14:33:05 +000032 redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000033 irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
34 $(othersrc)
paul718e3742002-12-13 20:15:29 +000035
Paul Jakma457eb9a2006-07-27 19:59:58 +000036testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \
37 zebra_vty.c \
38 kernel_null.c redistribute_null.c ioctl_null.c misc_null.c
39
paul718e3742002-12-13 20:15:29 +000040noinst_HEADERS = \
41 connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
David Lamparter4209a882012-12-13 10:59:00 +010042 interface.h ipforward.h irdp.h router-id.h kernel_socket.h \
43 rt_netlink.h zebra_fpm.h zebra_fpm_private.h
paul718e3742002-12-13 20:15:29 +000044
David Lamparter29ed6222014-06-28 21:42:25 +020045zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP)
paul718e3742002-12-13 20:15:29 +000046
David Lamparter29ed6222014-06-28 21:42:25 +020047testzebra_LDADD = ../lib/libzebra.la $(LIBCAP)
Paul Jakma457eb9a2006-07-27 19:59:58 +000048
paul718e3742002-12-13 20:15:29 +000049zebra_DEPENDENCIES = $(otherobj)
50
David Lamparter2e5ca492014-06-28 20:54:31 +020051EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c \
David Lamparter0f048b92014-06-28 21:01:32 +020052 if_sysctl.c ipforward_proc.c \
David Lamparter39b233f2014-06-28 21:49:18 +020053 ipforward_solaris.c ipforward_sysctl.c rt_netlink.c \
David Lamparter2e5ca492014-06-28 20:54:31 +020054 rt_socket.c rtread_netlink.c rtread_sysctl.c \
David Lamparter0f048b92014-06-28 21:01:32 +020055 rtread_getmsg.c kernel_socket.c kernel_netlink.c \
paul19877dd2004-05-11 10:49:35 +000056 ioctl.c ioctl_solaris.c \
pauledd7c242003-06-04 13:59:38 +000057 GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
paul718e3742002-12-13 20:15:29 +000058
Paul Jakma7a6eec52014-10-09 10:51:41 +010059client : client_main.o ../lib/libzebra.la
60 $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
paul718e3742002-12-13 20:15:29 +000061
paul04bd4842003-10-24 04:24:39 +000062quaggaconfdir = $(sysconfdir)
gdtd6b72f72003-12-03 17:24:27 +000063
64examplesdir = $(exampledir)
65dist_examples_DATA = zebra.conf.sample