paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame^] | 1 | ## Process this file with automake to produce Makefile.in. |
| 2 | |
| 3 | INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib |
| 4 | DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@ |
| 5 | INSTALL_SDATA=@INSTALL@ -m 600 |
| 6 | |
| 7 | LIB_IPV6 = @LIB_IPV6@ |
| 8 | |
| 9 | ipforward = @IPFORWARD@ |
| 10 | if_method = @IF_METHOD@ |
| 11 | if_proc = @IF_PROC@ |
| 12 | rt_method = @RT_METHOD@ |
| 13 | rtread_method = @RTREAD_METHOD@ |
| 14 | kernel_method = @KERNEL_METHOD@ |
| 15 | other_method = @OTHER_METHOD@ |
| 16 | |
| 17 | otherobj = $(ipforward) $(if_method) $(if_proc) $(rt_method) \ |
| 18 | $(rtread_method) $(kernel_method) $(other_method) |
| 19 | |
| 20 | sbin_PROGRAMS = zebra |
| 21 | |
| 22 | zebra_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 | |
| 26 | noinst_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 | |
| 30 | zebra_LDADD = ../lib/libzebra.a $(otherobj) $(LIB_IPV6) |
| 31 | |
| 32 | zebra_DEPENDENCIES = $(otherobj) |
| 33 | |
| 34 | sysconf_DATA = zebra.conf.sample |
| 35 | |
| 36 | EXTRA_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 | |
| 46 | install-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 |