Added specific build options depending on the target device
[maemo-efl] / trunk / ecore / debian / 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 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
6
7 DEB_CONFIGURE_EXTRA_FLAGS :=  --enable-ecore-evas-x11-16        \
8                                                           --disable-ecore-fb                    \
9                                                           --disable-ecore-directfb              \
10                                                           --disable-ecore-evas-gl               \
11                                                           --disable-ecore-evas-dfb              \
12                                                           --disable-ecore-evas-xrender  \
13                                                           --disable-ecore-evas-fb               \
14                                                           --disable-ecore-sdl                   \
15                                                           --disable-ecore-evas-sdl
16
17 DEB_CONFIGURE_SCRIPT_ENV += CURL_LIBS="-lcurl"
18
19 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
20
21 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
22         CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
23         ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
24                 CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
25         endif
26         ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
27                 CFLAGS += -mcpu=arm926ej-s
28         endif
29 endif
30