#!/usr/bin/make -f

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


%:
	dh $@ --with autoreconf

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/a7xpg0_11.zip
	unzip a7xpg0_11.zip
	rm a7xpg/*.dll
	rm a7xpg/*.exe
	rm a7xpg/lib/*.lib
	rm a7xpg/resource/*.RES
	tar cvfz ../a7xpg_0.11.dfsg1.orig.tar.gz a7xpg
	rm -rf a7xpg.zip a7xpg