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)
16 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
17 CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
19 TARGET = x86_64-w64-mingw32
20 MINGW_TOP = /usr/$(TARGET)
21 MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
27 --disable-db-install \
39 --enable-term-driver \
43 --with-chtype=uint32_t \
44 --with-mmask_t=uint32_t \
47 --with-fallbacks=unknown,rxvt \
49 --with-tparm-arg=intptr_t \
51 --with-xterm-kbs=DEL \
58 export CFLAGS BUILD_CC
60 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
65 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
69 configure: configure-stamp
78 --prefix=$(MINGW_TOP) \
79 --with-build-cc=$(BUILD_CC) \
85 build-stamp: configure-stamp
96 [ ! -f makefile ] || $(MAKE) distclean
98 rm -f configure-stamp build-stamp install-stamp
102 install: install-stamp
103 install-stamp: build-stamp
109 $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
113 # Build architecture-independent files here.
114 binary-indep: build install
115 # No binary-indep target.
117 # Build architecture-dependent files here.
118 binary-arch: build install
121 dh_installchangelogs NEWS
131 binary: binary-indep binary-arch
132 .PHONY: build clean binary-indep binary-arch binary install install-stamp