Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ## Process this file with automake to produce Makefile.in.
  2. AM_CPPFLAGS = -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. LIBCAP = @LIBCAP@
  6. ipforward = @IPFORWARD@
  7. if_method = @IF_METHOD@
  8. rt_method = @RT_METHOD@
  9. rtread_method = @RTREAD_METHOD@
  10. kernel_method = @KERNEL_METHOD@
  11. ioctl_method = @IOCTL_METHOD@
  12. otherobj = $(ioctl_method) $(ipforward) $(if_method) \
  13. $(rt_method) $(rtread_method) $(kernel_method)
  14. if HAVE_NETLINK
  15. othersrc = zebra_fpm_netlink.c
  16. endif
  17. AM_CFLAGS = $(WERROR)
  18. sbin_PROGRAMS = zebra
  19. noinst_PROGRAMS = testzebra
  20. zebra_SOURCES = \
  21. zserv.c main.c interface.c connected.c zebra_rib.c zebra_routemap.c \
  22. redistribute.c debug.c rtadv.c zebra_snmp.c zebra_vty.c \
  23. irdp_main.c irdp_interface.c irdp_packet.c router-id.c zebra_fpm.c \
  24. $(othersrc)
  25. testzebra_SOURCES = test_main.c zebra_rib.c interface.c connected.c debug.c \
  26. zebra_vty.c \
  27. kernel_null.c redistribute_null.c ioctl_null.c misc_null.c
  28. noinst_HEADERS = \
  29. connected.h ioctl.h rib.h rt.h zserv.h redistribute.h debug.h rtadv.h \
  30. interface.h ipforward.h irdp.h router-id.h kernel_socket.h \
  31. rt_netlink.h zebra_fpm.h zebra_fpm_private.h \
  32. ioctl_solaris.h
  33. zebra_LDADD = $(otherobj) ../lib/libzebra.la $(LIBCAP)
  34. testzebra_LDADD = ../lib/libzebra.la $(LIBCAP)
  35. zebra_DEPENDENCIES = $(otherobj)
  36. EXTRA_DIST = if_ioctl.c if_ioctl_solaris.c if_netlink.c \
  37. if_sysctl.c ipforward_proc.c \
  38. ipforward_solaris.c ipforward_sysctl.c rt_netlink.c \
  39. rt_socket.c rtread_netlink.c rtread_sysctl.c \
  40. rtread_getmsg.c kernel_socket.c kernel_netlink.c \
  41. ioctl.c ioctl_solaris.c \
  42. GNOME-SMI GNOME-PRODUCT-ZEBRA-MIB
  43. client : client_main.o ../lib/libzebra.la
  44. $(CC) -g -o client client_main.o ../liblzebra.la $(LIBS) $(LIB_IPV6)
  45. quaggaconfdir = $(sysconfdir)
  46. examplesdir = $(exampledir)
  47. dist_examples_DATA = zebra.conf.sample