summaryrefslogtreecommitdiff
path: root/dchroot/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'dchroot/Makefile.am')
-rw-r--r--dchroot/Makefile.am69
1 files changed, 69 insertions, 0 deletions
diff --git a/dchroot/Makefile.am b/dchroot/Makefile.am
new file mode 100644
index 00000000..5bc36cb9
--- /dev/null
+++ b/dchroot/Makefile.am
@@ -0,0 +1,69 @@
+# 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
+#
+#####################################################################
+
+localedir = $(datadir)/locale
+pkglibexecdir = $(SCHROOT_LIBEXEC_DIR)
+
+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
+# -Weffc++ causes too many warnings in standard headers; -Wextra is not
+# supported by GCC 3.4.
+
+DEFS = -DGETTEXT_PACKAGE=\"schroot\" -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE
+
+if BUILD_LIBDCHROOT
+noinst_LTLIBRARIES = libdchroot.la
+endif
+
+if BUILD_DCHROOT
+dchroot = dchroot
+endif
+
+bin_PROGRAMS = $(dchroot)
+
+libdchroot_la_SOURCES = \
+ dchroot-session-base.h \
+ dchroot-session-base.cc
+libdchroot_la_LIBADD = $(top_builddir)/schroot/libschroot.la
+
+dchroot_SOURCES = \
+ dchroot-chroot-config.h \
+ dchroot-chroot-config.cc \
+ dchroot-session.h \
+ dchroot-session.cc \
+ dchroot-options.h \
+ dchroot-options.cc \
+ dchroot-main.h \
+ dchroot-main.cc \
+ dchroot.cc
+dchroot_LDADD = libdchroot.la
+
+if BUILD_DCHROOT
+dchroot_mans = dchroot.1
+endif
+
+man_MANS = $(dchroot_mans)
+
+install-exec-hook:
+# Install setuid root.
+ if [ -f "$(DESTDIR)$(bindir)/dchroot" ]; then \
+ chmod 4755 "$(DESTDIR)$(bindir)/dchroot"; \
+ fi