The compilation process is quite easy. Along with the sourcecode
you should have also unpacked a Makefile.
This Makefile can be used for all simpler projects
that do not use a RomDisk. You just have to
change the following to lines to reflect your sourcecode
name:
TARGET = firstexample.elf
OBJS = firstexample.o
As I said, this is only valid for extremely simple sources.
So you should have at least a bit of knowledge on Makefiles
to get a valid makefile for larger projects. You might also
look at the more complex examples of KallistiOS.
If your environment is set correctly with dc_environ.sh
you should be able to type
make
and the compilation process should begin and in the end
you should have a firstexample.elf file sitting in your
directory.
If you want to stripout all the debug informations from
your binary (therefore making it smaller and the transfer
to the Dreamcast faster) you might type up
make dist
This does nothing else than executing sh-elf-strip firstexample.elf
which rids the binary from all the debug information.
This is now the ELF binary that is ready for sending
to the Dreamcast.
|