2 # debian/rules for the Debian xutils package.
3 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>
4 # Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
5 # Copyright © 2005 David Nusinow <dnusinow@debian.org>
7 # Uncomment this to turn on verbose mode.
10 # set this to the name of the main shlib's binary package
11 PACKAGE = e17-extra-modules
14 #include debian/xsfbs/xsfbs.mk
16 # This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each
17 # subdirectory explicitly so that the build system knows what to build
18 DEF_SUBDIRS=comp-slp illume2-slp keyrouter wmready
19 SUBDIRS=$(DEF_SUBDIRS)
20 BUILD_STAMPS = $(addprefix $(STAMP_DIR)/build-,$(SUBDIRS))
22 CFLAGS = -Wall -g -fPIC -rdynamic
24 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=$(PREFIX)/lib
27 MACHINE_NAME=$(shell uname -m)
29 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
34 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
35 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
36 MAKEFLAGS += -j$(NUMJOBS)
39 ifeq ($(MACHINE_NAME), arm)
43 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
44 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
45 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
46 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
47 confflags += --build=$(DEB_HOST_GNU_TYPE)
49 confflags += --build=$(DEB_HOST_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
54 for FILE in $(SUBDIRS); do \
55 mkdir -p "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) ; \
56 cd "$$FILE" && ./autogen.sh && cd ..; \
57 cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && ../"$$FILE"/configure --prefix=/usr CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" && $(MAKE) || exit ; \
67 rm -f config.cache config.log config.status
68 rm -f */config.cache */config.log */config.status
69 rm -f conftest* */conftest*
70 rm -rf autom4te.cache */autom4te.cache
82 ifneq (,$(filter keyrouter,$(SUBDIRS)))
83 mkdir -p $(CURDIR)/debian/tmp/usr/bin
84 cp -af $(CURDIR)/keyrouter/scripts/* $(CURDIR)/debian/tmp/usr/bin/
86 for FILE in $(SUBDIRS); do \
87 cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
91 # Build architecture-dependent files here.
92 binary-arch: build install
97 dh_install --sourcedir=debian/tmp --list-missing
101 dh_strip --dbg-package=$(PACKAGE)-dbg
105 dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
110 # Build architecture-independent files here.
111 binary-indep: build install
114 binary: binary-indep binary-arch
115 .PHONY: build clean binary-indep binary-arch binary install