2
# Stonith: Shoot The Node In The Head
4
# Copyright (C) 2001 Alan Robertson
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.
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.
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.
20
MAINTAINERCLEANFILES = Makefile.in
22
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
23
-I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
24
-I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl
27
AM_CFLAGS = @CFLAGS@ -DST_TEXTDOMAIN='"@STONITHPKG@"' \
28
-DSTONITH_MODULES='"@stonith_plugindir@"' \
29
-DLOCALEDIR='"@LOCALE@"'
34
sbin_PROGRAMS = stonith meatclient sbd
37
stonith_SOURCES = main.c
39
stonith_LDADD = libstonith.la $(top_builddir)/lib/pils/libpils.la $(GLIBLIB)
40
stonith_LDFLAGS = @LIBADD_DL@ @LIBLTDL@ -export-dynamic @DLOPEN_FORCE_FLAGS@ @LIBADD_INTL@
42
meatclient_SOURCES = meatclient.c
43
meatclient_LDADD = $(GLIBLIB)
46
sbd_CFLAGS = -D_GNU_SOURCE
47
sbd_LDADD = $(GLIBLIB) \
48
$(top_builddir)/lib/clplumbing/libplumb.la \
49
$(top_builddir)/lib/clplumbing/libplumbgpl.la
53
lib_LTLIBRARIES = libstonith.la
55
libstonith_la_SOURCES = expect.c stonith.c st_ttylock.c
56
libstonith_la_LDFLAGS = -version-info 1:0:0
57
libstonith_la_LIBADD = $(top_builddir)/lib/pils/libpils.la \
58
$(top_builddir)/replace/libreplace.la \
63
man_MANS = stonith.8 meatclient.8
65
EXTRA_DIST = $(man_MANS) sbd.h