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 ifeq ($(DEB_HOST_ARCH),armel)
13 #EXTRA_CFLAGS += -mcpu=arm1136jf-s
14 # Use Thumb for smaller binaries if requested
15 ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS)))
16 EXTRA_CFLAGS += -mthumb
20 EXTRA_CPPFLAGS = -DFREMANTLE `pkg-config --cflags dbus-1`
21 EXTRA_LDFLAGS = `pkg-config --libs dbus-1`
23 configure: configure-stamp
30 build-stamp: configure-stamp
33 make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)"
34 make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)"
41 rm -f build-stamp configure-stamp
44 make -C config-ui clean
54 # Add here commands to install the package into
55 # debian/browser-switchboard.
56 make DESTDIR=debian/browser-switchboard install
57 make -C config-ui DESTDIR=../debian/browser-switchboard install
58 install -c -m 0644 debian/browser-switchboard-cp.desktop debian/browser-switchboard/usr/share/applications/hildon-control-panel
61 binary-indep: build install
62 # arch: any package, nothing to do here
64 binary-arch: build install
94 binary: binary-indep binary-arch
95 .PHONY: build clean binary-indep binary-arch binary install configure