This is a template project for the Odin programming language. It provides a basic structure for starting new Odin projects, including a Makefile for building, running, testing, and creating release builds.
- Organized source (
src/) and library (lib/) directories - Libraries added to
lib/are automatically available in your source code aslib:<libraryname>packages - Simple
Makefilewith targets for:make release– Build an optimized release binarymake debug– Build a debug binarymake run– Build and run the debug binarymake test– Run tests in thetests/directorymake check– Run static checksmake clean– Remove build artifacts
- Example Odin source file in
src/main.odin - Pre-configured formatting (
odinfmt.json) and language server (ols.json) settings
- Clone this template and rename
<program>in theMakefileto your desired binary name. - Add your code to
src/and place libraries underlib/. - Use the provided
makecommands to build, run, and test your project.
This template is provided as-is, without warranty. Modify and use it freely for your Odin projects.