#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr package = mingw-w64-libmysql target = x86_64-pc-mingw32 prefix = /usr/$(target) docdir = debian/$(package)/usr/share/doc/$(package) package32 = mingw-w32-libmysql target32 = i686-pc-mingw32 prefix32 = /usr/$(target32) docdir32 = debian/$(package32)/usr/share/doc/$(package32) DEB_INSTALL_DOCS_ALL := src/COPYING DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. DEB_DH_STRIP_ARGS := -Xlib INSTALL_PROGRAM = install clean:: rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars debian/compat # # install and additional compatibility symlink libpng.dll.a -> libpng12.dll.a # This assures, that ppackages linking with -lpng are using the DLL version # of libpng and correctly depend on libpng12.dll # common-install-arch:: rm -rf debian/$(package) mkdir -p debian/$(package)/usr/$(target)/lib mkdir -p debian/$(package)/usr/$(target)/include/mysql install -m 644 include/*.h debian/$(package)/usr/$(target)/include/mysql $(target)-dlltool -d src/libmysql.def -l debian/$(package)/usr/$(target)/lib/libmysql.dll.a rm -rf debian/$(package32) mkdir -p debian/$(package32)/usr/$(target32)/lib mkdir -p debian/$(package32)/usr/$(target32)/include/mysql install -m 644 include/*.h debian/$(package32)/usr/$(target32)/include/mysql $(target32)-dlltool -d src/libmysql-stdcall.def -l debian/$(package32)/usr/$(target32)/lib/libmysql.dll.a