#!/usr/bin/make -f

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DFLAGS = -fdebug
else
	DFLAGS = -frelease
endif


%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- DFLAGS="$(DFLAGS)"



get-orig-source:
	dh_testdir
	dh_testroot
	wget http://www.asahi-net.or.jp/~cs8k-cyu/windows/p47_0_2.zip
	unzip p47_0_2.zip
	rm p47/*.dll
	rm p47/*.exe
	rm p47/lib/*.lib
	rm p47/resource/*.RES
	tar cvfz ../parsec47_0.2.dfsg1.orig.tar.gz p47
	rm -rf p47_0_2.zip parsec47
