summaryrefslogtreecommitdiff
path: root/Watchdog/src/Makefile.am
blob: 5eb5f540599bbbb1fc57846cabed3f0686a3c99c (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Automake source file for the Parma Watchdog Library.
# Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
# Copyright (C) 2010-2011 BUGSENG srl (http://bugseng.com)
#
# This file is part of the Parma Watchdog Library (PWL).
#
# The PWL 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 3 of the License, or (at your
# option) any later version.
#
# The PWL 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
#
# For the most up-to-date information see the Parma Polyhedra Library
# site: http://www.cs.unipr.it/ppl/ . */

# The ordering of the following list *matters*!
INCLUDE_FILES = \
Doubly_Linked_Object.types.hh \
EList.types.hh \
EList_Iterator.types.hh \
Handler.types.hh \
Pending_Element.types.hh \
Pending_List.types.hh \
Time.types.hh \
Watchdog.types.hh \
Threshold_Watcher.types.hh \
Handler.defs.hh \
Handler.inlines.hh \
Time.defs.hh \
Time.inlines.hh \
Doubly_Linked_Object.defs.hh \
Doubly_Linked_Object.inlines.hh \
EList_Iterator.defs.hh \
EList_Iterator.inlines.hh \
EList.defs.hh \
EList.inlines.hh \
Pending_Element.defs.hh \
Pending_Element.inlines.hh \
Pending_List.defs.hh \
Pending_List.inlines.hh \
Pending_List.templates.hh \
Watchdog.defs.hh \
Watchdog.inlines.hh \
Threshold_Watcher.defs.hh \
Threshold_Watcher.inlines.hh \
Threshold_Watcher.templates.hh

SOURCE_FILES = \
$(INCLUDE_FILES) \
Time.cc \
Watchdog.cc \
Threshold_Watcher.cc

EXTRA_DIST = \
$(SOURCE_FILES) \
pwl_header.hh

# Libtool -version-info for libpwl.la.
#
#  1. Start with version information of `0:0:0' for each Libtool library.
#
#  2. Update the version information only immediately before a public
#     release of your software.  More frequent updates are unnecessary,
#     and only guarantee that the current interface number gets larger
#     faster.
#
#  3. If the library source code has changed at all since the last
#     update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
#
#  4. If any interfaces have been added, removed, or changed since the
#     last update, increment CURRENT, and set REVISION to 0.
#
#  5. If any interfaces have been added since the last public release,
#     then increment AGE.
#
#  6. If any interfaces have been removed since the last public release,
#     then set AGE to 0.
#
#	PWL release	(with PPL release)	-version-info
#	    0.1			0.4		    0:0:0
#	    0.2			0.5		    1:0:0
#	    0.3			0.6		    2:0:0
#	    0.4			0.7		    3:0:0
#	    0.4			0.8		    3:0:0
#	    0.5			0.9		    3:0:0
#	    0.6			0.10		    4:0:0
#	    0.7			0.10.1		    4:0:0
#	    0.7			0.10.2		    4:0:0
#	    0.8			0.11		    5:0:0
#	    0.8			0.11.1		    5:0:0
#	    0.8			0.11.2		    5:0:0

LIBPWL_LT_CURRENT =  5
LIBPWL_LT_REVISION = 0
LIBPWL_LT_AGE =      0

lib_LTLIBRARIES = libpwl.la
libpwl_la_SOURCES = $(SOURCE_FILES)

if NO_UNDEFINED

NO_UNDEFINED_FLAG = -no-undefined

endif NO_UNDEFINED

libpwl_la_LDFLAGS = \
$(NO_UNDEFINED_FLAG) \
-version-info $(LIBPWL_LT_CURRENT):$(LIBPWL_LT_REVISION):$(LIBPWL_LT_AGE)

include_HEADERS = pwl.hh

nodist_noinst_HEADERS = pwl_include_files.hh

pwl_include_files.hh: $(INCLUDE_FILES) Makefile
	rm -f $@
	for file in $(INCLUDE_FILES); \
	do \
	  printf "#include \"%s\"\n" $$file >>$@; \
	done

if HAVE_PERL

pwl.hh:	$(top_builddir)/pwl-config.h pwl_header.hh pwl_include_files.hh $(top_builddir)/utils/build_header
	$(top_builddir)/utils/build_header \
		-I $(top_builddir) -I $(top_builddir)/src \
		$(top_srcdir)/src/pwl_header.hh >$@

else !HAVE_PERL

pwl.hh:	pwl.hh.dist
	cp -f $< $@

endif !HAVE_PERL

BUILT_SOURCES = \
$(include_HEADERS) \
$(nodist_noinst_HEADERS)

# pwl.hh is not distributed.
# pwl.hh.dist, which is distributed, is a copy of pwl.hh.
dist-hook:
	mv -f $(distdir)/pwl.hh $(distdir)/pwl.hh.dist

CLEANFILES = $(BUILT_SOURCES)

$(top_builddir)/utils/build_header:
	$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/utils build_header

$(top_builddir)/pwl-config.h:
	$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir) pwl-config.h