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 #include /usr/share/quilt/quilt.make
14 # These are used for cross-compiling and for saving the configure script
15 # from having to guess our platform (since we know it already)
16 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19 # Determine Maemo version
20 MAEMO_VERSION := $(shell cut -d"." -f1 /etc/maemo_version)
22 CFLAGS = -Wall -g -DMAEMO -DMAEMO_VERSION=$(MAEMO_VERSION)
26 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28 else ifneq (,$(findstring arm,$(DEB_BUILD_GNU_TYPE)))
30 ifneq (,$(findstring vfp,$(DEB_BUILD_OPTIONS)))
31 CFLAGS += -march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp
33 CFLAGS += -static-libgcc
35 echo "This package does not build in x86"
39 configure: configure-stamp
42 # Add here commands to configure the package.
49 build-stamp: configure-stamp
52 $(MAKE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)"
59 rm -f build-stamp configure-stamp
61 # Add here commands to clean up after the build process.
72 # Add here commands to install the package into debian/drnoksnes.
73 $(MAKE) DESTDIR=$(CURDIR)/debian/drnoksnes install
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
80 # Build architecture-dependent files here.
81 binary-arch: build install
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install configure