mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
changes to get mingw builds happening under cygwin
This commit is contained in:
parent
79ac85b54f
commit
6b53cbf5dc
3 changed files with 58 additions and 20 deletions
40
README.cygwin
Normal file
40
README.cygwin
Normal 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
|
22
configure.ac
22
configure.ac
|
@ -53,12 +53,20 @@ case "$host_os" in
|
|||
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32"
|
||||
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/win32/resources"
|
||||
if test "$host" != "$build"; then
|
||||
case "$build_os" in
|
||||
cygwin*)
|
||||
CFLAGS="$CFLAGS -mno-cygwin"
|
||||
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
||||
;;
|
||||
*)
|
||||
CC="$host_cpu-$host_os-gcc"
|
||||
AS="$CC"
|
||||
AR="$host_cpu-$host_os-ar"
|
||||
RANLIB="$host_cpu-$host_os-ranlib"
|
||||
endian="little"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
endian="little"
|
||||
;;
|
||||
cygwin*)
|
||||
cygwin=yes
|
||||
|
@ -69,18 +77,6 @@ case "$host_os" in
|
|||
RANLIB="$host_cpu-$host_os-ranlib"
|
||||
endian="little"
|
||||
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
|
||||
|
||||
|
|
|
@ -56,10 +56,12 @@
|
|||
#endif
|
||||
|
||||
/* These may be underscored... */
|
||||
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
|
||||
#if defined(HAVE__SNPRINTF)
|
||||
# undef snprintf
|
||||
# define snprintf _snprintf
|
||||
#endif
|
||||
#if !defined(HAVE_VSNPRINTF) && defined(HAVE__VSNPRINTF)
|
||||
#if defined(HAVE__VSNPRINTF)
|
||||
# undef vsnprintf
|
||||
# define vsnprintf _vsnprintf
|
||||
#endif
|
||||
#if defined(_WIN32) && !defined(__BORLANDC__)
|
||||
|
|
Loading…
Reference in a new issue