CC = gcc
-CFLAGS = -Wall -Os
+CFLAGS = -Wall -Os $(EXTRA_CFLAGS)
CPPFLAGS = `pkg-config --cflags dbus-glib-1`
LDFLAGS = `pkg-config --libs dbus-glib-1`
PREFIX = /usr
install Browser Switchboard, you can compile and install by hand:
1. You will need a copy of the SDK for your device. Make sure the
following packages are installed: libdbus-glib-1-dev for
-browser-switchboard; libdbus-1-dev, libgtk2.0-dev, hildon-dev,
+browser-switchboard; libdbus-1-dev, libgtk2.0-dev, libhildon1-dev,
hildon-control-panel-dev for the config UI.
2. Download the source tarball: browser-switchboard_X.Y.orig.tar.gz
3. Unpack the source tarball in your SDK install:
CC = gcc
-CFLAGS = -Wall -Os
+CFLAGS = -Wall -Os $(EXTRA_CFLAGS)
CFLAGS_PLUGIN = -fPIC
CPPFLAGS = -I../ `pkg-config --cflags gtk+-2.0`
CPPFLAGS_HILDON = -DHILDON `pkg-config --cflags hildon-1`
/* Try to send SIGHUP to any running browser-switchboard process
This causes it to reread config files if in continuous_mode, and
die so that the config will be reloaded on next start otherwise */
- system("killall -HUP browser-switchboard > /dev/null 2>&1");
+ system("kill -HUP `pidof browser-switchboard` > /dev/null 2>&1");
}
# 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 if requested
+ ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS)))
+ EXTRA_CFLAGS += -mthumb
+ endif
+endif
configure: configure-stamp
configure-stamp:
build-stamp: configure-stamp
dh_testdir
- make
- make -C config-ui
+ make EXTRA_CFLAGS="$(EXTRA_CFLAGS)"
+ make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)"
touch $@