- Clone repository:
$ git clone git@github.com:aCube1/megadrive-toolchain.git
- Copy
md.ld,bootandcmaketo the root of your project. - (Optional) Change the
boot/header.cto suit your project. - Add the toolchain to the build using the
--toolchainflag. - Set the
SGDK_PATHvariable to the path of theSGDKlibrary.
megadrive_create_rom(<target>): Create the ROM, strip theELFheader, build and link the SGDK on the final binary file.megadrive_include_resources(<target> <filepath>): Invoke theRESCOMPto generate the resource assembly and header files from.resfile.
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.