#!/usr/bin/make -f

CXXFLAGS=	$(shell dpkg-buildflags --get CXXFLAGS)
CPPFLAGS=	$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS=	$(shell dpkg-buildflags --get LDFLAGS)

CXX=		g++
# Use this for QA tests with newer versions of GCC
#CXX=		g++-snapshot

CXXFLAGS_WARN=	-Wall -W -pipe
LDFLAGS+=	-g -lfltk
STRIP=
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	CXXFLAGS_WARN+=	-Werror
endif
ifneq (,$(filter hardening,$(DEB_BUILD_OPTIONS)))
export DEB_BUILD_HARDENING=1
else
export DEB_BUILD_HARDENING=0
endif
export CXX CPPFLAGS CXXFLAGS CXXFLAGS_WARN LDFLAGS STRIP

override_dh_auto_test:

override_dh_installchangelogs:
	dh_installchangelogs HISTORY

%:
	dh $@
