4
# configuration specific to win32 on i386
8
if test ! -d $GTKDIR; then
9
echo "Gtk not found in $GTKDIR"
12
GTK_LIBS="$GTKDIR/gtk-win32-2.0.lib $GTKDIR/gdk-win32-2.0.lib \
13
$GTKDIR/gobject-2.0.lib $GTKDIR/glib-2.0.lib \
14
$GTKDIR/gdk_pixbuf-2.0.lib $GTKDIR/pango-1.0.lib"
17
if test ! -d $LUADIR -o ! -f $LUADIR/lua5.1.dll; then
18
echo "Lua 5.1 not found in $LUADIR"
22
FFIDIR=mingw/libffi-mingw
23
if test ! -d $FFIDIR -o ! -f $FFIDIR/libffi.a -o ! -f $FFIDIR/ffi.h; then
24
echo "LibFFI not found in $FFIDIR"
27
LIBFFI_LIB=$FFIDIR/libffi.a
28
LIBFFI_INC="-I $FFIDIR"
29
LIBFFI_VERSION=$FFIDIR
33
MINGW=i586-mingw32msvc-
34
which ${MINGW}gcc > /dev/null
35
if test $? -ne 0; then
36
echo "MingW GCC not found."
42
# cmph. if CMPH_CFLAGS is empty, then the includes are in the
43
# default include path which is not the same for mingw. Copy the
44
# required include file.
45
if test "$HAVE_CMPH" = 1; then
48
cp /usr/include/cmph_types.h $ODIR
52
# don't use qemu; it can't run windows executables.
56
CFLAGS="$CFLAGS -DXTHREADS -mms-bitfields"
57
echo "INDIR1 :=/usr/local/lib/lua/5.1" >> $CFG_M
58
echo "INDIR2 :=/usr/local/share/lua/5.1" >> $CFG_M
59
echo "ODLL :=gtk.dll" >> $CFG_M
60
echo "EXTRA_LIB +=$LUADIR/lua5.1.dll" >> $CFG_M
61
echo "LUADIR :=$LUADIR" >> $CFG_M
62
echo "EXESUFFIX :=.exe" >> $CFG_M