Skip to content

Latest commit

 

History

History
100 lines (66 loc) · 1.89 KB

compile.md

File metadata and controls

100 lines (66 loc) · 1.89 KB

caio - 8 bits home computers emulator

Compile, install and packaging

Linux

Required dependencies:

    $ sudo apt install clang pkg-config libsdl2-dev libsdl2-image-dev
    ...
    $ make PREFIX=/usr/local
    ...
    $ sudo make PREFIX=/usr/local install
    ...

The default PREFIX is /opt/caio.

macOS

Required dependencies:

To install xcode and brew follow the instructions here and here.

   $ xcode-select --install
   ...
   $ brew install pkg-config sdl2 sdl2_image
   ...
    $ make PREFIX=/usr/local
    ...
    $ sudo make PREFIX=/usr/local install
    ...

The default PREFIX is /opt/caio.

Packaging

Source code package:

    $ make src-package RELEASE=<tag>

The previous command creates a .tgz tarball source package containing the specified release. The tarball file is placed inside the build/ directory. tag specifies the caio's git tag to build.

Debian binary package:

    $ make deb-package RELEASE=<tag>

The previous command creates a .deb binary package under the build/ directory. tag specifies the caio's git tag to build.

Generic binary package:

    $ make bin-package RELEASE=<tag>

The previous command creates a .tgz tarball binary package under the build/ directory. tag specifies the caio's git branch or tag to build.

Note that this package does not contain any runtime dependencies (libSDL2, libstdc++, etc). Those must be installed separately.