changes to get mingw builds happening under cygwin

This commit is contained in:
Chris Ison 2001-10-17 10:41:25 +00:00
parent 79ac85b54f
commit 6b53cbf5dc
3 changed files with 58 additions and 20 deletions

40
README.cygwin Normal file
View file

@ -0,0 +1,40 @@
NOTE: this method was determined in windows98, if it doesn't work for your
system, let us know
email: quake-user@lists.sourceforge.net
IRC: irc.openprojects.net #quakeforge
==========================================================================
WARNING: QuakeForge may take several hours from bootstrap to the completion
of make install on some systems
To build win32(mingw) quakeforge bins you will need to download and build
libtools and SDL sources, in that order.
You will also need 3 headers from the Microsoft Directx SDK.
ddraw.h dinput.h dsound.h
Put them in your /usr/include/w32api dir
Obtain libtool source from www.gnu.org (good place to get to know), and when you
configure libtool please ensure you use --prefix=/usr otherwise you will
have problems.
Obtain SDL source from www.libsdl.org. You do not need the SDL mingw file, it is
just a bunch of docs and test source.
Once both are built and installed, then you can start.
in quakeforge run
./bootstrap
./configure --disable-oss --host=i386-mingw32 --build=i386-cygwin --target=i386-ming32 --disable-Werror
make
make install
NOTE: due to bugs in the Directx8 SDK header files you will need
--disable-Werror on the configure command line. This may also be the
case with earlier Directx SDK's but it hasn't been tested.
Let us know how you go.
Chris Ison (WildCode) for Quakeforge

View file

@ -53,12 +53,20 @@ case "$host_os" in
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32" CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32"
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32/resources" CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32/resources"
if test "$host" != "$build"; then if test "$host" != "$build"; then
CC="$host_cpu-$host_os-gcc" case "$build_os" in
AS="$CC" cygwin*)
AR="$host_cpu-$host_os-ar" CFLAGS="$CFLAGS -mno-cygwin"
RANLIB="$host_cpu-$host_os-ranlib" CPPFLAGS="$CPPFLAGS $CFLAGS"
endian="little" ;;
*)
CC="$host_cpu-$host_os-gcc"
AS="$CC"
AR="$host_cpu-$host_os-ar"
RANLIB="$host_cpu-$host_os-ranlib"
;;
esac
fi fi
endian="little"
;; ;;
cygwin*) cygwin*)
cygwin=yes cygwin=yes
@ -69,19 +77,7 @@ case "$host_os" in
RANLIB="$host_cpu-$host_os-ranlib" RANLIB="$host_cpu-$host_os-ranlib"
endian="little" endian="little"
fi fi
if test "$host" != "$target"; then ;;
case "$target_os" in
mingw32*)
mingw=yes
CPPFLAGS="$CPPFLAGS -mno-cygwin -mconsole"
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32"
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources"
LDFLAGS="$LDFLAGS -mno-cygwin -mconsole"
endian="little"
;;
esac
fi
;;
esac esac
dnl ================================================================== dnl ==================================================================

View file

@ -56,10 +56,12 @@
#endif #endif
/* These may be underscored... */ /* These may be underscored... */
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) #if defined(HAVE__SNPRINTF)
# undef snprintf
# define snprintf _snprintf # define snprintf _snprintf
#endif #endif
#if !defined(HAVE_VSNPRINTF) && defined(HAVE__VSNPRINTF) #if defined(HAVE__VSNPRINTF)
# undef vsnprintf
# define vsnprintf _vsnprintf # define vsnprintf _vsnprintf
#endif #endif
#if defined(_WIN32) && !defined(__BORLANDC__) #if defined(_WIN32) && !defined(__BORLANDC__)