Revert "Switch to SDL3"

This reverts commit cd29cca495.
This commit is contained in:
2024-10-23 19:01:54 -04:00
parent cd29cca495
commit 4e3495948c
10 changed files with 42 additions and 40 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
CC?=gcc
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
SDL3FLAGS=$(shell pkg-config sdl3 --cflags --libs)
SDL2FLAGS=$(shell pkg-config sdl2 --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) $(SDL3FLAGS) \
-D _POSIX_C_SOURCE=199309L \
$(SHROOMSFLAGS) $(SDL2FLAGS) \
-D POSIX_C_SOURCE=199309L \
-o shrooms-vb \
-O3 -fno-strict-aliasing \
-Werror -std=c90 -Wall -Wextra -Wpedantic