Switch to SDL3

This commit is contained in:
2024-10-21 23:31:55 -04:00
parent 8b31e76655
commit cd29cca495
10 changed files with 40 additions and 42 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
CC?=gcc
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
SDL2FLAGS=$(shell pkg-config sdl2 --cflags --libs)
SDL3FLAGS=$(shell pkg-config sdl3 --cflags --libs)
.PHONY: clean
clean:
@@ -12,8 +12,8 @@ endif
build:
@$(CC) audio.c cli.c controller.c game.c graphics.c main.c assets/assets.s -I . \
$(SHROOMSFLAGS) $(SDL2FLAGS) \
-D POSIX_C_SOURCE=199309L \
$(SHROOMSFLAGS) $(SDL3FLAGS) \
-D _POSIX_C_SOURCE=199309L \
-o shrooms-vb \
-O3 -fno-strict-aliasing \
-Werror -std=c90 -Wall -Wextra -Wpedantic