Makefile.am 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 corosync-qnetd-tool \
  35. corosync-qdevice-tool
  36. sbin_SCRIPTS = corosync-qnetd-certutil corosync-qdevice-net-certutil
  37. EXTRA_DIST = corosync-qdevice-net-certutil.sh corosync-qnetd-certutil.sh
  38. corosync_qnetd_SOURCES = corosync-qnetd.c \
  39. dynar.c dynar.h msg.c msg.h msgio.c msgio.h \
  40. nss-sock.c nss-sock.h qnetd-client.c qnetd-client.h \
  41. qnetd-client-list.c qnetd-client-list.h qnetd-log.c qnetd-log.h \
  42. pr-poll-array.c pr-poll-array.h timer-list.c timer-list.h tlv.c tlv.h \
  43. send-buffer-list.c send-buffer-list.h node-list.c node-list.h \
  44. qnetd-algo-test.c qnetd-algo-test.h qnetd-algorithm.c qnetd-algorithm.h \
  45. qnetd-algo-utils.c qnetd-algo-utils.h \
  46. qnetd-algo-ffsplit.c qnetd-algo-ffsplit.h \
  47. qnetd-cluster-list.c qnetd-cluster-list.h \
  48. qnetd-client-send.c qnetd-client-send.h \
  49. qnetd-algo-2nodelms.c qnetd-algo-2nodelms.h qnetd-algo-lms.c qnetd-algo-lms.h \
  50. utils.c utils.h qnetd-instance.c qnetd-instance.h \
  51. qnetd-client-net.c qnetd-client-net.h \
  52. qnetd-client-msg-received.c qnetd-client-msg-received.h \
  53. qnetd-log-debug.c qnetd-log-debug.h \
  54. qnetd-client-algo-timer.c qnetd-client-algo-timer.h \
  55. qnetd-dpd-timer.c qnetd-dpd-timer.h \
  56. qnetd-ipc.c qnetd-ipc.h unix-socket-ipc.c unix-socket-ipc.h \
  57. dynar-simple-lex.c dynar-simple-lex.h dynar-str.c dynar-str.h \
  58. unix-socket-client.c unix-socket-client.h \
  59. unix-socket-client-list.c unix-socket-client-list.h \
  60. unix-socket.c unix-socket.h qnetd-ipc-cmd.c qnetd-ipc-cmd.h \
  61. qnetd-poll-array-user-data.h qnet-config.h dynar-getopt-lex.c \
  62. dynar-getopt-lex.h qnetd-advanced-settings.c
  63. corosync_qdevice_SOURCES = corosync-qdevice.c \
  64. qdevice-cmap.c qdevice-cmap.h \
  65. qdevice-instance.c qdevice-instance.h node-list.c node-list.h \
  66. utils.c utils.h qdevice-log.c qdevice-log.h \
  67. qdevice-log-debug.c qdevice-log-debug.h \
  68. qdevice-votequorum.c qdevice-votequorum.h \
  69. qdevice-model.c qdevice-model.h qdevice-model-net.c qdevice-model-net.h \
  70. qdevice-net-instance.c qdevice-net-instance.h dynar.c dynar.h \
  71. send-buffer-list.c send-buffer-list.h timer-list.c timer-list.h \
  72. msg.c msg.h msgio.c msgio.h nss-sock.c nss-sock.h tlv.c tlv.h \
  73. unix-socket.c unix-socket.h unix-socket-client.c unix-socket-client.h \
  74. unix-socket-client-list.c unix-socket-client-list.h \
  75. unix-socket-ipc.c unix-socket-ipc.h qdevice-ipc.c qdevice-ipc.h \
  76. pr-poll-array.c pr-poll-array.h dynar-simple-lex.c dynar-simple-lex.h \
  77. dynar-str.c dynar-str.h qdevice-ipc-cmd.c qdevice-ipc-cmd.h \
  78. qdevice-net-ipc-cmd.c qdevice-net-ipc-cmd.h \
  79. qdevice-net-poll.c qdevice-net-poll.h \
  80. qdevice-net-send.c qdevice-net-send.h \
  81. qdevice-net-votequorum.c qdevice-net-votequorum.h \
  82. qdevice-net-socket.c qdevice-net-socket.h \
  83. qdevice-net-nss.c qdevice-net-nss.h \
  84. qdevice-net-msg-received.c qdevice-net-msg-received.h \
  85. qdevice-net-cast-vote-timer.c qdevice-net-cast-vote-timer.h \
  86. qdevice-net-echo-request-timer.c qdevice-net-echo-request-timer.h \
  87. qdevice-net-algorithm.c qdevice-net-algorithm.h \
  88. qdevice-net-algo-test.c qdevice-net-algo-test.h \
  89. qdevice-net-algo-ffsplit.c qdevice-net-algo-ffsplit.h \
  90. qdevice-net-algo-2nodelms.c qdevice-net-algo-2nodelms.h \
  91. qdevice-net-algo-lms.c qdevice-net-algo-lms.h \
  92. qdevice-net-poll-array-user-data.h \
  93. qdevice-config.h qnet-config.h qdevice-net-disconnect-reason.h \
  94. qdevice-model-type.h qdevice-advanced-settings.c \
  95. qdevice-advanced-settings.h dynar-getopt-lex.c dynar-getopt-lex.h
  96. corosync_qnetd_tool_SOURCES = corosync-qnetd-tool.c unix-socket.c unix-socket.h dynar.c dynar.h \
  97. dynar-str.c dynar-str.h
  98. corosync_qdevice_tool_SOURCES = corosync-qdevice-tool.c unix-socket.c unix-socket.h dynar.c dynar.h \
  99. dynar-str.c dynar-str.h
  100. corosync_qnetd_CFLAGS = $(nss_CFLAGS)
  101. corosync_qnetd_LDADD = $(nss_LIBS)
  102. corosync_qdevice_CFLAGS = $(nss_CFLAGS)
  103. corosync_qdevice_LDADD = $(nss_LIBS) $(LIBQB_LIBS) $(top_builddir)/lib/libcmap.la \
  104. $(top_builddir)/lib/libvotequorum.la
  105. corosync-qnetd-certutil: corosync-qnetd-certutil.sh
  106. sed -e 's#@''DATADIR@#${datadir}#g' \
  107. -e 's#@''BASHPATH@#${BASHPATH}#g' \
  108. -e 's#@''COROSYSCONFDIR@#${COROSYSCONFDIR}#g' \
  109. $< > $@
  110. corosync-qdevice-net-certutil: corosync-qdevice-net-certutil.sh
  111. sed -e 's#@''DATADIR@#${datadir}#g' \
  112. -e 's#@''BASHPATH@#${BASHPATH}#g' \
  113. -e 's#@''COROSYSCONFDIR@#${COROSYSCONFDIR}#g' \
  114. $< > $@
  115. TESTS = qnetd-cluster-list.test dynar.test dynar-simple-lex.test \
  116. dynar-getopt-lex.test
  117. check_PROGRAMS = qnetd-cluster-list.test dynar.test dynar-simple-lex.test \
  118. dynar-getopt-lex.test
  119. qnetd_cluster_list_test_SOURCES = qnetd-cluster-list.c test-qnetd-cluster-list.c \
  120. qnetd-client-list.c qnetd-client.c dynar.c node-list.c \
  121. send-buffer-list.c
  122. qnetd_cluster_list_test_CFLAGS = $(nss_CFLAGS)
  123. qnetd_cluster_list_test_LDADD = $(nss_LIBS)
  124. dynar_test_SOURCES = test-dynar.c dynar.c dynar-str.c
  125. dynar_simple_lex_test_SOURCES = test-dynar-simple-lex.c dynar.c dynar-str.c dynar-simple-lex.c
  126. dynar_getopt_lex_test_SOURCES = test-dynar-getopt-lex.c dynar.c dynar-str.c dynar-getopt-lex.c
  127. endif