#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PREFIX=/usr/
CFLAGS=-Wall $(shell xml2-config --cflags) $(shell dpkg-buildflags --get CFLAGS)

%:
	dh  $@ --with autoreconf

override_dh_auto_configure:
	# Upstream needs the -DPREFIX in src/daisy-player.c
	dh_auto_configure -- CFLAGS="$(CFLAGS) -DPREFIX=\\\"$(PREFIX)\\\""

override_dh_strip:
	dh_strip --dbg-package=daisy-player-dbg
