in Dev-C++ go to Project, then Project Options you'll see this screen:
now just staying in the same menu you'll just go from tab to tab, following the screen shots below:
here, the complete code for the compiler is:
Code: Select all
-Wall -g -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls
-D_arch_dreamcast
Code: Select all
-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000
startup.o
-lkallisti -lgcc
here you just have to make sure the output file has the extension ".elf"
add, browse, and choose "dreamcast.mak". the contents of the file will look like this:
Code: Select all
romdisk.img:
genromfs -f romdisk.img -d romdisk -v
romdisk.o: romdisk.img
bin2o romdisk.img romdisk romdisk.o
copy c:\dev-cpp\sh-elf\templates\startup.o
md romdisk
all-before: romdisk.o
all-after :
sh-elf-objcopy -O binary $(BIN) temp.bin
c:\dev-cpp\chankast\emu.bat temp.bin
Code: Select all
all-after :
dc-tool -t COM1 -b 115200 -x $(BIN)
from here just go to Execute, Clean, then Compile and you should be good to go.
to make Chankast work you'll have to get the necessary files.
believe me it should take you 5 minutes tops to Google for them.