4 # Uncomment this to turn on verbose mode.
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
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)))
20 ifneq (,$(findstring thumb,$(DEB_BUILD_OPTIONS)))
24 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
25 CFLAGS += -O0 -ggdb3 -finstrument-functions
28 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
31 maybe_coverage := $(if $(filter lcov,$(DEB_BUILD_OPTIONS)),--enable-coverage,)
35 CFLAGS="$(CFLAGS)" ./autogen.sh \
36 --host=$(DEB_HOST_GNU_TYPE) \
37 --build=$(DEB_BUILD_GNU_TYPE) \
38 --disable-dependency-tracking \
44 build-stamp: configure-stamp
47 ifeq ($(findstring nocheck,$(DEB_BUILD_OPTIONS)),)
55 rm -f build-stamp configure-stamp
56 [ ! -f Makefile ] || $(MAKE) distclean
64 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
66 binary-indep: build install
68 binary-arch: build install
71 dh_installchangelogs ChangeLog
73 dh_install --sourcedir=debian/tmp -v
75 dh_strip --dbg-package=mafw-gst-subtitles-renderer
84 binary: binary-indep binary-arch
92 $(MAKE) -C "$(CURDIR)/tests" vg
95 .PHONY: build clean binary-indep binary-arch binary install distcheck vg