Makefile.am 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. AUTOMAKE_OPTIONS = dejagnu
  2. DEJATOOL = libzebra
  3. SUBDIRS = \
  4. bgpd.tests \
  5. libzebra.tests
  6. EXTRA_DIST = \
  7. config/unix.exp \
  8. lib/bgpd.exp \
  9. lib/libzebra.exp \
  10. global-conf.exp
  11. INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
  12. DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
  13. AM_CFLAGS = $(PICFLAGS)
  14. AM_LDFLAGS = $(PILDFLAGS)
  15. if BGPD
  16. TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
  17. DEJATOOL += bgpd
  18. else
  19. TESTS_BGPD =
  20. endif
  21. check_PROGRAMS = testsig testbuffer testmemory heavy heavywq heavythread \
  22. testprivs teststream testchecksum tabletest testnexthopiter \
  23. $(TESTS_BGPD)
  24. noinst_HEADERS = prng.h
  25. testsig_SOURCES = test-sig.c
  26. testbuffer_SOURCES = test-buffer.c
  27. testmemory_SOURCES = test-memory.c
  28. testprivs_SOURCES = test-privs.c
  29. teststream_SOURCES = test-stream.c
  30. heavy_SOURCES = heavy.c main.c
  31. heavywq_SOURCES = heavy-wq.c main.c
  32. heavythread_SOURCES = heavy-thread.c main.c
  33. aspathtest_SOURCES = aspath_test.c
  34. testbgpcap_SOURCES = bgp_capability_test.c
  35. ecommtest_SOURCES = ecommunity_test.c
  36. testbgpmpattr_SOURCES = bgp_mp_attr_test.c
  37. testchecksum_SOURCES = test-checksum.c
  38. testbgpmpath_SOURCES = bgp_mpath_test.c
  39. tabletest_SOURCES = table_test.c
  40. testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
  41. testsig_LDADD = ../lib/libzebra.la @LIBCAP@
  42. testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
  43. testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
  44. testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
  45. teststream_LDADD = ../lib/libzebra.la @LIBCAP@
  46. heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  47. heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  48. heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  49. aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  50. testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  51. ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  52. testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  53. testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
  54. testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  55. tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  56. testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@