1 | # schroot Makefile template |
---|
2 | # |
---|
3 | # |
---|
4 | # Copyright © 2004-2009 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 3 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, see |
---|
18 | # <http://www.gnu.org/licenses/>. |
---|
19 | # |
---|
20 | ##################################################################### |
---|
21 | |
---|
22 | include $(top_srcdir)/scripts/global.mk |
---|
23 | |
---|
24 | LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS) -I$(top_srcdir)/bin |
---|
25 | |
---|
26 | DEFS = -DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE |
---|
27 | |
---|
28 | if BUILD_LIBDCHROOT |
---|
29 | noinst_LTLIBRARIES = libdchroot.la |
---|
30 | endif |
---|
31 | |
---|
32 | if BUILD_DCHROOT |
---|
33 | dchroot = dchroot |
---|
34 | endif |
---|
35 | |
---|
36 | bin_PROGRAMS = $(dchroot) |
---|
37 | |
---|
38 | libdchroot_la_SOURCES = \ |
---|
39 | dchroot-main-base.h \ |
---|
40 | dchroot-main-base.cc \ |
---|
41 | dchroot-session-base.h \ |
---|
42 | dchroot-session-base.cc |
---|
43 | libdchroot_la_LIBADD = $(top_builddir)/bin/schroot/libschroot.la |
---|
44 | |
---|
45 | dchroot_SOURCES = \ |
---|
46 | dchroot-chroot-config.h \ |
---|
47 | dchroot-chroot-config.cc \ |
---|
48 | dchroot-session.h \ |
---|
49 | dchroot-session.cc \ |
---|
50 | dchroot-options.h \ |
---|
51 | dchroot-options.cc \ |
---|
52 | dchroot-main.h \ |
---|
53 | dchroot-main.cc \ |
---|
54 | dchroot.cc |
---|
55 | dchroot_LDADD = libdchroot.la |
---|
56 | |
---|
57 | install-exec-hook: |
---|
58 | # Install setuid root. |
---|
59 | if [ -f "$(DESTDIR)$(bindir)/dchroot" ]; then \ |
---|
60 | chmod 4755 "$(DESTDIR)$(bindir)/dchroot"; \ |
---|
61 | fi |
---|