2 # -*- mode: makefile; coding: utf-8 -*-
4 # Uncomment this to turn on verbose mode.
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS += -O2 -fno-strict-aliasing
25 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
36 rm -f build-stamp install*-stamp
42 install: install-stamp
43 install-stamp: build-stamp
49 $(MAKE) DESTDIR=`pwd`/debian/tmp install
53 # Build architecture-independent files here.
54 binary-indep: build install
57 dh_installdocs -i -A README
58 dh_installchangelogs -i debian/no-upstream-changelog
59 dh_install -i --sourcedir=debian/tmp
70 # Build architecture-dependent files here.
71 binary-arch: build install
74 # dh_installdocs -plibcitadel1
75 dh_installchangelogs -plibcitadel
76 dh_install -a --sourcedir=debian/tmp
78 dh_strip -a --dbg-package=libcitadel1-dbg
81 dh_makeshlibs -a -V 'libcitadel'
89 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
91 binary: binary-indep binary-arch
92 .PHONY: build clean binary-indep binary-arch binary install