blob: ce5646727910aaf22eba358ba2efaaed0292f7a4 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001## Process this file with automake to produce Makefile.in.
2
3INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
4DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
5INSTALL_SDATA=@INSTALL@ -m 600
6
7LIB_IPV6 = @LIB_IPV6@
8
9ipforward = @IPFORWARD@
10if_method = @IF_METHOD@
11if_proc = @IF_PROC@
12rt_method = @RT_METHOD@
13rtread_method = @RTREAD_METHOD@
14kernel_method = @KERNEL_METHOD@
15other_method = @OTHER_METHOD@
pauledd7c242003-06-04 13:59:38 +000016libcap = @LIBCAP@
paul718e3742002-12-13 20:15:29 +000017
18otherobj = $(ipforward) $(if_method) $(if_proc) $(rt_method) \
pauledd7c242003-06-04 13:59:38 +000019 $(rtread_method) $(kernel_method) $(other_method) $(libcap)
paul718e3742002-12-13 20:15:29 +000020
21sbin_PROGRAMS = zebra
22
23zebra_SOURCES = \
24 zserv.c main.c interface.c connected.c ioctl.c zebra_rib.c \
25 redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c
26
27noinst_HEADERS = \
28 connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
pauledd7c242003-06-04 13:59:38 +000029 interface.h ipforward.h
paul718e3742002-12-13 20:15:29 +000030
31zebra_LDADD = ../lib/libzebra.a $(otherobj) $(LIB_IPV6)
32
33zebra_DEPENDENCIES = $(otherobj)
34
35sysconf_DATA = zebra.conf.sample
36
37EXTRA_DIST = $(sysconf_DATA) if_ioctl.c if_netlink.c if_proc.c if_sysctl.c \
38 ipforward_aix.c ipforward_ews.c ipforward_proc.c \
39 ipforward_solaris.c ipforward_sysctl.c rt_ioctl.c rt_netlink.c \
40 rt_socket.c rtread_netlink.c rtread_proc.c rtread_sysctl.c \
41 rtread_getmsg.c kernel_socket.c kernel_netlink.c mtu_kvm.c \
pauledd7c242003-06-04 13:59:38 +000042 GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
paul718e3742002-12-13 20:15:29 +000043
44#client : client_main.o ../lib/libzebra.a
45# $(CC) -g -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6)
46
47install-sysconfDATA: $(sysconf_DATA)
48 @$(NORMAL_INSTALL)
49 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
50 @list='$(sysconf_DATA)'; for p in $$list; do \
51 if test -f $(srcdir)/$$p; then \
52 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
53 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
54 else if test -f $$p; then \
55 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
56 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
57 fi; fi; \
58 done