2001-04-10 05:04:59 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# These are the steps I typically use to configure and compile Bochs
|
|
|
|
# on a Win32 system with cygwin (v.20.1)
|
|
|
|
#
|
|
|
|
|
|
|
|
CC="gcc"
|
|
|
|
CXX="g++"
|
- commit patch.check-platform. For full details, pull up the patch itself
and look at the description at the top. Here's an intro.
This patch makes significant changes to the configure script. It adds the
lines AC_CANONICAL_HOST and AC_CANONICAL_TARGET which detect the OS and
processor type. The configure script, knowing the OS and processor type, can
then make intelligent decisions about which CFLAGS are needed and what is the
default GUI for that platform. One of the goals of this patch is to make it
so that on all supported platforms, "configure;make" will compile cleanly.
Configure detects the target platform, but it can be overridden by using
--target=___. This is important when using one platform to generate
Makefiles and header files for another platform. See config.guess script for
the exact details of platform naming.
The defaults that are currently implemented in the modified configure script
include:
If platform is windows* or winnt*, use win32 gui.
If platform is cygwin*, use win32 gui and compile with
"-mno-cygwin -DWIN32".
If platform is macosx* or darwin*, use carbon gui and compile
with "-fpascal-strings -fno-common -arch ppc -Wno-four-char-constants
-Wno-unknown-pragmas -Dmacintosh"
If platform is macos, use macos gui.
If platform is beos, use beos gui.
If platform is amigaos, use amigaos gui.
Otherwise, use X windows gui.
2002-03-07 19:00:39 +03:00
|
|
|
CFLAGS="-O6 -march=pentium -mpentium"
|
2001-04-10 05:04:59 +04:00
|
|
|
CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
export CC
|
|
|
|
export CXX
|
|
|
|
export CFLAGS
|
|
|
|
export CXXFLAGS
|
|
|
|
|
2002-03-13 21:33:00 +03:00
|
|
|
./configure --enable-cdrom --enable-sb16=win --enable-vbe
|