Makefile.am 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ## Process this file with automake to produce Makefile.in.
  2. INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
  3. DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DMULTIPATH_NUM=@MULTIPATH_NUM@
  4. INSTALL_SDATA=@INSTALL@ -m 600
  5. LIB_IPV6 = @LIB_IPV6@
  6. LIBCAP = @LIBCAP@
  7. ipforward = @IPFORWARD@
  8. if_method = @IF_METHOD@
  9. if_proc = @IF_PROC@
  10. rt_method = @RT_METHOD@
  11. rtread_method = @RTREAD_METHOD@
  12. kernel_method = @KERNEL_METHOD@
  13. other_method = @OTHER_METHOD@
  14. ioctl_method = @IOCTL_METHOD@
  15. otherobj = $(ioctl_method) $(ipforward) $(if_method) $(if_proc) \
  16. $(rt_method) $(rtread_method) $(kernel_method) $(other_method)
  17. if HAVE_NETLINK
  18. othersrc = zebra_fpm_netlink.c
  19. endif
  20. AM_CFLAGS = $(PICFLAGS)
  21. AM_LDFLAGS = $(PILDFLAGS)
  22. sbin_PROGRAMS = zebra
  23. noinst_PROGRAMS = testzebra
  24. zebra_SOURCES = \
  25. zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
  26. redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
  27. irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
  28. $(othersrc)
  29. testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \
  30. zebra_vty.c \
  31. kernel_null.c redistribute_null.c ioctl_null.c misc_null.c
  32. noinst_HEADERS = \
  33. connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
  34. interface.h ipforward.h irdp.h router-id.h kernel_socket.h \
  35. rt_netlink.h zebra_fpm.h zebra_fpm_private.h
  36. zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP) $(LIB_IPV6)
  37. testzebra_LDADD = ../lib/libzebra.la $(LIBCAP) $(LIB_IPV6)
  38. zebra_DEPENDENCIES = $(otherobj)
  39. EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c if_proc.c \
  40. if_sysctl.c ipforward_aix.c ipforward_ews.c ipforward_proc.c \
  41. ipforward_solaris.c ipforward_sysctl.c rt_ioctl.c rt_netlink.c \
  42. rt_socket.c rtread_netlink.c rtread_proc.c rtread_sysctl.c \
  43. rtread_getmsg.c kernel_socket.c kernel_netlink.c mtu_kvm.c \
  44. ioctl.c ioctl_solaris.c \
  45. GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
  46. #client : client_main.o ../lib/libzebra.la
  47. # $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
  48. quaggaconfdir = $(sysconfdir)
  49. examplesdir = $(exampledir)
  50. dist_examples_DATA = zebra.conf.sample