X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=debian%2Frules;h=e5c98738953f50e7af4523f86a7143031d46b664;hp=c773a37d8ad8faa215e171d6a9e477936b9e4184;hb=ff4e8ab52186b25065109228e795138e04d03225;hpb=245d4f8fa09e3ea603e892495c891e4b826c17dc diff --git a/debian/rules b/debian/rules index c773a37..e5c9873 100755 --- a/debian/rules +++ b/debian/rules @@ -9,8 +9,14 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - - +# Optimize for N8x0 CPUs if building for armel +ifeq ($(DEB_HOST_ARCH),armel) + EXTRA_CFLAGS += -mcpu=arm1136jf-s + # Use Thumb for smaller binaries unless otherwise requested + ifeq (,$(filter nothumb,$(DEB_BUILD_OPTIONS))) + EXTRA_CFLAGS += -mthumb + endif +endif configure: configure-stamp configure-stamp: @@ -22,8 +28,8 @@ build: build-stamp build-stamp: configure-stamp dh_testdir - make - make -C config-ui + make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo + make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" diablo-plugin touch $@ @@ -46,7 +52,7 @@ install: build # Add here commands to install the package into # debian/browser-switchboard. make DESTDIR=debian/browser-switchboard install - make -C config-ui DESTDIR=debian/browser-switchboard install + make -C config-ui DESTDIR=../debian/browser-switchboard install binary-indep: build install