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
21 MINGW_TOP = /usr/$(TARGET)
22 MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
28 --disable-db-install \
42 --enable-term-driver \
46 --with-chtype=uint32_t \
47 --with-mmask_t=uint32_t \
50 --with-fallbacks=unknown,rxvt \
52 --with-tparm-arg=intptr_t \
54 --with-xterm-kbs=DEL \
61 export CFLAGS BUILD_CC
63 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
68 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
72 configure: configure-stamp
81 --prefix=$(MINGW_TOP) \
82 --with-build-cc=$(BUILD_CC) \
83 --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig \
89 build-stamp: configure-stamp
100 [ ! -f makefile ] || $(MAKE) distclean
102 rm -f configure-stamp build-stamp install-stamp
106 install: install-stamp
107 install-stamp: build-stamp
113 $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
115 mkdir -p $(MINGW_TMP)$(MINGW_BIN)
116 for name in $(MINGW_TMP)$(MINGW_TOP)/bin/*-config; \
118 base=`basename $$name`; \
119 ln -v $$name $(MINGW_TMP)$(MINGW_BIN)/$(TARGET)-$$base; \
124 # Build architecture-independent files here.
125 binary-indep: build install
126 # No binary-indep target.
128 # Build architecture-dependent files here.
129 binary-arch: build install
132 dh_installchangelogs NEWS
142 binary: binary-indep binary-arch
143 .PHONY: build clean binary-indep binary-arch binary install install-stamp