#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = -fPIC
export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG
export DEB_LDFLAGS_MAINT_APPEND = -fPIC

%:
	dh $@

debian/out/libselinux.so: debian/out/libsepol.so
	dh_auto_build --buildsystem=makefile -- -f debian/libselinux.mk

debian/out/libsepol.so:
	dh_auto_build --buildsystem=makefile -- -f debian/libsepol.mk

override_dh_auto_build: debian/out/libselinux.so debian/out/libsepol.so
	
override_dh_auto_test:
	echo ignore tests using upstream build system

override_dh_auto_install:
	echo ignore upstream build system install procedure
