Files
elk/build-win32
T
sam 69724a8ba7 * Added -no-undefined to all plugins' LDFLAGS.
* Disabled most of the unix plugin code under Windows.
  * Replaced remaining index/rindex calls with strchr/strrchr.
  * Updated the Win32 build.


git-svn-id: svn://svn.zoy.org/elk/trunk@164 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-19 08:54:08 +00:00

26 lines
615 B
Bash
Executable File

#! /bin/sh
## Win32 cross-compilation for Elk -- Sam Hocevar <sam@zoy.org>
## $Id$
set -x
set -e
# Clean up our working directory
DIRNAME="elk-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`"
DESTDIR="`pwd`/${DIRNAME}"
rm -Rf "${DIRNAME}"
rm -f "${DIRNAME}.zip"
mkdir "${DIRNAME}"
# To build for win32, I use:
# ./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/
# make pkglibdir=/lib pkgdatadir=/scm
make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/scm
cp "src/.libs/libelk-0.dll" "${DESTDIR}"
# Pack the directory
zip "${DIRNAME}.zip" `find "${DIRNAME}"`
rm -Rf "${DIRNAME}"