3 include /usr/share/cdbs/1/rules/simple-patchsys.mk
8 p_base=$(PYTHON)-epsilon
9 d_base=debian/$(p_base)
11 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
13 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
14 CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
15 ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
16 CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
18 ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
19 CFLAGS += -mcpu=arm926ej-s
26 touch epsilon/epsilon.*.pyx
27 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build_ext build install --prefix /usr install_headers
32 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py clean
34 -rm -rf build dist python_epsilon.egg-info
35 -rm -f epsilon/*.py[co]
43 CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install --root=$(d_base)
44 if [ "x$(DEB_BUILD_ARCH)" = "xarmel" ]; then \
45 rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/epsilon/*.py; \
46 rm -rf $(d_base)/usr/lib/$(PYTHON)/site-packages/epsilon/*.pyc; \
49 binary: binary-indep binary-arch
63 .PHONY: build install clean binary binary-indep binary-arch