summaryrefslogtreecommitdiffstats
path: root/lib/plugins/lrm/Makefile.am
blob: fd24579e2340967382b2de51e9ec1659f7663e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Author: Sun Jiang Dong <sunjd@cn.ibm.com>
# Copyright (c) 2004 International Business Machines
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
MAINTAINERCLEANFILES = Makefile.in
if UPSTART
SUBDIRS = dbus
endif

LRM_DIR = lrm
INCLUDES 			=	-I$(top_builddir)/include -I$(top_srcdir)/include \
					-I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
					-I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl
if UPSTART
INCLUDES			+=	$(DBUS_CFLAGS)
endif

halibdir			=	$(libdir)/@HB_PKG@
havarlibdir			=	$(localstatedir)/lib/@HB_PKG@
COMMONLIBS			=	$(top_builddir)/lib/clplumbing/libplumb.la   \
					$(top_builddir)/lib/lrm/liblrm.la   \
					$(GLIBLIB)

plugindir               	= 	$(halibdir)/plugins/RAExec

plugin_LTLIBRARIES = lsb.la ocf.la heartbeat.la
if UPSTART
plugin_LTLIBRARIES += upstart.la
endif

lsb_la_SOURCES = raexeclsb.c
lsb_la_LDFLAGS = -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version

ocf_la_SOURCES = raexecocf.c
ocf_la_LDFLAGS = -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version

heartbeat_la_SOURCES = raexechb.c
heartbeat_la_LDFLAGS = -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version

if UPSTART
upstart_la_SOURCES = raexecupstart.c upstart-dbus.c
upstart_la_LDFLAGS = -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version \
                     $(DBUS_LIBS)
endif