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 debug,$(DEB_BUILD_OPTIONS)))
15 CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
20 ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
30 CFLAGS="$(CFLAGS)"; LDFLAGS="$(LDFLAGS)"; ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
41 rm -f build-stamp install*-stamp
47 install: install-stamp
48 install-stamp: build-stamp
54 $(MAKE) DESTDIR=`pwd`/debian/tmp install
58 # Build architecture-independent files here.
59 binary-indep: build install
62 # dh_installdocs -i -A README
63 # dh_installchangelogs -i debian/no-upstream-changelog
64 # dh_install -i --sourcedir=debian/tmp
75 # Build architecture-dependent files here.
76 binary-arch: build install
79 # dh_installdocs -plibcitadel1
80 dh_installchangelogs -plibcitadel
81 dh_install -a --sourcedir=debian/tmp
83 dh_strip -a --dbg-package=libcitadel1-dbg
86 dh_makeshlibs -a -V 'libcitadel1'
94 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install