Compilation

Prerequis

Debian / Ubuntu

sudo apt-get install build-essential libsdl2-dev

Fedora

sudo dnf install gcc SDL2-devel

Arch

sudo pacman -S base-devel sdl2

Chromecast (optionnel)

sudo apt-get install libssl-dev

Compilation

git clone https://publicgit.nagominosato.fr:6443/chipinette/Phosphoric.git
cd Phosphoric

make SDL2=1                    # Build standard avec SDL2
make                           # Build headless (sans SDL2)
make DEBUG=1 SDL2=1            # Build debug (-g -O0)
make SDL2=1 CAST=1             # Avec support Chromecast
make tools                     # Outils (bas2tap, bin2tap, tap2sedoric)
sudo make install              # Installer dans /usr/local

Tests

make tests               # Tous les 226 tests
make test-cpu            # 74 tests CPU
make test-memory         # 19 tests memoire
make test-io             # 29 tests VIA/I/O
make test-storage        # 12 tests stockage
make test-system         # 7 tests integration
make test-video          # 11 tests export video
make test-audio          # 8 tests PSG audio
make test-debugger       # 8 tests debugger
make test-savestate      # 8 tests save state
make test-atmos          # 10 tests Atmos
make test-joystick       # 10 tests joystick
make test-printer        # 10 tests imprimante
make test-mcp40          # 10 tests traceur MCP-40
make test-renderer       # 10 tests mise a l'echelle
make valgrind            # Detection fuites memoire
make static-analysis     # Analyse warnings compilateur