5 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8 CFLAGS = -Wall -g -D_REENTRANT
10 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 mv po/de.gmo po/de.gmo.orig
20 cp po/de.gmo.orig po/de.gmo
21 # --enable-compat per bug 477025
22 ./configure --prefix=/usr --enable-shared \
24 --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
25 # I wonder what configure is thinking. Lets find out...
26 -cat ./config.status Makefile lib/Makefile po/Makefile libelf.pc \
27 config.h lib/sys_elf.h
28 make CFLAGS="$(CFLAGS)"
35 -mv po/de.gmo.orig po/de.gmo
37 # distclean misses w32/Makefile; kludge around it.
41 binary: binary-arch binary-indep
47 make instroot=`pwd`/debian/tmp install
48 dh_install --sourcedir=debian/tmp --list-missing
49 dh_installchangelogs ChangeLog
52 dh_makeshlibs -V 'libelfg0 (>= 0.8.12)'