#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND=-fcommon -std=gnu17

%:
	dh $@

override_dh_autoreconf:
	mkdir -p include
	dh_autoreconf

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

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

override_dh_auto_test:
