#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	chmod a+x debian/dzcomm-autoreconf.sh
	dh_autoreconf debian/dzcomm-autoreconf.sh

override_dh_auto_build:
	cd dzcomm && \
		make depend && \
		make lib
	make CFLAGS="-Idzcomm/include -DDZCOMM_DJGPP=1" LDFLAGS="-Ldzcomm/lib/unix"

override_dh_clean:
	cd dzcomm && make clean
	dh_autoreconf_clean
	dh_clean
