3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
12 # Optimize for N8x0 CPUs if building for armel
13 ifeq ($(DEB_HOST_ARCH),armel)
14 EXTRA_CFLAGS += -mcpu=arm1136jf-s
15 # Use Thumb for smaller binaries if requested
16 ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS)))
17 EXTRA_CFLAGS += -mthumb
21 configure: configure-stamp
28 build-stamp: configure-stamp
31 make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo
32 make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo-plugin
39 rm -f build-stamp configure-stamp
42 make -C config-ui clean
52 # Add here commands to install the package into
53 # debian/browser-switchboard.
54 make DESTDIR=debian/browser-switchboard install
55 make -C config-ui DESTDIR=../debian/browser-switchboard install
58 binary-indep: build install
59 # arch: any package, nothing to do here
61 binary-arch: build install
91 binary: binary-indep binary-arch
92 .PHONY: build clean binary-indep binary-arch binary install configure