Skip to content

Commit b70c8d9

Browse files
committed
add Makefile with build instructions and dependencies for SDL2 and SDL2_ttf
1 parent 07d86ab commit b70c8d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SDL2 Game GUI with buttons and text rendering
2+
3+
# Requirements : compilation requires SDL2 and SDL2_ttf development libraries .
4+
5+
# On Windows with MSYS2 + MinGW64: pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf --needed
6+
# On Debian/Ubuntu: sudo apt install libsdl2-dev libsdl2-ttf-dev
7+
# On Fedora: sudo dnf install SDL2-devel SDL2_ttf-devel
8+
# On Arch Linux: sudo pacman -S sdl2 sdl2_ttf
9+
# On macOS: brew install sdl2 sdl2_ttf
10+
11+
build:
12+
g++ -o sdl-game-gui sdl-game-gui.cpp $(shell pkg-config --cflags --libs SDL2_ttf)

0 commit comments

Comments
 (0)