2 # MAde with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
15 CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
17 TARGET = i686-w64-mingw32
19 MINGW_TOP = /usr/$(TARGET)
20 MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses-examples
24 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
29 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
34 configure: configure-stamp
38 CFLAGS="$(CFLAGS)" ./configure \
41 --prefix=$(MINGW_TOP) \
42 --with-screen=ncursesw6 \
43 --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig
48 build-stamp: configure-stamp
59 [ ! -f makefile ] || $(MAKE) distclean
61 rm -f configure-stamp build-stamp install-stamp
65 install: install-stamp
66 install-stamp: build-stamp
72 $(MAKE) install DESTDIR=$(MINGW_TMP)
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # No binary-indep target.
80 # Build architecture-dependent files here.
81 binary-arch: build install
86 dh_installchangelogs NEWS
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install install-stamp