- Clone repository:
$ git clone [email protected]:aCube1/megadrive-toolchain.git
- Copy
md.ld
,boot
andcmake
to the root of your project. - (Optional) Change the
boot/header.c
to suit your project. - Add the toolchain to the build using the
--toolchain
flag. - Set the
SGDK_PATH
variable to the path of theSGDK
library.
megadrive_create_rom(<target>)
: Create the ROM, strip theELF
header, build and link the SGDK on the final binary file.megadrive_include_resources(<target> <filepath>)
: Invoke theRESCOMP
to generate the resource assembly and header files from.res
file.
I'm not a CMake expert, I just did this toolchain to help me in future
projects on the Megadrive.
Your contribution to fix/improve this project will be appreciated.