~ampelbein/ubuntu/oneiric/heartbeat/lp-770743

« back to all changes in this revision

Viewing changes to lib/mgmt/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-10 19:29:25 UTC
  • mfrom: (5.2.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090810192925-9zy2llcbgavbskf7
Tags: 2.99.2+sles11r9-5ubuntu1
* New upstream snapshot
* Adjusted heartbeat.install and rules for documentation path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Author: Sun Jiang Dong <sunjd@cn.ibm.com>
3
 
# Copyright (c) 2005 International Business Machines
4
 
#
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.
9
 
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.
14
 
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.
18
 
#
19
 
MAINTAINERCLEANFILES = Makefile.in
20
 
 
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)
25
 
 
26
 
halibdir                        =       $(libdir)/@HB_PKG@
27
 
guilibdir                       =       $(libdir)/heartbeat-gui
28
 
havarlibdir                     =       $(localstatedir)/lib/@HB_PKG@
29
 
COMMONLIBS                      =       $(GLIBLIB)
30
 
MGMT_DIR                        =       mgmt
31
 
mgmtdir                         =       $(HA_VARLIBDIR)/$(HB_PKG)/$(MGMT_DIR)
32
 
apigid                          =       @HA_APIGID@
33
 
 
34
 
EXTRA_DIST                      =       pymgmt.i
35
 
 
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)
41
 
 
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)
45
 
 
46
 
libhbmgmtcommon_la_SOURCES = mgmt_common_lib.c
47
 
libhbmgmtcommon_la_LIBADD = $(COMMONLIBS) $(top_builddir)/replace/libreplace.la
48
 
libhbmgmtcommon_la_CFLAGS = $(INCLUDES)
49
 
 
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
55
 
 
56
 
guilib_SCRIPTS = pymgmt.py
57
 
 
58
 
pymgmt_wrap.c pymgmt.py: pymgmt.i
59
 
        $(SWIG) -python $^
60
 
 
61
 
install-exec-local:
62
 
        $(mkinstalldirs) $(DESTDIR)$(mgmtdir)
63
 
        -chgrp $(apigid) $(DESTDIR)/$(mgmtdir)
64
 
        chmod 770 $(DESTDIR)/$(mgmtdir)