#!/usr/bin/make -f

CFLAGS += -fPIC $(LDFLAGS) $(CPPFLAGS)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- all all-recur razip lib CFLAGS="$(CFLAGS)"

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) -C examples all
endif

override_dh_installchangelogs:
	dh_installchangelogs NEWS
