Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 466 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 466 Bytes

Build on macOS >=10.14.6 with g++

Install build dependencies

This assumes that your systen already has Homebrew (https://brew.sh/).

$ brew install sdl2 sdl2_image sdl2_ttf jsoncpp

Build

command line
$ g++ src/**/*.cc \
    -I./include \
    -o bin/game \
    -lSDL2 \
    -lSDL2_image \
    -lSDL2_ttf \
    -ljsoncpp \
    -stdlib=libc++ \
    -std=gnu++2a \
    -m64 -O3 -Wall
make
$ make

Run

$ bin/game