Makefile.am 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. EXTRA_DIST = README.md unit-tests.sh LICENSE
  2. noinst_PROGRAMS = \
  3. bandwidth-server-one \
  4. bandwidth-server-many-up \
  5. bandwidth-client \
  6. random-test-server \
  7. random-test-client \
  8. unit-test-server \
  9. unit-test-client \
  10. version
  11. common_ldflags = \
  12. $(top_builddir)/src/libmodbus.la
  13. bandwidth_server_one_SOURCES = bandwidth-server-one.c
  14. bandwidth_server_one_LDADD = $(common_ldflags)
  15. bandwidth_server_many_up_SOURCES = bandwidth-server-many-up.c
  16. bandwidth_server_many_up_LDADD = $(common_ldflags)
  17. bandwidth_client_SOURCES = bandwidth-client.c
  18. bandwidth_client_LDADD = $(common_ldflags)
  19. random_test_server_SOURCES = random-test-server.c
  20. random_test_server_LDADD = $(common_ldflags)
  21. random_test_client_SOURCES = random-test-client.c
  22. random_test_client_LDADD = $(common_ldflags)
  23. unit_test_server_SOURCES = unit-test-server.c unit-test.h
  24. unit_test_server_LDADD = $(common_ldflags)
  25. unit_test_client_SOURCES = unit-test-client.c unit-test.h
  26. unit_test_client_LDADD = $(common_ldflags)
  27. version_SOURCES = version.c
  28. version_LDADD = $(common_ldflags)
  29. AM_CPPFLAGS = \
  30. -include $(top_builddir)/config.h \
  31. -DSYSCONFDIR=\""$(sysconfdir)"\" \
  32. -DLIBEXECDIR=\""$(libexecdir)"\" \
  33. -I${top_srcdir}/src \
  34. -I${top_builddir}/src
  35. AM_CFLAGS = ${my_CFLAGS}
  36. CLEANFILES = *~ *.log
  37. noinst_SCRIPTS=unit-tests.sh
  38. TESTS=./unit-tests.sh