#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr package = mingw-w64-headers target = x86_64-w64-mingw32 sysroot=$(prefix)/$(target) package32 = mingw-w32-headers target32 = i686-w64-mingw32 sysroot32=$(prefix)/$(target32) DEB_INSTALL_DOCS_ALL := DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn INSTALL_PROGRAM = install clean:: rm -f compile common-install-indep rm -rf *~ debian/$(package) debian/*~ debian/files* debian/substvars debian/compat build build32 # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # common-install-indep:: rm -rf debian/$(package32) rm -rf build32 mkdir build32 mkdir debian/$(package32) cd build32 && ../mingw-w64-headers/configure --target=$(target32) --build=$(target32) --prefix=$(prefix) cd build32 && make DESTDIR=../debian/$(package32) install mkdir debian/$(package32)$(prefix)/$(target32)/mingw cd debian/$(package32)$(prefix)/$(target32) && mv include mingw/include cd debian/$(package32)$(prefix)/$(target32) && ln -s mingw/include sys-include cd debian/$(package32)$(prefix)/$(target32)/mingw/include && ln -s float.h win32_float.h rm -rf debian/$(package) rm -rf build mkdir build mkdir debian/$(package) cd build && ../mingw-w64-headers/configure --target=$(target) --build=$(target) --prefix=$(prefix) cd build && make DESTDIR=../debian/$(package) install mkdir debian/$(package)$(prefix)/$(target)/mingw cd debian/$(package)$(prefix)/$(target) && mv include mingw/include cd debian/$(package)$(prefix)/$(target) && ln -s mingw/include sys-include cd debian/$(package)$(prefix)/$(target)/mingw/include && ln -s float.h win32_float.h touch common-install-indep