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

# Upstream doesn't use an SONAME.
# Bump manually when the ABI changes.
export ABI_MAJOR=0

%:
	dh $@

override_dh_auto_build:
	gcc -shared -fPIC -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
		-Wl,--soname,libpnglite.so.$(ABI_MAJOR) \
		-o libpnglite.so.$(ABI_MAJOR) -lz pnglite.c

override_dh_auto_clean:
	rm -f libpnglite.so.$(ABI_MAJOR)

override_dh_makeshlibs:
	dh_makeshlibs -V
