#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# for GDB
#CFLAGS += -O0 -ggdb3
# end
CFLAGS += -g -gdwarf-2 -fno-omit-frame-pointer
ifeq ($(DEB_HOST_ARCH),solaris-i386)
CFLAGS += -msave-args
endif
#ifeq ($(DEB_HOST_ARCH),solaris-sparc)
#endif
export CFLAGS

%:
	dh $@ --with autoreconf

override_dh_auto_build-indep:
	$(MAKE) html

override_dh_installdocs-indep:
	dh_installdocs -i
	dh_doxygen -plibyaml-doc

override_dh_strip:
	dh_strip -plibyaml-0-2 --dbgsym-migration='libyaml-0-2-dbg (<< 0.1.7-1~)'
	dh_strip --remaining
