I'm not quite sure what's going on here when I attempt to compile the latest SVN trunk of CrabEMU.
I've downloaded the subversion of CrabEMU.
Code: Select all
svn co https://crabemu.svn.sourceforge.net/svnroot/crabemu $HOME/Dreamcast/crabemu
Code: Select all
svn co https://cadcdev.svn.sourceforge.net/svnroot/cadcdev $HOME/Dreamcast/cadcdev
I opened the "cadcdev/kos/doc/environ.sh.sample" file and edited it to the following, saved it to environ.sh in my toolchains directory, and made it executable.
Code: Select all
# KallistiOS environment variable settings
#
# This is a sample script. Configure to suit your setup. Some possible
# alternatives for the values below are included as an example.
#
# This script should be executed in your current shell environment (probably
# by bashrc or something similar).
#
# Build architecture. Set the major architecture you'll be building for.
export KOS_ARCH="dreamcast"
#export KOS_ARCH="gba"
#export KOS_ARCH="ps2"
#export KOS_ARCH="ia32"
# Build sub-architecture. If you need a particular sub-architecture, then set
# that here; otherwise use "pristine".
export KOS_SUBARCH="pristine"
# export KOS_SUBARCH="navi" # DC
# export KOS_SUBARCH="rte" # PS2
# KOS main base path
export KOS_BASE="$HOME/Dreamcast/cadcdev/kos"
# Make utility
export KOS_MAKE="make"
#export KOS_MAKE="gmake"
# Load utility
export KOS_LOADER="dc-tool -x" # dcload, preconfigured
# export KOS_LOADER="dc-tool-ser -t /dev/ttyS0 -x" # dcload-serial
# export KOS_LOADER="vgba -sound 44100 -nocrc" # GBA/vgba
# Genromfs utility
export KOS_GENROMFS="${KOS_BASE}/utils/genromfs/genromfs"
#export KOS_GENROMFS="genromfs"
# Compiler prefixes
#export KOS_CC_BASE="$HOME/Dreamcast/toolchains/dc/dc-elf"
#export KOS_CC_PREFIX="dc"
export KOS_CC_BASE="$HOME/Dreamcast/toolchains/dc/sh-elf" # DC
export KOS_CC_PREFIX="sh-elf"
#export KOS_CC_BASE="${EE}" # PS2
#export KOS_CC_PREFIX="ee"
#export KOS_CC_BASE="/usr/local/gba/arm-elf" # GBA
#export KOS_CC_PREFIX="arm-elf"
# If you are compiling for DC and have an ARM compiler, use these too.
export DC_ARM_BASE="$HOME/Dreamcast/toolchains/dc/arm-elf"
export DC_ARM_PREFIX="arm-elf"
# Expand PATH (comment out if you don't want this done here)
export PATH="${PATH}:${KOS_CC_BASE}/bin:$HOME/Dreamcast/toolchains/dc/bin"
# Manually add our second addons tree
export KOS_INC_PATHS="-I${KOS_BASE}/../kos-ports/include"
# reset some options because there's no reason for them to persist across
# multiple sourcing of this
export KOS_CFLAGS=""
export KOS_CPPFLAGS=""
export KOS_LDFLAGS=""
export KOS_AFLAGS=""
# Setup some default CFLAGS for compilation. The things that will go here
# are user specifyable, like optimization level and whether you want stack
# traces enabled. Some platforms may have optimization restrictions,
# please check README.
export KOS_CFLAGS="-O2 -fomit-frame-pointer"
# export KOS_CFLAGS="-O2 -DFRAME_POINTERS"
# Everything else is pretty much shared. If you want to configure compiler
# options or other such things, look at this file.
. ${KOS_BASE}/environ_base.sh
Code: Select all
# make
Makefile:55: /Makefile.rules: No such file or directory
make: *** No rule to make target `/Makefile.rules'. Stop.