2
# debian/rules for the Debian xserver-xorg-driver-sis 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
include debian/xsfbs/xsfbs.mk
13
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
18
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
19
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20
MAKEFLAGS += -j$(NUMJOBS)
23
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
24
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
25
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
26
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
27
confflags += --build=$(DEB_HOST_GNU_TYPE)
29
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
32
NEED_FUNCTIONSECTIONS := hppa mips mipsel
33
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),$(NEED_FUNCTIONSECTIONS)))
34
CFLAGS += -ffunction-sections
37
# kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
38
confflags += --disable-static
40
configure: $(STAMP_DIR)/patch
43
build/config.status: configure
46
../configure --prefix=/usr --mandir=\$${prefix}/share/man \
47
--infodir=\$${prefix}/share/info $(confflags) \
51
build-stamp: build/config.status
61
rm -f config.cache config.log config.status
62
rm -f */config.cache */config.log */config.status
63
rm -f conftest* */conftest*
64
rm -rf autom4te.cache */autom4te.cache
66
rm -f $$(find -name Makefile.in)
67
rm -f aclocal.m4 config.guess config.h.in config.sub configure
68
rm -f depcomp install-sh ltmain.sh missing mkinstalldirs
78
cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
80
# Build architecture-dependent files here.
81
binary-arch: build install serverabi
86
dh_installchangelogs ChangeLog
87
dh_install --sourcedir=debian/tmp --list-missing
3
# Install in debian/tmp to retain control through dh_install:
4
override_dh_auto_install:
5
dh_auto_install --destdir=debian/tmp
7
# Kill *.la files, and forget no-one:
9
find debian/tmp -name '*.la' -delete
10
dh_install --fail-missing
12
# That's a plugin, use appropriate warning level:
13
override_dh_shlibdeps:
93
14
dh_shlibdeps -- --warnings=6
98
# Build architecture-independent files here.
99
binary-indep: build install
102
binary: binary-indep binary-arch
103
.PHONY: build clean binary-indep binary-arch binary install
17
dh $@ --with quilt,autoreconf,xsf --builddirectory=build/