#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto -include /usr/share/dpkg/buildtools.mk # Define SONAME for shared library LIBNAME=libStatGen SONUMBER=1 LIBSHARED=${LIBNAME}.so.${SONUMBER} %: dh $@ --no-parallel override_dh_auto_build: dh_auto_build # Build the shared library $(CXX) -shared -o ${LIBSHARED} */obj/*.o -fPIC -Wl,-soname,${LIBSHARED} $(LDFLAGS) # Build doxygen doc doxygen override_dh_auto_install: mkdir -p debian/libstatgen-dev/usr/include/${LIBNAME}/ cp -L include/* debian/libstatgen-dev/usr/include/${LIBNAME}/ ln -s ${LIBSHARED} ${LIBNAME}.so d-shlibmove --commit \ --multiarch \ --devunversioned \ --exclude-a \ ${LIBNAME}.so override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) echo "Build time test is not run here." endif