556a8fa8f8
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.
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# These are the steps I typically use to configure and compile Bochs.
|
|
#
|
|
|
|
# superSPARC w/ Solaris 2.x
|
|
set echo
|
|
CC="gcc"
|
|
CXX="$CC"
|
|
CFLAGS="-Wall -O2 -mv8 -msupersparc -mno-epilogue"
|
|
#CFLAGS="-Wall -O2 -mv8 -msupersparc"
|
|
#CFLAGS="-Wall -O2 -g"
|
|
CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
export CC
|
|
export CXX
|
|
export CFLAGS
|
|
export CXXFLAGS
|
|
|
|
./configure
|
|
#./configure --enable-fpu
|
|
#./configure
|
|
#./configure --enable-instrumentation
|
|
#./configure --with-nogui
|
|
#./configure --enable-disasm
|
|
#./configure --enable-debugger
|
|
#./configure --enable-debugger --enable-disasm
|
|
#./configure --enable-debugger --enable-disasm --enable-loader
|
|
#./configure --enable-debugger --enable-disasm --enable-instrumentation
|
|
#./configure --enable-debugger --enable-disasm --enable-instrumentation="instrument/stubs"
|
|
|
|
#./configure --enable-debugger --enable-disasm --enable-instrumentation="instrument/example0"
|
|
#./configure --enable-instrumentation="instrument/example0"
|
|
|
|
#./configure --enable-debugger --enable-disasm --enable-num-sim=2 --enable-simid=0
|
|
#./configure --enable-debugger --enable-disasm --enable-num-sim=2 --enable-simid=1
|
|
|
|
unset echo
|