2 # -*- mode: makefile; coding: utf-8 -*-
4 # Uncomment this to turn on verbose mode.
7 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15 CFLAGS += -O2 -fno-strict-aliasing
23 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
34 rm -f build-stamp install*-stamp
35 [ ! -f Makefile ] || $(MAKE) distclean
38 install: install-stamp
39 install-stamp: build-stamp
45 $(MAKE) DESTDIR=`pwd`/debian/tmp install
49 # Build architecture-independent files here.
50 binary-indep: build install
53 dh_installdocs -i -A README
54 dh_installchangelogs -i debian/no-upstream-changelog
55 dh_install -i --sourcedir=debian/tmp
66 # Build architecture-dependent files here.
67 binary-arch: build install
70 # dh_installdocs -plibcitadel1
71 dh_installchangelogs -plibcitadel
72 dh_install -a --sourcedir=debian/tmp
74 dh_strip -a --dbg-package=libcitadel1-dbg
77 dh_makeshlibs -a -V 'libcitadel1'
85 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install