#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed override_dh_auto_configure: xmkmf -a override_dh_auto_build: # CCOPTIONS is used to pass CFLAGS, CPPFLAGS when compiling .c files, # EXTRA_LOAD_FLAGS when linking the program. $(MAKE) \ CCOPTIONS="$(CFLAGS) $(CPPFLAGS)" \ EXTRA_LOAD_FLAGS="-I. $(CFLAGS) $(LDFLAGS)" cp xcb.man debian/xcb.1 override_dh_clean: [ ! -f Makefile ] && xmkmf -a || : [ ! -f Makefile ] || $(MAKE) clean dh_clean %: dh $@ # End of file