#!/usr/bin/make -f # # Alex Pennace DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g -D_REENTRANT ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif build: build-stamp build-stamp: dh_testdir mv po/de.gmo po/de.gmo.orig cp po/de.gmo.orig po/de.gmo # --enable-compat per bug 477025 ./configure --prefix=/usr --enable-shared \ --enable-compat \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) # I wonder what configure is thinking. Lets find out... -cat ./config.status Makefile lib/Makefile po/Makefile libelf.pc \ config.h lib/sys_elf.h make CFLAGS="$(CFLAGS)" touch build-stamp clean: dh_testdir dh_testroot -make clean -mv po/de.gmo.orig po/de.gmo -make distclean # distclean misses w32/Makefile; kludge around it. -rm -f w32/Makefile dh_clean build-stamp binary: binary-arch binary-indep binary-arch: build dh_testdir dh_testroot dh_clean -k make instroot=`pwd`/debian/tmp install dh_install --sourcedir=debian/tmp --list-missing dh_installchangelogs ChangeLog dh_installdocs README dh_link dh_makeshlibs -V 'libelfg0 (>= 0.8.12)' dh_strip dh_fixperms dh_compress dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-indep: build true