Switch to SDL3
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user