2 # Makefile for Debian dpkg-buildpackage(1)
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # Uncomment this to turn on verbose mode.
22 # This is the debhelper compatibility version to use.
25 # These are used for cross-compiling and for saving the configure script
26 # from having to guess our platform (since we know it already)
27 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
28 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
31 #ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
34 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
38 config.status: configure
40 ./configure --prefix=/usr --sysconfdir=/etc \
41 --enable-shared --disable-static \
43 --with-sandbox-setuid=captive \
44 --with-sandbox-setgid=captive \
45 --with-sandbox-chroot=/var/lib/captive \
46 --with-sbin-mountdir=/sbin \
47 --with-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
50 build-arch: config.status build-arch-stamp
54 touch build-arch-stamp
62 # Do not: -$(MAKE) distclean
63 # as we are run in clean distribution archive by AutoGen.pm
71 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-strip
74 # Build architecture-dependent files here.
75 binary-arch: build install
78 # dh_installdebconf -a
82 # dh_installchangelogs ChangeLog -a
88 # FIXME: warning: could not find path for libcaptive-0.9cvs.so
95 .PHONY: build clean binary-arch binary install