1
# schroot Makefile template
4
# Copyright © 2004-2006 Roger Leigh <rleigh@debian.org>
6
# schroot is free software; you can redistribute it and/or modify it
7
# under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# schroot is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
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,
21
#####################################################################
23
localedir = $(datadir)/locale
24
pkglibexecdir = $(SCHROOT_LIBEXEC_DIR)
26
AM_CXXFLAGS = $(SCHROOT_CFLAGS) -pedantic -Wall -Wcast-align -Wwrite-strings -Wswitch-default -Wcast-qual -Wunused-variable -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wold-style-cast -Woverloaded-virtual -fstrict-aliasing
27
# -Weffc++ causes too many warnings in standard headers; -Wextra is not
28
# supported by GCC 3.4.
30
DEFS = -DGETTEXT_PACKAGE=\"schroot\" -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE
33
noinst_LTLIBRARIES = libdchroot.la
40
bin_PROGRAMS = $(dchroot)
42
libdchroot_la_SOURCES = \
44
dchroot-main-base.cc \
45
dchroot-session-base.h \
46
dchroot-session-base.cc
47
libdchroot_la_LIBADD = $(top_builddir)/schroot/libschroot.la
50
dchroot-chroot-config.h \
51
dchroot-chroot-config.cc \
59
dchroot_LDADD = libdchroot.la
62
dchroot_mans = dchroot.1
65
man_MANS = $(dchroot_mans)
68
# Install setuid root.
69
if [ -f "$(DESTDIR)$(bindir)/dchroot" ]; then \
70
chmod 4755 "$(DESTDIR)$(bindir)/dchroot"; \