Makefile.am 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. qnetd-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
  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. qdevice-net-poll.c qdevice-net-send.c qdevice-net-votequorum.c \
  51. qdevice-net-socket.c qdevice-net-nss.c qdevice-net-msg-received.c \
  52. qdevice-net-cast-vote-timer.c qdevice-net-echo-request-timer.c \
  53. qdevice-net-algorithm.c \
  54. qdevice-net-algo-test.c qdevice-net-algo-ffsplit.c \
  55. qdevice-net-algo-2nodelms.c qdevice-net-algo-lms.c
  56. corosync_qnetd_CFLAGS = $(nss_CFLAGS)
  57. corosync_qnetd_LDADD = $(nss_LIBS)
  58. corosync_qdevice_CFLAGS = $(nss_CFLAGS)
  59. corosync_qdevice_LDADD = $(nss_LIBS) $(LIBQB_LIBS) $(top_builddir)/lib/libcmap.la \
  60. $(top_builddir)/lib/libvotequorum.la
  61. corosync-qnetd-certutil: corosync-qnetd-certutil.sh
  62. sed -e 's#@''DATADIR@#${datadir}#g' \
  63. -e 's#@''BASHPATH@#${BASHPATH}#g' \
  64. -e 's#@''COROSYSCONFDIR@#${COROSYSCONFDIR}#g' \
  65. $< > $@
  66. TESTS = qnetd-cluster-list.test
  67. check_PROGRAMS = qnetd-cluster-list.test
  68. qnetd_cluster_list_test_SOURCES = qnetd-cluster-list.c test-qnetd-cluster-list.c \
  69. qnetd-client-list.c qnetd-client.c dynar.c node-list.c \
  70. send-buffer-list.c
  71. qnetd_cluster_list_test_CFLAGS = $(nss_CFLAGS)
  72. qnetd_cluster_list_test_LDADD = $(nss_LIBS)
  73. endif