6 #p_base=$(PYTHON)-lightmediascanner
7 #d_base=debian/$(p_base)
9 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
12 CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
13 ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
14 CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
16 ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
17 CFLAGS += -mcpu=arm926ej-s
21 configure: configure-stamp
25 build: configure build-stamp
28 CFLAGS="$(CFLAGS)" $(MAKE)
33 if test -f Makefile ; then $(MAKE) clean; rm Makefile; fi
42 $(MAKE) install DESTDIR=$(CURDIR)/debian/ruby1.8-lightmediascanner
44 #$(PYTHON) setup.py install --root=$(d_base)
46 binary: binary-indep binary-arch
60 .PHONY: build install clean binary binary-indep binary-arch