#!/usr/bin/make -f

CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
CXXFLAGS += -std=c++11

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-static CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)"

override_dh_strip:
	dh_strip --dbg-package=liblog4cplus-dbg

override_dh_install:
	dh_install
	find . -name '*.la' -exec rm {} \;

override_dh_clean:
	rm -f tests/atconfig config.log
	dh_clean
