4fecb6abc9e81c2b34f6a38d3c13c4138e340983
[maemo-efl] / trunk / e_dbus / debian_chinook / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/class/autotools.mk
5
6 DEB_CONFIGURE_EXTRA_FLAGS :=  --disable-build-test-gui
7
8 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
9
10 CFLAGS += -lpthread
11
12 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
13         CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
14         ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
15                 CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
16         endif
17         ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
18                 CFLAGS += -mcpu=arm926ej-s
19         endif
20 endif
21