blob: 3d079de8a6d5e972cc3b4b67ad8a9b26517c1c5d (
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
|
# schroot Makefile template
#
#
# Copyright © 2004-2006 Roger Leigh <rleigh@debian.org>
#
# schroot 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.
#
# schroot 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
#
#####################################################################
AM_CXXFLAGS = $(SCHROOT_CFLAGS) $(CPPUNIT_CFLAGS) -DSRCDIR='"$(srcdir)"' -pedantic -Wall -Wcast-align -Wextra -Wwrite-strings -Wswitch-default -Wcast-qual -Wunused-variable -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wold-style-cast -Woverloaded-virtual -fstrict-aliasing
# -Weffc++ causes too many warnings in standard headers.
if USE_UNIT_TESTS
noinst_LTLIBRARIES = libtest.la
noinst_PROGRAMS = \
sbuild-chroot \
sbuild-config \
sbuild-environment \
sbuild-keyfile \
sbuild-lock \
sbuild-log \
sbuild-nostream \
sbuild-parse-value \
sbuild-util
TESTS = $(noinst_PROGRAMS)
endif
libtest_la_SOURCES = \
test-helpers.h \
testmain.cc
libtest_la_LIBADD = ../schroot/libsbuild.la $(CPPUNIT_LIBS)
sbuild_chroot_SOURCES = \
sbuild-chroot.cc \
sbuild-chroot-plain.cc \
sbuild-chroot-block-device.cc \
sbuild-chroot-lvm-snapshot.cc \
test-sbuild-chroot.h
sbuild_chroot_LDADD = libtest.la
sbuild_config_SOURCES = sbuild-config.cc
sbuild_config_LDADD = libtest.la
sbuild_environment_SOURCES = sbuild-environment.cc
sbuild_environment_LDADD = libtest.la
sbuild_keyfile_SOURCES = sbuild-keyfile.cc
sbuild_keyfile_LDADD = libtest.la
sbuild_lock_SOURCES = sbuild-lock.cc
sbuild_lock_LDADD = libtest.la
sbuild_log_SOURCES = sbuild-log.cc
sbuild_log_LDADD = libtest.la
sbuild_nostream_SOURCES = sbuild-nostream.cc
sbuild_nostream_LDADD = libtest.la
sbuild_parse_value_SOURCES = sbuild-parse-value.cc
sbuild_parse_value_LDADD = libtest.la
sbuild_util_SOURCES = sbuild-util.cc
sbuild_util_LDADD = libtest.la
EXTRA_DIST = \
keyfile.ex1 \
config.ex1 \
config.ex2/config \
config.ex2/empty \
config.ex2/experimental \
config.ex2/sarge \
config.ex2/sid \
config.ex2/woody
|