Debian Codegraph @

membership/ccm/Makefile.am

raw
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 #
20 MAINTAINERCLEANFILES = Makefile.in
21
22 AM_CPPFLAGS = -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 \
25 -I$(includedir)/clplumbing
26
27 halibexecdir = $(libexecdir)/@HB_PKG@
28 ccmlibdir = $(halibexecdir)
29
30 ccmdir = $(HA_VARRUNDIR)/$(HB_PKG)/ccm
31 apigid = @HA_APIGID@
32 ccmuid = @HA_CCMUID@
33 gliblib = @GLIBLIB@
34
35
36 AM_CFLAGS = @CFLAGS@
37
38 noinst_HEADERS = ccm.h ccmlib.h
39
40 ## libraries
41
42 lib_LTLIBRARIES = libccmclient.la libclm.la
43
44
45 ## binary progs
46 ccmlib_PROGRAMS = ccm ccm_testclient
47
48 ## SOURCES
49 ccm_SOURCES = ccm.c \
50 ccmmisc.c \
51 ccmgraph.c \
52 ccmversion.c \
53 ccmupdate.c \
54 ccmllm.c \
55 ccmbitmap.c \
56 ccm.h \
57 ccmmain.c \
58 ccmclient.c \
59 ccmmsg.h \
60 ccmmsg.c \
61 ccm_statemachine.c \
62 ccmmisc.h \
63 ccmmem.c
64
65 ccm_LDADD = -lplumb \
66 $(top_builddir)/lib/hbclient/libhbclient.la \
67 $(gliblib) \
68 -lpils
69
70
71 ccm_LDFLAGS =
72
73 ccm_testclient_SOURCES = ccm_testclient.c
74 ccm_testclient_LDADD = libccmclient.la \
75 -lplumb \
76 $(gliblib) \
77 -lpils
78
79
80 libccmclient_la_SOURCES = ccmlib_memapi.c ccmlib_eventapi.c ccmlib.h
81 libccmclient_la_LDFLAGS = -version-info 1:0:0
82 libccmclient_la_LIBADD = $(gliblib) \
83 -lplumb
84
85 ## library libclm.la
86 libclmdir = $(halibexecdir)
87
88 ## binary program
89 libclm_PROGRAMS = clmtest
90
91 libclm_la_SOURCES = ccmlib_clm.c
92
93 ## Add -DPOSIX_THREADS to CFLAGS to compile a thread-safe version library
94 libclm_la_CFLAGS = -g #-DPOSIX_THREADS
95 libclm_la_LDFLAGS = -version-info 1:0:0
96 libclm_la_LIBADD = libccmclient.la \
97 $(gliblib) \
98 -lplumb
99
100 clmtest_SOURCES = clmtest.c
101 clmtest_LDADD = libclm.la libccmclient.la \
102 -lplumb \
103 $(gliblib)\
104 -lpils
105
106
107 ## additional Makefile targets
108 # additional installations not covered normally
109 install-exec-local:
110 $(mkinstalldirs) $(DESTDIR)$(ccmdir)
111 -chgrp $(apigid) $(DESTDIR)/$(ccmdir)
112 -chown $(ccmuid) $(DESTDIR)/$(ccmdir)
113 chmod 750 $(DESTDIR)/$(ccmdir)
114
115
116 uninstall-local:
117 rm -fr $(DESTDIR)$(ccmdir)