#!/usr/bin/make -f

PKG = retrovibes-by-noxwings

%:
	dh $@

override_dh_strip:

# retro-vibes.out has no section header table: objdump cannot read its
# dynamic section, and dpkg-shlibdeps finds no library at all. The
# dependencies are computed on a stub linked with the same NEEDED libraries
# (libGL.so.1, libSDL2-2.0.so.0, libm.so.6, libc.so.6).
override_dh_shlibdeps:
	echo 'int main(void) { return 0; }' | $(CC) -x c - -o debian/shlibs-check \
		-Wl,--no-as-needed -lGL -lSDL2 -lm
	dpkg-shlibdeps -Tdebian/$(PKG).substvars -edebian/shlibs-check
	rm -f debian/shlibs-check
