1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#!/usr/bin/make -f
export DH_COMPAT=3
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Optional P2 optimization. Don't mess with this unless you have gcc 2.95+
# and know what it does.
#OPT=-march=i686
CXX = g++
CXXFLAGS = -g -Wall
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O2
else
CFLAGS += -O0
endif
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += $(DEB_HOST_GNU_TYPE)
else
confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
endif
build: build-stamp
build-stamp:
dh_testdir
./configure $(confflags) --prefix=/usr --with-pthreads
$(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
binary-arch: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs usr/bin
cp apps/splay debian/splay/usr/bin/
dh_strip
dh_installdocs AUTHORS README README.LIB
dh_installman apps/splay.1
dh_installchangelogs ChangeLog
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_builddeb
binary: binary-arch
.PHONY: build clean binary-arch binary
|