#!/usr/bin/make -f

.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_install override_dh_strip

export LDFLAGS=-Wl,--as-needed

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --bindir=/usr/games --enable-opengl

override_dh_auto_install:
	dh_auto_install
	rm -f $(CURDIR)/debian/tmp/usr/lib/games/psemu/*.la

override_dh_install:
	dh_install --fail-missing

override_dh_strip:
	dh_strip --dbg-package=pcsxr-dbg
