3 # Uncomment this to turn on verbose mode.
6 include debian/xsfbs/xsfbs.mk
8 CFLAGS = -Wall -Werror -g
9 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
10 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
15 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
16 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
17 MAKEFLAGS += -j$(NUMJOBS)
20 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
21 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
22 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
23 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
24 confflags += --build=$(DEB_HOST_GNU_TYPE)
26 confflags += --build=$(DEB_HOST_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
27 # confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
30 ifeq (armel, $(DEB_HOST_ARCH))
31 confflags += --disable-v4l2
32 confflags += --enable-arm
35 # kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
36 confflags += --disable-static
38 configure: $(STAMP_DIR)/patch
43 build-stamp: configure
46 test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
47 cd obj-$(DEB_BUILD_GNU_TYPE) && \
48 ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
49 --infodir=\$${prefix}/share/info $(confflags) \
50 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
51 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
60 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
62 # Build architecture-dependent files here.
67 dh_installchangelogs ChangeLog
68 dh_install --sourcedir=debian/tmp --list-missing
70 dh_strip --dbg-package=xserver-xorg-video-emulfb-dbg
75 #dh_shlibdeps -- --warnings=6
87 rm -f config.cache config.log config.status
88 rm -f */config.cache */config.log */config.status
89 rm -f conftest* */conftest*
90 rm -rf autom4te.cache */autom4te.cache
92 rm -f aclocal.m4 config.guess config.sub config.h.in configure
93 rm -f depcomp install-sh ltmain.sh missing mkinstalldirs
94 rm -f $$(find -name Makefile.in)
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install