Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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-net
  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. corosync_qdevice_net_SOURCES = corosync-qdevice-net.c dynar.c msg.c msgio.c nss-sock.c \
  44. qnetd-client.c qnetd-client-list.c qnetd-log.c \
  45. qnetd-poll-array.c timer-list.c tlv.c send-buffer-list.c \
  46. node-list.c qdevice-net-send.c qdevice-net-cmap.c \
  47. qdevice-net-votequorum.c qdevice-net-instance.c \
  48. qdevice-net-cast-vote-timer.c utils.c qdevice-net-algorithm.c \
  49. qdevice-net-algo-test.c qdevice-net-algo-ffsplit.c \
  50. qdevice-net-algo-2nodelms.c qdevice-net-algo-lms.c
  51. corosync_qnetd_CFLAGS = $(nss_CFLAGS)
  52. corosync_qnetd_LDADD = $(nss_LIBS)
  53. corosync_qdevice_net_CFLAGS = $(nss_CFLAGS)
  54. corosync_qdevice_net_LDADD = $(nss_LIBS) $(LIBQB_LIBS) $(top_builddir)/lib/libcmap.la \
  55. $(top_builddir)/lib/libvotequorum.la
  56. corosync-qnetd-certutil: corosync-qnetd-certutil.sh
  57. sed -e 's#@''DATADIR@#${datadir}#g' \
  58. -e 's#@''BASHPATH@#${BASHPATH}#g' \
  59. -e 's#@''COROSYSCONFDIR@#${COROSYSCONFDIR}#g' \
  60. $< > $@
  61. TESTS = qnetd-cluster-list.test
  62. check_PROGRAMS = qnetd-cluster-list.test
  63. qnetd_cluster_list_test_SOURCES = qnetd-cluster-list.c test-qnetd-cluster-list.c \
  64. qnetd-client-list.c qnetd-client.c dynar.c node-list.c \
  65. send-buffer-list.c
  66. qnetd_cluster_list_test_CFLAGS = $(nss_CFLAGS)
  67. qnetd_cluster_list_test_LDADD = $(nss_LIBS)
  68. endif