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