blob: 6214767de96eb715afa96ae4ef2e28a2c772e408 [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@
16
17otherobj = $(ipforward) $(if_method) $(if_proc) $(rt_method) \
18 $(rtread_method) $(kernel_method) $(other_method)
19
20sbin_PROGRAMS = zebra
21
22zebra_SOURCES = \
23 zserv.c main.c interface.c connected.c ioctl.c zebra_rib.c \
24 redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c
25
26noinst_HEADERS = \
27 connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
28 interface.h ipforward.h irdp.h
29
30zebra_LDADD = ../lib/libzebra.a $(otherobj) $(LIB_IPV6)
31
32zebra_DEPENDENCIES = $(otherobj)
33
34sysconf_DATA = zebra.conf.sample
35
36EXTRA_DIST = $(sysconf_DATA) if_ioctl.c if_netlink.c if_proc.c if_sysctl.c \
37 ipforward_aix.c ipforward_ews.c ipforward_proc.c \
38 ipforward_solaris.c ipforward_sysctl.c rt_ioctl.c rt_netlink.c \
39 rt_socket.c rtread_netlink.c rtread_proc.c rtread_sysctl.c \
40 rtread_getmsg.c kernel_socket.c kernel_netlink.c mtu_kvm.c \
41 GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB irdp.c
42
43#client : client_main.o ../lib/libzebra.a
44# $(CC) -g -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6)
45
46install-sysconfDATA: $(sysconf_DATA)
47 @$(NORMAL_INSTALL)
48 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
49 @list='$(sysconf_DATA)'; for p in $$list; do \
50 if test -f $(srcdir)/$$p; then \
51 echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
52 $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
53 else if test -f $$p; then \
54 echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
55 $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
56 fi; fi; \
57 done