An open API service indexing awesome lists of open source software.

https://github.com/mlund/llvm-mos-template

Template for MEGA65-libc / LLVM-MOS projects
https://github.com/mlund/llvm-mos-template

8-bit mega65 retro

Last synced: 3 months ago
JSON representation

Template for MEGA65-libc / LLVM-MOS projects

Awesome Lists containing this project

README

          

[![CMake](https://github.com/mlund/llvm-mos-template/actions/workflows/cmake.yml/badge.svg)](https://github.com/mlund/llvm-mos-template/actions/workflows/cmake.yml)

# Template for LLVM-MOS Projects for MEGA65

- [x] CMake based build.
- [x] Automatically downloads mega65-libc as a dependency.

## Building

1. Install [llvm-mos-sdk](https://github.com/llvm-mos/llvm-mos-sdk#getting-started).
This e.g. downloads for linux and unpacks into `$HOME/llvm-mos`:
~~~sh
wget https://github.com/llvm-mos/llvm-mos-sdk/releases/latest/download/llvm-mos-linux.tar.xz
tar xf llvm-mos-linux.tar.xz -C $HOME
~~~
2. Configure and make with:
~~~sh
cd llvm-mos-template
cmake -DCMAKE_PREFIX_PATH=$HOME/llvm-mos -B build
cd build/
make
~~~