Makefile.am 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Copyright (c) 2012-2016 Red Hat, Inc.
  2. #
  3. # Authors: Fabio M. Di Nitto (fdinitto@redhat.com)
  4. # Jan Friesse (jfriesse@redhat.com)
  5. #
  6. # This software licensed under BSD license, the text of which follows:
  7. #
  8. # Redistribution and use in source and binary forms, with or without
  9. # modification, are permitted provided that the following conditions are met:
  10. #
  11. # - Redistributions of source code must retain the above copyright notice,
  12. # this list of conditions and the following disclaimer.
  13. # - Redistributions in binary form must reproduce the above copyright notice,
  14. # this list of conditions and the following disclaimer in the documentation
  15. # and/or other materials provided with the distribution.
  16. # - Neither the name of the MontaVista Software, Inc. nor the names of its
  17. # contributors may be used to endorse or promote products derived from this
  18. # software without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  24. # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  30. # THE POSSIBILITY OF SUCH DAMAGE.
  31. MAINTAINERCLEANFILES = Makefile.in
  32. if BUILD_QDEVICES
  33. SUBDIRS =
  34. sbin_PROGRAMS = corosync-qnetd corosync-qdevice
  35. sbin_SCRIPTS = corosync-qnetd-certutil
  36. corosync_qnetd_SOURCES = corosync-qnetd.c dynar.c msg.c msgio.c nss-sock.c \
  37. qnetd-client.c qnetd-client-list.c qnetd-log.c \
  38. pr-poll-array.c timer-list.c tlv.c send-buffer-list.c \
  39. node-list.c qnetd-algo-test.c qnetd-algorithm.c qnetd-algo-utils.c \
  40. qnetd-algo-ffsplit.c qnetd-cluster-list.c qnetd-client-send.c \
  41. qnetd-algo-2nodelms.c qnetd-algo-lms.c utils.c qnetd-instance.c \
  42. qnetd-client-net.c qnetd-client-msg-received.c qnetd-log-debug.c \
  43. qnetd-client-algo-timer.c qnetd-dpd-timer.c
  44. corosync_qdevice_SOURCES = corosync-qdevice.c qdevice-cmap.c qdevice-instance.c node-list.c \
  45. utils.c qdevice-log.c qdevice-log-debug.c qdevice-votequorum.c \
  46. qdevice-model.c \
  47. qdevice-model-net.c \
  48. qdevice-net-instance.c dynar.c send-buffer-list.c timer-list.c \
  49. msg.c msgio.c nss-sock.c tlv.c \
  50. unix-socket.c unix-socket-client.c unix-socket-client-list.c \
  51. unix-socket-ipc.c qdevice-ipc.c pr-poll-array.c dynar-simple-lex.c \
  52. qdevice-net-poll.c qdevice-net-send.c qdevice-net-votequorum.c \
  53. qdevice-net-socket.c qdevice-net-nss.c qdevice-net-msg-received.c \
  54. qdevice-net-cast-vote-timer.c qdevice-net-echo-request-timer.c \
  55. qdevice-net-algorithm.c \
  56. qdevice-net-algo-test.c qdevice-net-algo-ffsplit.c \
  57. qdevice-net-algo-2nodelms.c qdevice-net-algo-lms.c
  58. corosync_qnetd_CFLAGS = $(nss_CFLAGS)
  59. corosync_qnetd_LDADD = $(nss_LIBS)
  60. corosync_qdevice_CFLAGS = $(nss_CFLAGS)
  61. corosync_qdevice_LDADD = $(nss_LIBS) $(LIBQB_LIBS) $(top_builddir)/lib/libcmap.la \
  62. $(top_builddir)/lib/libvotequorum.la
  63. corosync-qnetd-certutil: corosync-qnetd-certutil.sh
  64. sed -e 's#@''DATADIR@#${datadir}#g' \
  65. -e 's#@''BASHPATH@#${BASHPATH}#g' \
  66. -e 's#@''COROSYSCONFDIR@#${COROSYSCONFDIR}#g' \
  67. $< > $@
  68. TESTS = qnetd-cluster-list.test
  69. check_PROGRAMS = qnetd-cluster-list.test
  70. qnetd_cluster_list_test_SOURCES = qnetd-cluster-list.c test-qnetd-cluster-list.c \
  71. qnetd-client-list.c qnetd-client.c dynar.c node-list.c \
  72. send-buffer-list.c
  73. qnetd_cluster_list_test_CFLAGS = $(nss_CFLAGS)
  74. qnetd_cluster_list_test_LDADD = $(nss_LIBS)
  75. endif