GithubHelp home page GithubHelp logo

botbitmap / ctmz_toolchain Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 0.0 23 KB

C cross compiler toolchain targeting M68K and Z80 microprocessors. (NeoGeo/Mega Drive/Master System)

License: MIT License

Shell 9.40% Makefile 90.60%
game shell toolchain console homebrew master system retro neo geo

ctmz_toolchain's Introduction

CTMZ_Toolchain

C cross compiler toolchain targeting M68K and Z80 microprocessors (Neo Geo/Mega Drive/Master System) should compile under Linux and Windows (With MSYS2/WSL) Mac was not been tested, but should work with the necessary dependencies.

The makefile download software latest versions from their respective mirrors by default. To use a different version, change the $(LINK...) variables.

Dependencies

Ubuntu

apt-get install make texinfo bison flex unzip gcc g++ curl python expat diffutils libgmp-dev libmpfr-dev mpc libmpc-dev libisl-dev libc++-dev libboost-all-dev

Windows (MSYS2 MinGW terminal)

pacman -S make texinfo bison flex unzip mingw-w64-x86_64-gcc mingw-w64-x86_64-curl mingw-w64-x86_64-python mingw-w64-x86_64-expat mingw-w64-x86_64-diffutils mingw-w64-x86_64-gmp mingw-w64-x86_64-mpfr mingw-w64-x86_64-mpc mingw-w64-x86_64-isl mingw-w64-x86_64-libc++ mingw-w64-x86_64-boost 

NeoGeo and Mega Drive compiler toolchain

make install_gcc-newlib_m68k && make install_sdcc_z80

The Master System only needs SDCC

make install_sdcc_z80

To set the environment variables

source set_environment_variables.sh

To set the environment variables permanently

# Add environment variables to ~/.bash_profile
source set_environment_variables_permanently.sh

Windows extra information - Using the Toolchain outside of MSYS2 MinGW terminal

You may want to use this Toolchain outside of MSYS2 MinGW terminal on Windows, for use in IDE's, in order to do that, copy any needed libraries to the Toolchain /bin folder. ldd command can help you with that. Only files inside /mingw64/bin/ are needed.

Usage example:

ldd ./m68k-elf-gcc

ctmz_toolchain's People

Contributors

botbitmap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.