Makefile.am 2.1 KB

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