~ubuntu-branches/ubuntu/intrepid/schroot/intrepid

« back to all changes in this revision

Viewing changes to dchroot/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-07-08 18:33:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708183328-rlo4mpldmyoda55q
Tags: 0.99.2-2ubuntu1
* remerge ubuntu changes:
  + debian/control: libpam-dev (>> 0.79-3ubuntu6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# schroot Makefile template
 
2
#
 
3
#
 
4
# Copyright © 2004-2006  Roger Leigh <rleigh@debian.org>
 
5
#
 
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.
 
10
#
 
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.
 
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,
 
19
# MA  02111-1307  USA
 
20
#
 
21
#####################################################################
 
22
 
 
23
localedir = $(datadir)/locale
 
24
pkglibexecdir = $(SCHROOT_LIBEXEC_DIR)
 
25
 
 
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.
 
29
 
 
30
DEFS = -DGETTEXT_PACKAGE=\"schroot\" -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE
 
31
 
 
32
if BUILD_LIBDCHROOT
 
33
noinst_LTLIBRARIES = libdchroot.la
 
34
endif
 
35
 
 
36
if BUILD_DCHROOT
 
37
dchroot = dchroot
 
38
endif
 
39
 
 
40
bin_PROGRAMS = $(dchroot)
 
41
 
 
42
libdchroot_la_SOURCES =                 \
 
43
        dchroot-main-base.h             \
 
44
        dchroot-main-base.cc            \
 
45
        dchroot-session-base.h          \
 
46
        dchroot-session-base.cc
 
47
libdchroot_la_LIBADD = $(top_builddir)/schroot/libschroot.la
 
48
 
 
49
dchroot_SOURCES =                       \
 
50
        dchroot-chroot-config.h         \
 
51
        dchroot-chroot-config.cc        \
 
52
        dchroot-session.h               \
 
53
        dchroot-session.cc              \
 
54
        dchroot-options.h               \
 
55
        dchroot-options.cc              \
 
56
        dchroot-main.h                  \
 
57
        dchroot-main.cc                 \
 
58
        dchroot.cc
 
59
dchroot_LDADD = libdchroot.la
 
60
 
 
61
if BUILD_DCHROOT
 
62
dchroot_mans = dchroot.1
 
63
endif
 
64
 
 
65
man_MANS = $(dchroot_mans)
 
66
 
 
67
install-exec-hook:
 
68
# Install setuid root.
 
69
        if [ -f "$(DESTDIR)$(bindir)/dchroot" ]; then \
 
70
          chmod 4755 "$(DESTDIR)$(bindir)/dchroot"; \
 
71
        fi