2001-04-10 05:04:59 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# These are the steps I typically use to configure and compile Bochs
|
2014-03-16 16:13:52 +04:00
|
|
|
# on a Win32 system with Cygwin (v1.7.28) or MinGW/MSYS.
|
2001-04-10 05:04:59 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
CC="gcc"
|
|
|
|
CXX="g++"
|
2014-03-16 16:13:52 +04:00
|
|
|
#CFLAGS="-O3 -Wall -Wno-format -mno-cygwin" # for GCC versions < 4.7
|
|
|
|
CFLAGS="-O3 -Wall -Wno-format -mno-ms-bitfields"
|
2001-04-10 05:04:59 +04:00
|
|
|
CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
export CC
|
|
|
|
export CXX
|
|
|
|
export CFLAGS
|
|
|
|
export CXXFLAGS
|
|
|
|
|
2006-11-20 21:55:16 +03:00
|
|
|
./configure --enable-sb16 \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-ne2000 \
|
2004-06-18 18:11:11 +04:00
|
|
|
--enable-all-optimizations \
|
|
|
|
--enable-cpu-level=6 \
|
2007-09-10 19:21:05 +04:00
|
|
|
--enable-x86-64 \
|
2013-04-08 22:31:25 +04:00
|
|
|
--enable-vmx=2 \
|
2022-08-27 09:01:18 +03:00
|
|
|
--enable-avx \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-pci \
|
2005-05-15 11:10:58 +04:00
|
|
|
--enable-clgd54xx \
|
2013-03-11 00:42:46 +04:00
|
|
|
--enable-voodoo \
|
2005-12-26 19:47:51 +03:00
|
|
|
--enable-usb \
|
2009-04-29 22:44:11 +04:00
|
|
|
--enable-usb-ohci \
|
2016-12-31 15:17:37 +03:00
|
|
|
--enable-usb-ehci \
|
2013-04-07 19:13:45 +04:00
|
|
|
--enable-usb-xhci \
|
2017-03-24 21:23:07 +03:00
|
|
|
--enable-busmouse \
|
2012-05-01 22:03:43 +04:00
|
|
|
--enable-es1370 \
|
|
|
|
--enable-e1000 \
|
2007-10-09 23:49:23 +04:00
|
|
|
--enable-show-ips \
|
2021-10-24 18:32:23 +03:00
|
|
|
--with-win32 --with-rfb --with-nogui \
|
|
|
|
${CONFIGURE_ARGS}
|