+++ /dev/null
-#!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-export DH_COMPAT = 5
-
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-CFLAGS = -Wall -g
-#-finline-functions
-LDFALGS =
-# -finline-functions
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
- EXTRA_ARGS = --with-backtrace
-else
- CFLAGS += -O2
-endif
-
-ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -pg
- LDFLAGS += -pg
-endif
-
-ifneq (,$(findstring sprofiling,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -D SIZE_DEBUG
-endif
-
-ifneq (,$(findstring gcov,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -fprofile-arcs -ftest-coverage
- LDFLAGS += -fprofile-arcs -ftest-coverage
-endif
-
-
-build: build-stamp
-build-stamp:
- dh_testdir
-
- CFLAGS="$(CFLAGS)"; LDFLAGS="$(LDFLAGS)"; ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
- $(EXTRA_ARGS) \
- --prefix=/usr
-
-# Build libcitadel
- $(MAKE)
-
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp install*-stamp
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
- dh_clean
-
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) DESTDIR=`pwd`/debian/tmp install
-
- touch install-stamp
-
-# Build architecture-independent files here.
-binary-indep: build install
-# dh_testdir -i
- dh_testroot -i
-# dh_installdocs -i -A README
-# dh_installchangelogs -i debian/no-upstream-changelog
-# dh_install -i --sourcedir=debian/tmp
-# dh_link -i
-# dh_strip -i
-# dh_compress -i
-# dh_fixperms -i
-# dh_installdeb -i
-# dh_shlibdeps -i
-# dh_gencontrol -i
-# dh_md5sums -i
-# dh_builddeb -i
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir -a
- dh_testroot -a
- dh_installchangelogs -a -plibcitadel2
- dh_installdocs -a
- dh_install -a --sourcedir=debian/tmp
- dh_link -a
- dh_strip -a --dbg-package=libcitadel2-dbg
- dh_compress -a
- dh_fixperms -a
- dh_makeshlibs -a -V
- dh_installdeb -a
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install