3
# Turn on VERBOSE output
8
include /usr/share/dpatch/dpatch.make
10
# These are used for cross-compiling and for saving the configure script
11
# # from having to guess our platform (since we know it already)
12
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
13
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15
CFLAGS := $(CFLAGS) -pipe -Wall -g -fPIC
18
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
24
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
28
ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
34
ifeq ($(DEB_BUILD_ARCH),i386)
35
CONFFLAGS=apr_lock_method=USE_PROC_PTHREAD_SERIALIZE
37
CONFFLAGS=ac_cv_func_pthread_mutexattr_setpshared=no ac_cv_func_sem_open=no
40
CONFFLAGS += ac_cv_prog_AWK=mawk
44
config.status: configure
46
./buildconf --with-apr=$(shell apr-1-config --srcdir)
47
CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(CONFFLAGS) ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-layout=Debian --with-apr=/usr/bin/apr-1-config --with-ldap=yes --with-dbm=db43 --with-sqlite3 --with-pgsql=/usr --without-gdbm --without-sqlite2 --with-berkeley-db
49
build: patch-stamp build-stamp
51
build-stamp: config.status
61
rm -f build-stamp test-stamp
74
install: build $(TEST_TARGET)
80
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
82
binary-indep: build install
84
binary-arch: build install
87
dh_installchangelogs CHANGES
91
dh_strip --dbg-package=libaprutil1-dbg
101
binary: binary-indep binary-arch
102
.PHONY: build clean binary-indep binary-arch binary install