#!/usr/bin/make -f
#export DH_VERBOSE=1

CFLAGS = -Wall -g -Wl,--as-needed

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif


%:
	dh $@

override_dh_auto_build:
	CFLAGS="$(CFLAGS)" $(MAKE)

override_dh_auto_install:
	# Add here commands to install the package into debian/wmauda.
	$(MAKE) DESTDIR=$(CURDIR)/debian/wmauda PREFIX=/usr install
