blob: 0591a555c87b5b48f12fa3bde28bc270dcefe44e [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
7LIB_IPV6 = @LIB_IPV6@
paulfd6ff2f2003-08-27 06:17:18 +00008LIBCAP = @LIBCAP@
paul718e3742002-12-13 20:15:29 +00009
10ipforward = @IPFORWARD@
11if_method = @IF_METHOD@
12if_proc = @IF_PROC@
13rt_method = @RT_METHOD@
14rtread_method = @RTREAD_METHOD@
15kernel_method = @KERNEL_METHOD@
16other_method = @OTHER_METHOD@
paul19877dd2004-05-11 10:49:35 +000017ioctl_method = @IOCTL_METHOD@
paul718e3742002-12-13 20:15:29 +000018
paul19877dd2004-05-11 10:49:35 +000019otherobj = $(ioctl_method) $(ipforward) $(if_method) $(if_proc) \
20 $(rt_method) $(rtread_method) $(kernel_method) $(other_method)
paul718e3742002-12-13 20:15:29 +000021
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000022if HAVE_NETLINK
23othersrc = zebra_fpm_netlink.c
24endif
25
Paul P Komkoff Jr46bc0e42008-08-13 16:17:04 +010026AM_CFLAGS = $(PICFLAGS)
27AM_LDFLAGS = $(PILDFLAGS)
28
paul718e3742002-12-13 20:15:29 +000029sbin_PROGRAMS = zebra
30
Paul Jakma457eb9a2006-07-27 19:59:58 +000031noinst_PROGRAMS = testzebra
32
paul718e3742002-12-13 20:15:29 +000033zebra_SOURCES = \
Paul Jakma7514fb72007-05-02 16:05:35 +000034 zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
hassoca776982004-06-12 14:33:05 +000035 redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000036 irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
37 $(othersrc)
paul718e3742002-12-13 20:15:29 +000038
Paul Jakma457eb9a2006-07-27 19:59:58 +000039testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \
40 zebra_vty.c \
41 kernel_null.c redistribute_null.c ioctl_null.c misc_null.c
42
paul718e3742002-12-13 20:15:29 +000043noinst_HEADERS = \
44 connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
David Lamparter4209a882012-12-13 10:59:00 +010045 interface.h ipforward.h irdp.h router-id.h kernel_socket.h \
46 rt_netlink.h zebra_fpm.h zebra_fpm_private.h
paul718e3742002-12-13 20:15:29 +000047
Avneesh Sachdevd1d3ac92012-10-04 16:21:34 +000048zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP) $(LIB_IPV6)
paul718e3742002-12-13 20:15:29 +000049
Avneesh Sachdevd1d3ac92012-10-04 16:21:34 +000050testzebra_LDADD = ../lib/libzebra.la $(LIBCAP) $(LIB_IPV6)
Paul Jakma457eb9a2006-07-27 19:59:58 +000051
paul718e3742002-12-13 20:15:29 +000052zebra_DEPENDENCIES = $(otherobj)
53
paul19877dd2004-05-11 10:49:35 +000054EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c if_proc.c \
55 if_sysctl.c ipforward_aix.c ipforward_ews.c ipforward_proc.c \
paul718e3742002-12-13 20:15:29 +000056 ipforward_solaris.c ipforward_sysctl.c rt_ioctl.c rt_netlink.c \
57 rt_socket.c rtread_netlink.c rtread_proc.c rtread_sysctl.c \
58 rtread_getmsg.c kernel_socket.c kernel_netlink.c mtu_kvm.c \
paul19877dd2004-05-11 10:49:35 +000059 ioctl.c ioctl_solaris.c \
pauledd7c242003-06-04 13:59:38 +000060 GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
paul718e3742002-12-13 20:15:29 +000061
Paul Jakma7a6eec52014-10-09 10:51:41 +010062client : client_main.o ../lib/libzebra.la
63 $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
paul718e3742002-12-13 20:15:29 +000064
paul04bd4842003-10-24 04:24:39 +000065quaggaconfdir = $(sysconfdir)
gdtd6b72f72003-12-03 17:24:27 +000066
67examplesdir = $(exampledir)
68dist_examples_DATA = zebra.conf.sample