2
# Author: Sun Jiang Dong <sunjd@cn.ibm.com>
3
# Copyright (c) 2005 International Business Machines
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU General Public License
7
# as published by the Free Software Foundation; either version 2
8
# of the License, or (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
MAINTAINERCLEANFILES = Makefile.in
21
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
22
-I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
23
-I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl \
24
-I$(top_builddir) -I$(top_srcdir)
26
halibdir = $(libdir)/@HB_PKG@
27
guilibdir = $(libdir)/heartbeat-gui
28
havarlibdir = $(localstatedir)/lib/@HB_PKG@
29
COMMONLIBS = $(GLIBLIB)
31
mgmtdir = $(HA_VARLIBDIR)/$(HB_PKG)/$(MGMT_DIR)
36
lib_LTLIBRARIES = libhbmgmttls.la libhbmgmtclient.la libhbmgmtcommon.la
37
libhbmgmttls_la_SOURCES = mgmt_tls_lib.c
38
libhbmgmttls_la_LIBADD = $(COMMONLIBS)
39
libhbmgmttls_la_LDFLAGS = $(GNUTLSLIBS)
40
libhbmgmttls_la_CFLAGS = $(INCLUDES) $(GNUTLSHEAD)
42
libhbmgmtclient_la_SOURCES = mgmt_client_lib.c
43
libhbmgmtclient_la_LIBADD = $(COMMONLIBS) libhbmgmttls.la $(top_builddir)/replace/libreplace.la
44
libhbmgmtclient_la_CFLAGS = $(INCLUDES)
46
libhbmgmtcommon_la_SOURCES = mgmt_common_lib.c
47
libhbmgmtcommon_la_LIBADD = $(COMMONLIBS) $(top_builddir)/replace/libreplace.la
48
libhbmgmtcommon_la_CFLAGS = $(INCLUDES)
50
guilib_LTLIBRARIES = _pymgmt.la
51
_pymgmt_la_SOURCES = pymgmt_wrap.c mgmt_client_lib.c mgmt_tls_lib.c mgmt_common_lib.c
52
_pymgmt_la_CFLAGS = @PYTHON_INCLUDES@ -I$(top_builddir)/include -w
53
_pymgmt_la_LDFLAGS = -module $(GNUTLSLIBS)
54
_pymgmt_la_LIBADD = $(top_builddir)/replace/libreplace.la
56
guilib_SCRIPTS = pymgmt.py
58
pymgmt_wrap.c pymgmt.py: pymgmt.i
62
$(mkinstalldirs) $(DESTDIR)$(mgmtdir)
63
-chgrp $(apigid) $(DESTDIR)/$(mgmtdir)
64
chmod 770 $(DESTDIR)/$(mgmtdir)