1# 2# heartbeat: Linux-HA heartbeat code 3# 4# Copyright (C) 2001 Michael Moerz 5# 6# This program is free software; you can redistribute it and/or 7# modify it under the terms of the GNU General Public License 8# as published by the Free Software Foundation; either version 2 9# of the License, or (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19# 20MAINTAINERCLEANFILES = Makefile.in 21 22SUBDIRS = ocft 23 24AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include 25 26halibdir = $(libexecdir)/heartbeat 27 28EXTRA_DIST = ocf-tester.8 sfex_init.8 29 30sbin_PROGRAMS = 31sbin_SCRIPTS = ocf-tester 32halib_PROGRAMS = findif \ 33 storage_mon 34 35man8_MANS = ocf-tester.8 36 37if BUILD_SFEX 38halib_PROGRAMS += sfex_daemon 39sbin_PROGRAMS += sfex_init sfex_stat 40man8_MANS += sfex_init.8 41endif 42 43if USE_LIBNET 44halib_PROGRAMS += send_arp 45send_arp_SOURCES = send_arp.libnet.c 46send_arp_CFLAGS = @LIBNETDEFINES@ 47send_arp_LDADD = $(GLIBLIB) -lplumb @LIBNETLIBS@ 48else 49 50if SENDARP_LINUX 51halib_PROGRAMS += send_arp 52send_arp_SOURCES = send_arp.linux.c 53endif 54 55endif 56 57sfex_daemon_SOURCES = sfex_daemon.c sfex.h sfex_lib.c sfex_lib.h 58sfex_daemon_CFLAGS = -D_GNU_SOURCE 59sfex_daemon_LDADD = $(GLIBLIB) -lplumb -lplumbgpl 60 61sfex_init_SOURCES = sfex_init.c sfex.h sfex_lib.c sfex_lib.h 62sfex_init_CFLAGS = -D_GNU_SOURCE 63sfex_init_LDADD = $(GLIBLIB) -lplumb -lplumbgpl 64 65sfex_stat_SOURCES = sfex_stat.c sfex.h sfex_lib.c sfex_lib.h 66sfex_stat_CFLAGS = -D_GNU_SOURCE 67sfex_stat_LDADD = $(GLIBLIB) -lplumb -lplumbgpl 68 69findif_SOURCES = findif.c 70 71storage_mon_SOURCES = storage_mon.c 72 73if BUILD_TICKLE 74halib_PROGRAMS += tickle_tcp 75tickle_tcp_SOURCES = tickle_tcp.c 76endif 77 78.PHONY: install-exec-hook 79