#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk

# DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC -c -o progress_bar.o progress_bar.cpp
	$(AR) rcs libcpp_progress_bar.a progress_bar.o

override_dh_auto_clean:
	dh_auto_clean
	rm -f progress_bar.o libcpp_progress_bar.a
