Giter Club home page Giter Club logo

roko's Introduction

roko

A VM written in C.

Small personal project.

Table of Contents

Building

The code should build for:

  • x86_64-Linux
  • aarch64-Linux(see this section)
  • aarch64-apple-darwin
  • Windows (through x86_64-w64-mingw32)

DISCLAIMER: The Windows build is not tested.

Dependencies

  • autoconf and automake are needed to generate the Makefile used to compile the game.

Initialising submodules

You can initialise the submodules by running:

`git submodule update --init`

Autoreconf and ./configure

You may need to run automake --add-missing to ensure your system provides the missing files needed by autoreconf.

Run autoreconf to generate the ./configure script. Run the script to generate the Makefile used for the project.

Enable game debug

After generating the ./configure script, you may enable game debug mode by running:

`./configure --enable-debug=yes`

Which should prepare a Makefile with the correct macro definitions to turn on game debug at compile time. To reset the Makefile to release state, run:

`./configure --enable-debug=no`

Build with x86_64-w64-mingw32

After generating the ./configure script, you may switch target host and use mingw32 with:

`./configure --host x86_64-w64-mingw32`

Which should prepare a Makefile with the correct macro definitions. To reset the Makefile to release state, run:

`./configure --host $(./config.guess)`

You may need to correct the configure.ac flags if your installation does not have the expected layout, providing the correct paths for:.

  • mingw32's lib and include dirs,
  • mingw32's correct gcc.

Compiling and running

Once you have the Makefile, you can compile the project by running, in its directory:

`make`

The build chain expects some files to be generated from already given ones.

If you want to build without using make, you can see in the Makefile.am how to generate ./src/anvil__roko.c and ./src/anvil__roko.h.

Generating documentation

You can use doxygen to generate docs in both HTML and latex.

To generate the documentation run, from the repo dir:

doxygen docs/roko.doxyfile

To have a pdf version, you can install a tex compiler and, inside doxygen/latex, run:

make

Running make doc should give you ./docs/docs.pdf, just the pdf output from latex, and delete the html index by itself.

Latest Release

I try to upload precompiled binaries for:

  • x86_64-Linux
  • aarch64-Linux (from Termux on Android).
  • x86_64-w64-mingw32 (NOT TESTED).

Some releases may offer a precompiled binary for:

  • darwin-arm64

๐Ÿ“ฆ v0.1.1 29/10/2023 https://github.com/jgabaut/roko/releases

roko's People

Contributors

jgabaut avatar

Stargazers

 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.