1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/PTdecode/CImg-1.3.0/resources/debian/rules Mon Aug 03 14:09:20 2009 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +#!/usr/bin/make -f 1.5 +# -*- makefile -*- 1.6 +# Sample debian/rules that uses debhelper. 1.7 +# GNU copyright 1997 to 1999 by Joey Hess. 1.8 +# 1.9 +# Modified to make a template file for a multi-binary package with separated 1.10 +# build-arch and build-indep targets by Bill Allombert 2001 1.11 +# 1.12 +# Modified in order to update the package by François-Xavier Dupé 2007 1.13 + 1.14 +# Uncomment this to turn on verbose mode. 1.15 +#export DH_VERBOSE=1 1.16 + 1.17 +# This has to be exported to make some magic below work. 1.18 +export DH_OPTIONS 1.19 + 1.20 +CFLAGS = -Wall -g 1.21 + 1.22 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 1.23 + CFLAGS += -O0 1.24 +else 1.25 + CFLAGS += -O3 1.26 +endif 1.27 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 1.28 + INSTALL_PROGRAM += -s 1.29 +endif 1.30 + 1.31 +build: build-indep-stamp 1.32 +build-indep-stamp: 1.33 + #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread" 1.34 + #cd examples && $(MAKE) clean 1.35 + #$(MAKE) doc 1.36 + touch build-indep-stamp 1.37 + 1.38 +clean: 1.39 + dh_testdir 1.40 + dh_testroot 1.41 + rm -f build-arch-stamp build-indep-stamp 1.42 + dh_clean 1.43 + 1.44 +install: 1.45 + dh_testdir 1.46 + dh_testroot 1.47 + dh_clean -k 1.48 + dh_installdirs 1.49 + dh_install 1.50 + 1.51 +binary-indep: build install 1.52 + dh_testdir 1.53 + dh_testroot 1.54 + dh_installchangelogs 1.55 + dh_installdocs 1.56 + dh_compress 1.57 +# dh_installmenu 1.58 +# dh_installdebconf 1.59 +# dh_installlogrotate 1.60 +# dh_installemacsen 1.61 +# dh_installpam 1.62 +# dh_installmime 1.63 +# dh_installinit 1.64 +# dh_installcron 1.65 +# dh_installinfo 1.66 +# dh_installman 1.67 + dh_link 1.68 + dh_strip 1.69 + dh_fixperms 1.70 +# dh_perl 1.71 +# dh_python 1.72 + dh_makeshlibs 1.73 + dh_installdeb 1.74 + dh_shlibdeps 1.75 + dh_gencontrol 1.76 + dh_md5sums 1.77 + dh_builddeb 1.78 + 1.79 +# Build architecture dependant packages using the common target. 1.80 +binary-arch: build install 1.81 + 1.82 +binary: binary-indep binary-arch 1.83 +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch